Closed Nalinc closed 4 years ago
@Nalinc Hello, thanks for asking the question! The error can be thrown due to either of the following reasons:
x-slack-request-timestamp
request header is missingx-slack-request-timestamp
value is old or in the future (5+ minutes)https://github.com/slackapi/python-slack-events-api/blob/v2.2.1/slackeventsapi/server.py#L91-L95
I'm guessing the latter one may be the cause of your situation. Could you check the NTP service (the time clock in the system) on the Ubuntu host?
Hi @seratch
Thanks for your response. Yes, you're right the issue was caused due to a wide difference in timestamps between the given request and current system time. This happened because our socket server and requesting server were running in different time-zones, resulting in 5+ minutes of difference. Synchronizing the time on the two systems fixed the issue.
@Nalinc I am facing the same issue, and not able to figure out the solution. Can you please provide the required help ?
Description
SlackEventAdapter is throwing an exception on receiving slack events.
What type of issue is this? (place an
x
in one of the[ ]
)Requirements
Bug Report
Reproducible in:
slackeventsapi version: 2.1.0 python version: 3.6.9 OS version(s): Ubuntu 18.04.4 LTS (Bionic Beaver)
Steps to reproduce:
Expected result:
No error should be thrown when an event is received from slack (message or reaction).
Actual result:
Error is thrown whenever a slack event is received (message or reaction).
Attachments:
Screencast
Logs