Azure-Samples / Cognitive-Services-Voice-Assistant

Welcome to the Microsoft Voice Assistant samples repository! Here you will find samples to help you get started building client application for your bot or Custom Command service. You will also be able to easily deploy a working Custom Command based Voice Assistant to your own Azure subscription
MIT License
102 stars 99 forks source link

Error code: 1002. Error details: The server returned status code '401' when status code '101' was expected #553

Open Fatichti opened 3 years ago

Fatichti commented 3 years ago

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

The issue

I have done everything that was indicated here, everything works, on the Bot emulator works perfectly and I have the "Your bot is ready" page. However, when I want to connect with Windows Voice Assistant Client, I get an error message

Any log messages given by the failure

Error (ConnectionFailure) : Connection was closed by the remote host. Error code: 1002. Error details: The server returned status code '401' when status code '101' was expected

Expected/desired behavior

A Hello and welcome message

OS and Version?

Windows 10

Mention any other details that might be useful

I checked the "Enable Streaming Endpoint" box and toggled "Web sockets" to On I restarted the cognitive services, without success. All my resources are in USA West except 1 which is in global, but that's normal. I tested with PowerShell as shown here, to see if the keys were invalid but I don't get an error, I get a response with lots of characters (about a hundred). I put the language en-FR then the default one, but without succes

trrwilson commented 3 years ago

Thanks for getting in touch!

A "401" auth-style failure like this generally indicates that there was trouble connecting to your bot from the Direct Line Speech service -- confusingly enough, this is error message from one service telling you it couldn't handshake with another server!

Can you please check the following:

Those are the most common gotchas. If all of that looks good and it's still being stubborn, please grab a log (by populating the "log file path" options in the Windows Voice Assistant Client or by following these steps for your own app) and share it with us here -- we can use the request IDs to look up more detail on the service side.

Thanks!

Fatichti commented 3 years ago

Hello,

Thank you for taking the time to reply. I checked all the steps, everything is good. I have shared the log file. log_WVAC.txt

albanoandrea commented 3 years ago

Did you tested the bot in web chat following this? We had a similar issue and we fixed it when doing that procedure.

socullen commented 2 years ago

I am facing the same issue. On top of this I am unable to test the bot in web chat. The instructions shown in the tutorial seem to not work.

aditya-azad commented 1 year ago

I am having the same issue. Also for the web chat, I am unable to access the password manager (It says: Insufficient privileges to complete the operation, but I am the admin). I followed the tutorial that @albanoandrea has suggested from start to finish but it does not work. logs.txt