New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emulator fails to respond to OAuth emulation request #1212
Comments
Confirmed repro. Looking into root cause. |
Hey team... has this fix shipped? I got an update and figured I'd see if this fix was in and sure enough I now get a response with a The short of it is that once I click the OAuth card button in the v4 emulator instead of just sending back the emulated access token, it's popping up a blank child window and dead ending there: Let me know if this is expected to be working now and I'll gladly open a new issue with more details on this next problem. |
Ok this is a real issue that other people are experiencing now. I will open a new issue. |
Version
4.2.146328
Describe the bug
I'm using an
OAuthPrompt
in my bot to prompt the user to sign in and, during the course of execution, one of the things that obviously does is call out to get the user token to see if they're already authenticated. This HTTP call initiates, but there is never a response and thus the connection hangs until it times out.Specifically, when I execute my bot if I trace HTTP requests going on I can see all the typical
/v3/directly/conversations
POST
requests going on with the emulator. When I initiate the prompt to attempt to get the user's token I see the following HTTP requests going out from the bot to the emulator:The first request succeeds returning a
200
, but the second request sends correctly and then never gets a response from the emulator which ultimately results in a client timeout inside the Bot Builder SDK and, long story short, I obviously never get a token or, more importantly, an indication that I haven't yet procured a token.To Reproduce
Steps to reproduce the behavior:
OAuthPrompt
OAuthPrompt
/api/usertoken/GetToken
request hanging.OAuthClient
class due to the underlying HTTP request timing out.Expected behavior
The request to
/api/usertoken/GetToken
should initially return a404
status which would then trigger theOAuthPrompt
to display its authentication card UI which I can then click to trigger an token to be created within the emulator and then subsequent requests should return an emulated token value from/api/usertoken/GetToken
.Additional context
I should point out that the same code works as expected in the V3 emulator.
[bug]
The text was updated successfully, but these errors were encountered: