Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

Integration throws KeyError on test. #30

@MonsieurCellophane

Description

@MonsieurCellophane

Having followed the guidelines for the installation I got to the point of testing. On testing the service ( from gitlab) I can see the integration server complaining:

(gitalb version 8.16.5)

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/mattermost_gitlab/server.py", line 42, in new_event
    event = event_formatter.as_event(request.json)
  File "/usr/local/lib/python2.7/dist-packages/mattermost_gitlab/event_formatter.py", line 281, in as_event
    if data['object_kind'] in EVENT_CLASS_MAP:
KeyError: u'object_kind'
127.0.0.1 - - [17/Feb/2017 10:10:10] "POST /new_event HTTP/1.1" 200 -

This is the test data gitlab is sending:

{"event_name":"project_create","name":"Ruby","path":"ruby","project_id":1,"owner_name":"Someone","owner_email":"example@gitlabhq.com"}

No message is posted to mattermost. However, actual push events generated on gitlab side do appear in mattermost.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions