Skip to content

Webhook URL giving 500 error #2

@kaustubhDsarathi

Description

@kaustubhDsarathi

Hi @wiesion the plugin gives a 500 error when the github_id variable grows out of the integer range

[2025-01-08T16:29:41.839438 #1495] FATAL -- : [6261c1d5-a155-40f1-b9e1-75d6d828e717]   
[6261c1d5-a155-40f1-b9e1-75d6d828e717] ActiveModel::RangeError (2250861364 is out of range for ActiveModel::Type::Integer with limit 4 bytes):
[6261c1d5-a155-40f1-b9e1-75d6d828e717]   
[6261c1d5-a155-40f1-b9e1-75d6d828e717] plugins/redmine_github_pull_requests_tool/app/controllers/pull_requests_controller.rb:69:in `github_pull_request'

Partial payload

Parameters: {
"number"=>504,
 "pull_request"=>{
      "url"=>"https://api.github.com/repos/test/foo/pulls/504",
       "id"=>2250861364, // `id` out of integer range
       "node_id"=>"test",
       "html_url"=>"https://github.com/billinghub/billinghub-adennet-edition/pull/504",
       "diff_url"=>"https://github.com/test/foopull/504.diff",
       "patch_url"=>"https://github.com/test/foo/pull/504.patch",
       "issue_url"=>"https://api.github.com/repos/test/foo/issues/504",
       "number"=>504,
       "state"=>"open",
       "locked"=>false,
       "title"=>"ISSUE-609: dummy pull request"
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions