Closed hashimjd closed 2 years ago
Hi @hashimjd 👋🏻 Thanks for the detailed issue, including the screenshots!
It looks like the expected header is X-Slack-Request-Timestamp
. In the sample above, it looks like Postman is setting HTTP_X_SLACK_REQUEST_TIMESTAMP
.
Can you try updating the header to be X-Slack-Request-Timestamp
? (Case sensitivity should not matter)
Please let me know how that goes! Michael
I tried doing that but the problem still persists. I've attached a screenshot below that demonstrates the issue. In the server section, the issue still is "slackeventsapi.server.SlackEventAdapterException: Invalid request timestamp"
You may no longer be working on this but if you dynamically set the x-slack-request-timestamp value, the x-slack-signature value must be also updated using the timestamp value. Thus, this is an expected behavior (= this library correctly detects invalid x-slack- header values in this scenario)
I hope this helps.
👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out.
As this issue has been inactive for more than one month, we will be closing it. Thank you to all the participants! If you would like to raise a related issue, please create a new issue which includes your specific details and references this issue number.
Description
Describe your issue here.
What type of issue is this? (place an
x
in one of the[ ]
)Requirements
Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
slackeventsapi version: python version: OS version(s):
Steps to reproduce:
Expected result:
The expected result was that the request would be parsed by my application and dealt accordingly.
Actual result:
I run into an error saying "slackeventsapi.server.SlackEventAdapterException: Invalid request timestamp" despite having HTTP_X_SLACK_REQUEST_TIMESTAMP configured and this is set dynamically to ensure that the timestamp is of the time when the request is sent. This is highlighted in the screenshot below.
Attachments:
Logs, screenshots, screencast, sample project, funny gif, etc.