Skip to content

Error Signature does not match event payload and secret from verifyAndReceive caused from ERR_INVALID_ARG_TYPE #1971

Closed Answered by wolfy1339
jimjaeger asked this question in Q&A
Discussion options

You must be logged in to vote

Starting with v13, we only accept strings as input for webhooks in order to facilitate validation as parsing the JSON and stringifying it may inadvertently change it.

Let's start with removing the express.json() parser

I am using the Octokit libraries (with the same versions as Probot) directly in an express app and haven't experienced this issue.

Are you able to share the payload as received by express before any parsing, signature and secret (once it is invalidated, and changed)? That would be helpful to debug

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@wolfy1339
Comment options

Answer selected by jimjaeger
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants