function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shubham Hadve 6Shubham Hadve 6 

Facing issue with live agent chat

We have implemented a live chat on the company website but we are getting the below error.

We are getting the below error. Please check and share the root cause for this.  this.pingScript = document.body.appendChild(a);              this.pingTimeoutTimer = window.setTimeout(function() {                  this.onError("Server failed to respond.") 

thanks in advance
Shubham
SwethaSwetha (Salesforce Developers) 
Hi Shubham,
Is "Server failed to respond" the error you are seeing? What is the action you are performing that is throwing the error? Do you see any details in the log?

Does the chat work within Salesforce via a Visualforce Page, Community?

See Scope of Support for Website Chat button:
https://help.salesforce.com/s/articleView?id=000384746&type=1

Thank you
oscar clarkoscar clark
Hi Shubham,
The error you are facing seems to be related to the live chat script on your website. The error message suggests that the server failed to respond to a ping request from the chat script, which could be due to a variety of reasons.
Here are some possible causes and solutions for the issue:
Server Issues: The error message could indicate a problem with the chat server, which may be down or experiencing high traffic. You can check with your chat service provider to see if there are any known issues or maintenance schedules that could be causing the problem.
Network Connectivity Issues: The error could also be due to network connectivity issues between your website and the chat server. Check Hostess Köln (https://hostess-koeln.com/) if there are any firewall settings or network configurations that could be blocking the chat script from connecting to the server.
Script Error: There could be an error in the chat script itself that is causing it to fail. You can try debugging the script by checking for any syntax errors or compatibility issues with other scripts on your website.
Timeout Settings: The error message suggests that there may be a timeout setting in the chat script that is triggering the error. You can check the chat script documentation or contact the service provider to see if there are any settings you can adjust to resolve the issue.
I hope this helps you resolve the issue with your live chat. If you continue to face issues, feel free to reach out to the chat service provider's support team for further assistance.