# Bug GIT-27 - KeyError: key not found: object_kind in Webhooks::Incoming::HooksController#handle_hook in (Gitlab webhook)

Project: Stream Repositories
Status: closed
URL: https://community.openproject.org/work_packages/GIT-27

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Integrations / GitLab |
| Target versions | 18.0.0 |
| Observed in versions | 17.8.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.8.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Jan Sandbrink |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

Unclear - AppSignal report  
(Have a GitLab linked and create all kinds of actions which are reported via the webhook)

### What is the buggy behavior?

Every instance-level GitLab system hook delivery that is not push/tag\_push gets a 500.

### What is the expected behavior?

Result 200 and the event silently ignored, as for any other unsupported event.

### Drill down

modules/gitlab\_integration/lib/open\_project/gitlab\_integration/notification\_handler/system\_hook.rb:39  
`return nil unless payload.object_kind == "push"`  
where payload is a wrapper which &nbsp;raises KeyError when the key is absent.

### **Logs**

[https://appsignal.com/openproject-gmbh/sites/67ec0573b9811010d8c9071a/exceptions/incidents/1412/traces/063cb47c73c6cc7aa8176e5bd7982715](https://appsignal.com/openproject-gmbh/sites/67ec0573b9811010d8c9071a/exceptions/incidents/1412/traces/063cb47c73c6cc7aa8176e5bd7982715) 

### Environment information

**OpenProject installation type**

*   All
    

**OpenProject version**

v17.8

**Browser**

*   [ ] Chrome
*   [ ] Firefox
*   [ ] Safari
*   [ ] Mobile Safari
*   [x] Gitlab

**Operating System**

*   All
