Closed ramya-ravula-ctr closed 6 years ago
@ramya-ravula-ctr action triggered through that webhook is supported. Currently we allow for both opened
and synchronize
events. I'm not sure why it didn't went through.
"Payload not processed, invalid type." error is returned when webhook triggers actions like closing pull request, adding new issue etc.
Would you be able to provide more details on your environment, especially node and npm version. You can get these details by running commands in your terminal:
$ node -v
$ npm -v
Hi @radekk, please find the output below
$ node -v v4.2.6
$ npm -v 3.5.2
Thanks @ramya-ravula-ctr for writing that down. I will test it out with the same versions you have locally.
P.S. I did release a couple of changes/upgrades to the master branch. Would you be able to fetch latest changes and check it out?
git checkout master
git pull
Thanks @radekk for the response. I pulled the latest changes still the same error for me.
git log
commit 80efab6d95d0b181b1ebd7c89f0899e6fb08ddfd
Author: radekk <radekk@auth0.com>
Date: Fri Jul 13 15:10:35 2018 +0200
Update Readme.
Adding link to Wiki and Gitter chat.
There is a one thing that comes to my mind. Could you check the content type you did set for your webhook on the repository?
It should be ‘application/json’ and not ‘application/x-www-form-urlencoded’.
ahh, it was set to ‘application/x-www-form-urlencoded’ i changed to ‘application/json’ now i got response 'OK'.
It worked...Thanks @radekk
That's good to hear. I'm glad it helped 👍
when i created pull request on my github repo (contains only README and .json file as of now). Repo-supervisor responds back with "Payload not processed, invalid type."
Pull request payload from github:
Headers:
Payload: