API Issue with creating a webhook

Some I’m having an odd issue with the API. Whenever I try to access the add webhook function via it’s url I get a 500 server error. It appears that the error has to do with the database it’s trying to add.

My current version etc… is as follows:

GitLab 10.4.4
GitLab Shell 5.11.0
GitLab Workhorse v3.3.1
GitLab API v4
Gitaly 0.66.0
Git 2.14.3
Ruby 2.3.6p384
Rails 4.2.10
postgresql 9.6.5

==> /var/log/gitlab/postgresql/current <==
2018-02-19_01:00:44.74742 ERROR:  null value in column "issues_events" violates not-null constraint
2018-02-19_01:00:44.74754 DETAIL:  Failing row contains (7, http://skirr.io/api/s9dfa7ds90sa09df7111, 63, 2018-02-19 01:00:44.745847+00, 2018-02-19 01:00:44.745847+00, ProjectHook, null, t, null, null, null, f, t, f, null, f, f, f, f).
2018-02-19_01:00:44.74758 STATEMENT:  INSERT INTO "web_hooks" ("url", "push_events", "project_id", "created_at", "updated_at") VALUES ('http://skirr.io/api/s9dfa7ds90sa09df7111', 't', 63, '2018-02-19 01:00:44.745847', '2018-02-19 01:00:44.745847') RETURNING "id"

==> /var/log/gitlab/gitlab-rails/production.log <==
 
ActiveRecord::StatementInvalid (PG::NotNullViolation: ERROR:  null value in column "issues_events" violates not-null constraint
DETAIL:  Failing row contains (7, http://skirr.io/api/s9dfa7ds90sa09df7111, 63, 2018-02-19 01:00:44.745847+00, 2018-02-19 01:00:44.745847+00, ProjectHook, null, t, null, null, null, f, t, f, null, f, f, f, f).
: INSERT INTO "web_hooks" ("url", "push_events", "project_id", "created_at", "updated_at") VALUES ('http://skirr.io/api/s9dfa7ds90sa09df7111', 't', 63, '2018-02-19 01:00:44.745847', '2018-02-19 01:00:44.745847') RETURNING "id"):
  /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/peek-pg-1.3.0/lib/peek/views/pg.rb:17:in `async_exec'
  /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/peek-pg-1.3.0/lib/peek/views/pg.rb:17:in `async_exec'
  /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters

I don’t think the rest is relevant, but it looks like the sql error is it’s not getting a required field, however according to the api document it’s not required. Now I also make this exact same call to http://gitlab.com and it does work, so I’m sure it’s not the call I’m doing thats errors.