infracloudio / msbotbuilder-go

Microsoft Bot Framework SDK for Go
MIT License
139 stars 39 forks source link

Failed to parse request. Authentication failed.: Token is not valid yet #33

Open georgeok opened 4 years ago

georgeok commented 4 years ago

When running the echo sample, I am getting an error:

Failed to parse request. Authentication failed.: Token is not valid yet

This happens when I use go run. When I am attaching a debugger and add a break point on https://github.com/infracloudio/msbotbuilder-go/blob/9d11322f671e087b924bc9e3576b0424525a5b7e/samples/echobot/main.go#L29

then it works as expected. Seems like a race condition is preventing the authentication. This happens on go1.13.4 windows/amd64. I am sure that AppID and AppPassword are correct.

Cyntaax commented 3 years ago

Ever find a solution to this? I am experiencing the same thing on go1.16.7 windows/amd64

Really seems like a race condition, but I can't see where that would even come into being an issue.

Cyntaax commented 3 years ago

To expand on this further, after digging into it more, it looks like the nbf property in the claims coming from the chat request is about 5-6 seconds ahead of time.Now

HariKrizz commented 1 year ago

I'm on Go 1.18.1 and still have this issue. Anyone got a fix for this??

javieryanez commented 2 months ago

This issue is blocking. I think that this project would be marked as archived, the last release is from tree years ago...