Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
Qlik® Product Spotlight: Discover what’s possible. Get more from our products.
See for yourself. Register today.
Not applicable

Connection to Qlik service failed, shutting down. OnEngineWebsocketFailed

Hi everyone,

I am working with Qlik sense .Net SDK. I am using AsExistingSessionViaProxy() method to authenticate user. After authentication i fetch list of App to display in drop-down control.

Scenario of Issue: Suppose a user has open an app in web browser. and I open same app form my code using same userid then i get an error pop up saying connection lost.

Pop up display when i call this function: location.App(appIdentifier)

Capture.PNG

Code sample:

   location.AsExistingSessionViaProxy(sessionId, "X-Qlik-Session", certificateValidation: false);

   var appIdentifier = location.AppWithId(appId);

  using (IApp app = location.App(appIdentifier))  //Pop up display when this line execute.

     {

          list = app.GetSheetList().Items.ToList();

     }

4 Replies
Not applicable

Re: Connection to Qlik service failed, shutting down. OnEngineWebsocketFailed

Please help.....

Employee
Employee

Re: Connection to Qlik service failed, shutting down. OnEngineWebsocketFailed

I am not particularly familiar with that type of connection, but there is an example available that utilizes AsExistingSessionViaProxy. Perhaps that can provide some clues as to what is wrong? You can find the example here:

https://github.com/AptkQlik/PublicExamples/blob/master/ConnectServerTicketAttach/Program.cs

Best regards, Øystein Kolsrud

Not applicable

Re: Connection to Qlik service failed, shutting down. OnEngineWebsocketFailed

Thank you yko for your reply.

Link is not working

Employee
Employee

Re: Connection to Qlik service failed, shutting down. OnEngineWebsocketFailed

Sorry, wrong link... I have updated it now.