Chat is unavailable due to an authorization error

Hello,
I have a problem implementing a web chat.
Using the developer tools, I try to start a chat conversation, but in the pop-up window the following error appears: "Chat is unavailable due to an authorization error".

This is the deployment script tag

 <script
     id="purecloud-webchat-js"
     type="text/javascript"
     src="https://apps.mypurecloud.com/webchat/jsapi-v1.js"
     region="us-east-1"
     org-guid="----"
    deployment-key="----"></script>

This is the chat code:

let chatConfig = {
"webchatAppUrl": "https://apps.mypurecloud.com/webchat",
"webchatServiceUrl": "https://realtime.mypurecloud.com:443",
 "orgId": "-----",
"orgName": "-----",
"queueName": "-----",
 "logLevel": "DEBUG",
"locale": "en"

I have created a Deployment, and queue have agents. The chat deployment settings is updated to true:

{
     "requireDeployment": true
 }

How to solve this problem? Thanks

Are you able to create chats using the dev tools? https://developer.mypurecloud.com/developer-tools/#/webchat

Yes. https://image.ibb.co/exwXJe/Error_Chat.png

Did you define your web chat deployment to require authentication?

No. require authentication = no.

When you use the dev tools chat tester, click the "click here" link under deployments to create a new one called Developer Tools. Try creating a chat using that deployment and let me know if it works.

image

Hello Tim.
I just did what you say, but it still doesn't work. The error is the same.

Solved.

I was logging into the account through authorized organizations. This way it doesn't work. When I logged in using a direct account of the organization, it worked. I think there is a bug with permissions in the accounts of partner organizations.

Thanks

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.