<?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 Re: Qlik server stuck at SESSION_ATTACHED stage in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-server-stuck-at-SESSION-ATTACHED-stage/m-p/1418190#M8762</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This issue has been fixed by closing the websocket every time the sequence exit, success or not. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jan 2018 18:29:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-01-11T18:29:56Z</dc:date>
    <item>
      <title>Qlik server stuck at SESSION_ATTACHED stage</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-server-stuck-at-SESSION-ATTACHED-stage/m-p/1418189#M8761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm new on qlik integration. I'm trying to implement dynamic data from our app to Qlik for custom visualization, and here the sequence of it:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Using Qlik REST API, copy from a template app and get the new app_id&lt;/LI&gt;&lt;LI&gt;Create a websocket connection to qlik server&lt;/LI&gt;&lt;LI&gt;Using Qlik Engine API, open the app with app_id from step #1 using OpenDoc method&lt;/LI&gt;&lt;LI&gt;Set script to the app by using SetScript method&lt;/LI&gt;&lt;LI&gt;Reload the app by DoReload method&lt;/LI&gt;&lt;LI&gt;Save the app by DoSave method&lt;/LI&gt;&lt;LI&gt;In the 'Finally' clause, I always close the connection from step #2&lt;/LI&gt;&lt;LI&gt;Lastly, using Qlik REST API, publish the app before client can see it from our application&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes on step #2, the create connection result in " {u'jsonrpc': u'2.0', u'method': u'OnConnected', u'params': {u'qSessionState': u'SESSION_ATTACHED'}}" instead of "SESSION_CREATED". And it result in step #3 with {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'code': 1002, u'parameter': u'b4d8fd05-6280-460b-a1df-b72247a956e9', u'message': u'App already open'}} and failed the subsequent steps and subsequent custom viz generation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;What is causing SESSION_ATTACHED on step #2 ?&lt;/LI&gt;&lt;LI&gt;How to list out all opened session and close the one that is not being used ?&lt;/LI&gt;&lt;LI&gt;Once it gets into this SESSION_ATTACHED stage, it will be stuck in such stage, how can I fix it? &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 22:41:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-server-stuck-at-SESSION-ATTACHED-stage/m-p/1418189#M8761</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-17T22:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik server stuck at SESSION_ATTACHED stage</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-server-stuck-at-SESSION-ATTACHED-stage/m-p/1418190#M8762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This issue has been fixed by closing the websocket every time the sequence exit, success or not. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 18:29:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-server-stuck-at-SESSION-ATTACHED-stage/m-p/1418190#M8762</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-11T18:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik server stuck at SESSION_ATTACHED stage</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-server-stuck-at-SESSION-ATTACHED-stage/m-p/1418191#M8763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Winnie and I found in further testing that we were still seeing this when we made two concurrent WebSocket connections to the same Qlik Sense Engine API endpoint. After reviewing "Connecting to the Qlik Engine API" at&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/sense-developer/November2017/Subsystems/EngineAPI/Content/GettingStarted/connecting-to-engine-api.htm" title="http://help.qlik.com/en-US/sense-developer/November2017/Subsystems/EngineAPI/Content/GettingStarted/connecting-to-engine-api.htm"&gt;http://help.qlik.com/en-US/sense-developer/November2017/Subsystems/EngineAPI/Content/GettingStarted/connecting-to-engine-api.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we realized that we needed to append the Qlik app ID to the Engine API URLs when making our WebSocket connections to get an isolated Qlik Engine session for each Qlik app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jan 2018 21:31:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-server-stuck-at-SESSION-ATTACHED-stage/m-p/1418191#M8763</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-21T21:31:05Z</dc:date>
    </item>
  </channel>
</rss>

