<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic WebSocket connection to '{mashup url}' failed:  Error during WebSocket handshake: Unexpected response code: 500 in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/WebSocket-connection-to-mashup-url-failed-Error-during-WebSocket/m-p/1260370#M6880</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the On-Demand-App-Gen type extension in a Mashup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Extension copies a Template App, and modifies its script based on some logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do that, it creates a newAppSession , and it throws the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WebSocket connection to '{mashup url}' failed:&amp;nbsp; Error during WebSocket handshake: Unexpected response code: 500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;newAppSession = RPCSession.get(PrevId, {&lt;/P&gt;&lt;P&gt;&amp;nbsp; host: window.location.host,&lt;/P&gt;&lt;P&gt;&amp;nbsp; isSecure: window.location.protocol == "https:"&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; newAppSession.open(true);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same extension works well in QlikSense report, but fails in mashup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a limitation of mashup, that we cannot create a new Session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jan 2017 11:17:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-01-17T11:17:58Z</dc:date>
    <item>
      <title>WebSocket connection to '{mashup url}' failed:  Error during WebSocket handshake: Unexpected response code: 500</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/WebSocket-connection-to-mashup-url-failed-Error-during-WebSocket/m-p/1260370#M6880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the On-Demand-App-Gen type extension in a Mashup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Extension copies a Template App, and modifies its script based on some logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do that, it creates a newAppSession , and it throws the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WebSocket connection to '{mashup url}' failed:&amp;nbsp; Error during WebSocket handshake: Unexpected response code: 500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;newAppSession = RPCSession.get(PrevId, {&lt;/P&gt;&lt;P&gt;&amp;nbsp; host: window.location.host,&lt;/P&gt;&lt;P&gt;&amp;nbsp; isSecure: window.location.protocol == "https:"&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; newAppSession.open(true);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same extension works well in QlikSense report, but fails in mashup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a limitation of mashup, that we cannot create a new Session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 11:17:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/WebSocket-connection-to-mashup-url-failed-Error-during-WebSocket/m-p/1260370#M6880</guid>
      <dc:creator />
      <dc:date>2017-01-17T11:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: WebSocket connection to '{mashup url}' failed:  Error during WebSocket handshake: Unexpected response code: 500</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/WebSocket-connection-to-mashup-url-failed-Error-during-WebSocket/m-p/1260371#M6881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you running any special virtual proxy prefixes? Based on the config it seems to be the default one ( / ).&lt;BR /&gt;Is the user authenticated?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you check the network tab in devtools, does the websocket url look correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 17:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/WebSocket-connection-to-mashup-url-failed-Error-during-WebSocket/m-p/1260371#M6881</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2017-01-17T17:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: WebSocket connection to '{mashup url}' failed:  Error during WebSocket handshake: Unexpected response code: 500</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/WebSocket-connection-to-mashup-url-failed-Error-during-WebSocket/m-p/1260372#M6882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I chekced the websocket url and it was wrong.&lt;/P&gt;&lt;P&gt;It had taken prefix as 'extension' (I think because it was running in mashups),&lt;/P&gt;&lt;P&gt;so I specified the prefix as '/' and it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;newAppSession = RPCSession.get(newAppId, {&lt;/P&gt;&lt;P&gt;&amp;nbsp; host: window.location.host,&lt;/P&gt;&lt;P&gt;&amp;nbsp; prefix:"/",&lt;/P&gt;&lt;P&gt;&amp;nbsp; isSecure: window.location.protocol == "https:"&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Wasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 09:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/WebSocket-connection-to-mashup-url-failed-Error-during-WebSocket/m-p/1260372#M6882</guid>
      <dc:creator />
      <dc:date>2017-01-18T09:30:00Z</dc:date>
    </item>
  </channel>
</rss>

