I am currently trying to open a web chat to one of our queues, but whenever I try to initiate the chat, it fails with an Authentication error. The specific error I get is "Guest authentication failed (5b57670700003fb81d9a1e61)". I have browsed but have been unable to find anything about the error or what might cause it. I will leave my chatConfig below. Any help would be much appreciated.
var chatConfig = {
// Web chat application URL
webchatAppUrl: 'https://apps.mypurecloud.com/webchat',
// Web chat service URL
webchatServiceUrl: 'https://realtime.mypurecloud.com:443',
// Numeric organization ID
orgId: 55555,
// Organization name. Replace with your org name.
orgName: 'myorg',
// Requested agent language skill (Agent must have this language skill to receive chat)
language: 'English - Written',
// Requested agent skills (Agent must have these skills to receive chat)
skills: [],
// OR
//skills: [],
// Priority
priority: 0,
// Queue Name
queueName: 'Test-Queue',
// Target agent email (OPTIONAL)
//agentEmail: 'alex.agent@example.com',
// Whether to show submit button or send message on Enter keypress
showSubmitButton: true,
// Log level
logLevel: 'DEBUG',
// Locale code
locale: 'en',
// Whether to allow reconnects
reconnectEnabled: false,
//Allowed reconnect origins
//reconnectOrigins: ['https://example.com', 'https://help.example.com', 'https://shop.example.com'],
// Logo used within the chat window
companyLogoSmall: {
width: 149,
height: 149,
url: 'https://dhqbrvplips7x.cloudfront.net/webchat/1.0.23/company-logo-small-9c9fe09b.png'
},
// Fallback image used for agent if no agent image is defined in the agent's PureCloud profile
agentAvatar: {
width: 462,
height: 462,
url: 'https://dhqbrvplips7x.cloudfront.net/webchat/1.0.23/agent-e202505f.png'
},
// Text displayed with chat window is displayed
welcomeMessage: 'Thanks for chatting.',
// CSS class applied to the chat window
cssClass: 'webchat-frame',
data: {
firstName: 'test',
lastName: 'test',
customField1Label: 'Student Id',
customField1: '',
customField2Label: 'Date of Birth',
customField2: ''
},
};