webhook deletion causes error 500

Hi Guys,

One of my repositories has a webhook to Puppet Enterprise Code Manager. A colleague accidentally removed the hook and re-created it as http instead of https. So he added the correct one (https) and deleted the http one.

Now, clicking "test hook" generates an error 500.

This is in the rails production.log

Completed 500 Internal Server Error in 403ms EOFError (end of file reached): app/models/hooks/web_hook.rb:35:in execute' app/services/test_hook_service.rb:4:in execute' app/controllers/projects/hooks_controller.rb:28:in `test'