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.

KeyError: u'action'  #40

@thomich

Description

@thomich

Hey all

Have a problem to receive events, even merge events, which are enabled by default.

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/mattermost_gitlab/server.py", line 45, in new_event
text = event.format()
File "/usr/local/lib/python2.7/dist-packages/mattermost_gitlab/event_formatter.py", line 204, in format
if self.action == 'open':
File "/usr/local/lib/python2.7/dist-packages/mattermost_gitlab/event_formatter.py", line 200, in action
return self.data['object_attributes']['action']
KeyError: u'action'
x.y.z.a - - [18/Jun/2020 16:21:46] "POST /new_event HTTP/1.1" 200 -

All is Setup based on README.

Mattermost incoming webhook:

image

Gitlab project webhook:

image

Anything i missed to configure?

Thanks for help

Regards
thomi

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