-
Notifications
You must be signed in to change notification settings - Fork 100
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
Unable to contact server. StatusCode: 1006, undefined Reason: Unexpected server response: 200 #235
Comments
Thanks orgads for the sharing the issue with us. To make sure the setup is right, can you confirm if you have enabled the channel correctly in Azure bot service following this page? |
We did. |
FYI, this could be similar to #221, we are also seeing HTTP 200 immediately after Web Socket connection established. Only on Mac though. |
(Edited to add reco.close() call when listenOnceAsync finishes) Hi @bivas6,
Also, I'm setting the language for the botConfig and using sdk pushStreams for the audio input:
Could you try that in your code? Thanks, |
Thanks @glharper, but it didn't works. There is no BTW, If this is the way to connect the server,
Thanks! |
@bivas6 Giving it some thought, why are you calling connect() at all? listenOnceAsync() handles all the connection setup already, and double connecting could introduce issues like this one. Try:
without any call to connect() in the code. Thanks. :-) |
@glharper It gives Thanks for trying. |
@bivas6 I'm attaching a simple html page that triggers listenOnceAsync() on a given wav file. Using my creds for westus2, I've been unable to repro this issue, but if I could, I can look at fiddler and at least see where in the process this issue is happening. If you can modify this code to repro the issue, or have a key/region pair that reliably causes this, please update this or ping me on teams. Thanks, |
Hi @glharper, Thanks for the help! |
Hi,
I'm trying to use the sdk as described here, but I'm getting this weird error:
Unable to contact server. StatusCode: 1006, undefined Reason: Unexpected server response: 200
I followed this guide to connect existing Bot with existing Cognitive Service.
code:
output is somthing like:
This
'subscription-key', 'region'
are in used in other parts of our code to connect azure speech sdk and direct line and it works as expected.Please advise.
Thanks
cc: @orgads
The text was updated successfully, but these errors were encountered: