Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am not able to locate qlik sense server using Dot Net SDK.
error message is:
Connection failed after 4 attempts. Unable to keep connection open: Failed to ensure open connection: GeneralCommunicationException with communication error WebSocketSendOnClosed and http error code 500.
I have already added my IP-Address in web socket whitelist in virtual proxy.
this is my code sample
try
{
Uri uri = new Uri("http://ServerIP:873");
ILocation location = Qlik.Engine.Location.FromUri(uri);
location.VirtualProxyPath = "virproxy";
location.AsStaticHeaderUserViaProxy("User ID", null, false);
using (IHub hub = location.Hub())
{
label1.Text = hub.ProductVersion();
}
}
catch (Qlik.Engine.Communication.CommunicationErrorException communicationException)
{
throw communicationException;
}
And another thing: Are you able to access the hub using http in a browser? You should be able to go to "http://ip-address:873/VirProxy/hub" if that virtual proxy uses ticket authentication.
Sorry, my mistake.
I have attached wrong image.
This is my new virtual proxy screen shot.
Hi again! I have been doing some experiments here, and I realized that the Windows firewall might be blocking the connection. I added a new rule to the "Inbound Rules" that allowed connection to port 80 even if it is insecure. Could that be something that could help you?
You can modify that setting in the tool "Windows Firewall with Advanced Security", or ask you system administrator to check that setting if you don't have access to it.
Thanks yko for your effort
Now I am able to connect with Qlik sense and getting data successfully.
Now my question is:
Wonderful! So I guess the firewall was the issue then. I'll keep that in mind for future support errands.
You should probably start a new thread here on Community as your latest question is likely to move quite far from the original topic of this thread. But his is a good place to go to start learning about how to retrieve data from Qlik Sense through the SDK:
Also, you might want to have a look at this class which can be used to traverse data of hyper cubes:
http://help.qlik.com/en-US/sense-developer/2.2/apis/net%20sdk/html/T_Qlik_Engine_HyperCubePager.htm
Most client objects have such pagers. For instance, bar charts have the following property that can be used to traverse the data of the bar chart:
Firewall was already disable.
Issue was with virtual proxy mapping. The new Virtual proxy I have created was not mapped with with actual proxy.