Skip to content

Github webhook return 404 error #450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ghost opened this issue Jun 5, 2015 · 1 comment
Closed

Github webhook return 404 error #450

ghost opened this issue Jun 5, 2015 · 1 comment
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Jun 5, 2015

Hi,
I want use Github webhook for issue syncing but Redmine return 404 error.

My config :

  • Redmine 3.0.3-stable
  • Redmine git Hosting : 1.0.6
  • Github webhook : https://**********/githooks/post-receive/github/redmine
    ("redmine" is my project id)

An extract of my production.log :

Started POST "/githooks/post-receive/github/redmine" for 192.30.252.41 at 2015-06-05 15:06:55 +0200
Processing by GitoliteHooksController#post_receive as */*
  Parameters: { ............., "type"=>"github", "projectid"=>"redmine"}
  Current user: anonymous
Completed 404 Not Found in 147ms (ActiveRecord: 2.8ms)

ActiveRecord::RecordNotFound (Couldn't find Tracker with 'id'=first [WHERE `projects_trackers`.`project_id` = ?]):

The trouble is apparently in redmine_git_hosting/app/services/hooks/github_issues_sync.rb, line 78 :

issue.tracker_id = @project.trackers.find(:first).try(:id)

If i change :first by a tracker id like 1,2 or 3, it's work. :first does not seem to be defined.

@n-rodriguez n-rodriguez self-assigned this Jun 6, 2015
@n-rodriguez n-rodriguez added this to the v1.1.0 milestone Jun 6, 2015
@n-rodriguez n-rodriguez added the bug label Jun 6, 2015
n-rodriguez pushed a commit that referenced this issue Jun 6, 2015
@n-rodriguez n-rodriguez removed this from the v1.1.0 milestone Jun 6, 2015
@n-rodriguez
Copy link
Contributor

Fixed in version 1.0.7 (and 1.1.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant