Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #6327

Closed
Open
Created Feb 14, 2014 by Administrator@rootOwner

500 error on testing webhook

Created by: welly

Hello all,

I've just added a new webhook to a project, which should call a dummy php file. When I run "test hook", I'm getting the following error:

Started GET "/white-fuse/purpleflame/hooks/2/test" for 87.224.3.240 at 2014-02-14 16:53:37 +0000
Processing by Projects::HooksController#test as HTML
  Parameters: {"project_id"=>"white-fuse/purpleflame", "id"=>"2"}
Completed 500 Internal Server Error in 30ms

NoMethodError (undefined method `id' for nil:NilClass):
  app/services/git_push_service.rb:62:in `sample_data'
  app/services/test_hook_service.rb:3:in `execute'
  app/controllers/projects/hooks_controller.rb:27:in `test'
  app/controllers/application_controller.rb:57:in `set_current_user_for_thread'


Started GET "/white-fuse/purpleflame/hooks" for 87.224.3.240 at 2014-02-14 16:53:39 +0000
Processing by Projects::HooksController#index as HTML
  Parameters: {"project_id"=>"white-fuse/purpleflame"}
  Rendered projects/hooks/index.html.haml within layouts/project_settings (14.7ms)
  Rendered layouts/_head.html.haml (1.7ms)
  Rendered layouts/_broadcast.html.haml (2.0ms)
  Rendered layouts/_search.html.haml (2.4ms)
  Rendered layouts/_head_panel.html.haml (13.3ms)
  Rendered layouts/_init_auto_complete.html.haml (0.9ms)
  Rendered layouts/_flash.html.haml (0.3ms)
  Rendered shared/_no_ssh.html.haml (1.9ms)
  Rendered layouts/nav/_project.html.haml (16.1ms)
  Rendered projects/_settings_nav.html.haml (4.2ms)
Completed 200 OK in 122ms (Views: 59.3ms | ActiveRecord: 6.6ms)

That said, it appears to be calling correctly on a push.

Assignee
Assign to
Time tracking