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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

WebSocket connection to '{mashup url}' failed: Error during WebSocket handshake: Unexpected response code: 500

Hello,

I'm using the On-Demand-App-Gen type extension in a Mashup.

The Extension copies a Template App, and modifies its script based on some logic.

To do that, it creates a newAppSession , and it throws the error.

WebSocket connection to '{mashup url}' failed:  Error during WebSocket handshake: Unexpected response code: 500

newAppSession = RPCSession.get(PrevId, {

  host: window.location.host,

  isSecure: window.location.protocol == "https:"

  });

    newAppSession.open(true);

The same extension works well in QlikSense report, but fails in mashup.

Is there a limitation of mashup, that we cannot create a new Session.

Could you please help me here.

2 Replies
Alexander_Thor
Employee
Employee

Are you running any special virtual proxy prefixes? Based on the config it seems to be the default one ( / ).
Is the user authenticated?

If you check the network tab in devtools, does the websocket url look correct?

Not applicable
Author

I chekced the websocket url and it was wrong.

It had taken prefix as 'extension' (I think because it was running in mashups),

so I specified the prefix as '/' and it worked.

newAppSession = RPCSession.get(newAppId, {

  host: window.location.host,

  prefix:"/",

  isSecure: window.location.protocol == "https:"

  });

Thanks,

Wasi