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

Receiving HTTP 500's on every request #6

Open
volcano1111 opened this issue Jan 12, 2021 · 1 comment
Open

Receiving HTTP 500's on every request #6

volcano1111 opened this issue Jan 12, 2021 · 1 comment

Comments

@volcano1111
Copy link

Hello. I'm trying to setup webhooks in GitLab with your receiver. But every my request ends with an HTTP 500 error and I can't understand what's wrong. GitLab says "Hook executed successfully but returned HTTP 500". Script output:
"2021-01-12 14:51:01,074 INFO Hook received
127.0.0.1 - - [12/Jan/2021 14:51:01] "POST / HTTP/1.1" 500 -".
My config is very simple just for a test:
"---
https://git.am.int/tardis/tardis:
command: uname
gitlab_token: P-XxgRetf4jgv2FZVADY"

@paramobilus
Copy link

Hi, volcano1111!

I encountered the same error, but found the solution in the source code.
project = json_params['project']['name'] tells us that we should specify the project name instead of the url in config file.
If you need to specify an url (as in the example from the readme), you need to fix the code so that it looks like
project= json_params['project']['web_url'].

Hope this was helpful.

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

2 participants