Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
litalrok7
Contributor III
Contributor III

GeneralCommunicationException with communication error WebSocketConnectionNotAccepted and http error

Hi All,
We're trying to connect to qlik sense server and retrieve apps’ data. When trying to get qlik’s apps list we receive this error message:
 
Connection failed after 4 attempts. Unable to keep connection open: Failed to ensure open connection: GeneralCommunicationException with communication error WebSocketConnectionNotAccepted and http error code 500
 
• I have added my host to web socket white list in virtual proxy.
• Checked if Connection port is right
• Proxy Allow HTTP connection
• User has Root Admin access in QMC
 
Advise \ help will be highly appreciated!!
 
Here is code example of connection:
location = Qlik.Engine.Location.FromUri(new Uri("http://[host]:[port]"));
 
location.VirtualProxyPath = "proxyName";
 
bool ssl = (protocol.Equals("https") || protocol.Equals("wss"));
NetworkCredential netCred = new NetworkCredential(userName, Password);
 
if (ssl)
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls |
SecurityProtocolType.Tls11 |
SecurityProtocolType.Tls12;
}
 
location.AsNtlmUserViaProxy(ssl, netCred);
Labels (1)
1 Reply
vivek_gajjar01
Partner - Contributor II
Partner - Contributor II

Have you tried inputting the name of the virtual proxy in the location.VirtualProxyPath = "proxyName" ? As this sound to me like there is an issue connecting via the Virtual Proxy. The proxy name can be found within the QMC -> Virtual Proxy -> Selecting the Virtual Proxy -> Under the Prefix section whatever the name is in this section you would replace the "proxyName" value with. Alternatively you can try  location.VirtualProxyPath = "static";

 

https://help.qlik.com/en-US/sense-developer/April2019/Subsystems/NetSDKAPI/Content/Sense_NetSDKAPI/C...