gitlab-ci-discord-webhook icon indicating copy to clipboard operation
gitlab-ci-discord-webhook copied to clipboard

HTTP 400

Open lretq opened this issue 4 years ago • 2 comments

Hello, whenever the job is run, it fails with a http 400. Testing from local curl works (without the env variables), could it be that any unsupported characters are used?

lretq avatar Jun 03 '21 23:06 lretq

Yeah, it is most like that.

You could fork the repo and update the send.sh file and add the verbose flag (-v) to the curl command and then when you use your fork's url instead of this repo's url in gitlab config you can see the request body in the logs. Using that you can see what's the unsupported character or if some character is not being escaped properly.

iamtraction avatar Jun 04 '21 12:06 iamtraction

Yup, will try

lretq avatar Jun 04 '21 16:06 lretq