Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Redmine 5.1.1.stable, NoMethodError #54

@disc0ba11

Description

@disc0ba11

Hi! Trying to make it work, but no results so far.

Redmine version: 5.1.1.stable
Ruby version: 3.0.0-p0 (2020-12-25) [x86_64-linux]
Rails version: 6.1.7.6

What happens when I try to create a webhook for project:

image

Logs:

E, [2024-03-15T12:05:39.939463 #97694] ERROR -- : [1f0ac134-463a-4f5d-adc4-e974d4065370] ActionController::InvalidAuthenticityToken: ActionController::InvalidAuthenticityToken
F, [2024-03-15T12:06:38.469900 #97694] FATAL -- : [59919cd6-6063-4c78-931b-907f7dfd4113]   
[59919cd6-6063-4c78-931b-907f7dfd4113] NoMethodError (undefined method `url=' for #<Webhook id: nil, gettokenUrl: nil, app_id: nil, app_secret: nil, getidUrl: nil, imUrl: nil, project_id: 408>
Did you mean?  imUrl=):
[59919cd6-6063-4c78-931b-907f7dfd4113]   
[59919cd6-6063-4c78-931b-907f7dfd4113] plugins/redmine_webhook/app/controllers/webhook_settings_controller.rb:11:in `create'
[59919cd6-6063-4c78-931b-907f7dfd4113] lib/redmine/sudo_mode.rb:61:in `sudo_mode'
F, [2024-03-15T12:07:22.043771 #97694] FATAL -- : [989d8bfe-bdc4-42ef-9f29-6a96799abfda]   
[989d8bfe-bdc4-42ef-9f29-6a96799abfda] NoMethodError (undefined method `url=' for #<Webhook id: nil, gettokenUrl: nil, app_id: nil, app_secret: nil, getidUrl: nil, imUrl: nil, project_id: 408>
Did you mean?  imUrl=):
[989d8bfe-bdc4-42ef-9f29-6a96799abfda]   
[989d8bfe-bdc4-42ef-9f29-6a96799abfda] plugins/redmine_webhook/app/controllers/webhook_settings_controller.rb:11:in `create'
[989d8bfe-bdc4-42ef-9f29-6a96799abfda] lib/redmine/sudo_mode.rb:61:in `sudo_mode'

Tried many forks of this plugin, issue is the same. What happened in latest Redmine releases? Maybe my Ruby is too old/new? What can I do to resolve my issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions