Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: u'action' #40

Open
thomich opened this issue Jun 18, 2020 · 0 comments
Open

KeyError: u'action' #40

thomich opened this issue Jun 18, 2020 · 0 comments

Comments

@thomich
Copy link

thomich commented Jun 18, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant