Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upEmit debug log when request verification fails due to being pre-parsed #906
Projects
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Description
If an incoming request has already been parsed (such as by using the
body-parsermiddleware), and there's norawBodypresent (which commonly occurs on serverless platforms), then adapter will respond with a500status. In these situations, the debug logging should emit information that allows the developer to see the reason. It currently does not.The
@slack/events-apipackage has solved for this problem already:node-slack-sdk/packages/events-api/src/http-handler.ts
Lines 142 to 153 in 1503609
Requirements (place an
xin each of the[ ])