Thanks for reaching out to us, based on the error message, it seems there is something wrong with your credentials. Please check on below items to see if there is anything wrong with it.
- Verify your credentials: Make sure that the "uuid-client-id" and "client_secret_value" are correct and have the right permissions. The Client ID and Client Secret should come from your Azure Bot Registration.
- Emulator and Azure differences: The bot emulator might not require the same authentication process as deploying to Azure. If the bot works with the emulator but not when deployed, it's likely due to differences in the authentication process.
- Check your OAuth Connection: If you're using an OAuth connection, make sure it's set up correctly in Azure. You can test the connection in the Azure portal (Bot services -> Settings -> OAuth Connection Settings -> Test Connection).
- Consider using Managed Identity: If you're running your bot on Azure, you could consider using Managed Identity to handle your bot's authentication to Azure services. This can simplify your code and make your bot more secure.
- Debug the Authentication process: You may need to debug your bot's authentication process. This could involve printing out the
auth_token
dictionary to see what it contains, or printing out other information about the authentication process. Be careful not to print out any sensitive information like secrets or access tokens. - Upgrade your libraries: Ensure that you're using the latest versions of the
botframework-connector
and other related libraries. Sometimes issues can be caused by bugs in older versions of libraries.
Once you check on everything but you believe there is nothing wrong with it, please let us know, we can discuss further on this issue.
Regards,
Yutong
-Please kindly accept the answer if you feel helpful to support the community, thanks a lot.