<?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 Engine JSON API: GetDocList returns an empty list in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-JSON-API-GetDocList-returns-an-empty-list/m-p/1780629#M13799</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have come across a problem while trying to connect to the a QS Enterprise server using the Qlik Engine JSON API and retrieve a list of all applications using the &lt;EM&gt;GetDocList&lt;/EM&gt; method.&lt;/P&gt;&lt;P&gt;I connect to the server using a keystore with certificates and the connection is successful. Then, using a custom user (not admin), I am trying to retrieve a list of all apps that a user has access to, but the list returns empty. However, when I perform the same request using the Qlik Sense dev-hub, the response contains all applications on the server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any idea what could be wrong or what I shall modify? I tried to assign RootAdmin security rule to the user I used for logging in, but with no success. Thanks for any suggestions.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:40:18 GMT</pubDate>
    <dc:creator>manta_dev</dc:creator>
    <dc:date>2024-11-16T00:40:18Z</dc:date>
    <item>
      <title>Engine JSON API: GetDocList returns an empty list</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-JSON-API-GetDocList-returns-an-empty-list/m-p/1780629#M13799</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have come across a problem while trying to connect to the a QS Enterprise server using the Qlik Engine JSON API and retrieve a list of all applications using the &lt;EM&gt;GetDocList&lt;/EM&gt; method.&lt;/P&gt;&lt;P&gt;I connect to the server using a keystore with certificates and the connection is successful. Then, using a custom user (not admin), I am trying to retrieve a list of all apps that a user has access to, but the list returns empty. However, when I perform the same request using the Qlik Sense dev-hub, the response contains all applications on the server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any idea what could be wrong or what I shall modify? I tried to assign RootAdmin security rule to the user I used for logging in, but with no success. Thanks for any suggestions.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:40:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-JSON-API-GetDocList-returns-an-empty-list/m-p/1780629#M13799</guid>
      <dc:creator>manta_dev</dc:creator>
      <dc:date>2024-11-16T00:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Engine JSON API: GetDocList returns an empty list</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-JSON-API-GetDocList-returns-an-empty-list/m-p/1781874#M13818</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/102124"&gt;@manta_dev&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you provide a sample of how your current code that is failing looks like ?&lt;/P&gt;&lt;P&gt;You are sending exactly the same JSON body as the one in the dev-hub ?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 07:47:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-JSON-API-GetDocList-returns-an-empty-list/m-p/1781874#M13818</guid>
      <dc:creator>Damien_V</dc:creator>
      <dc:date>2021-02-11T07:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Engine JSON API: GetDocList returns an empty list</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-JSON-API-GetDocList-returns-an-empty-list/m-p/1782746#M13838</link>
      <description>&lt;P&gt;First I connect to the QS Enterprise server creating a websocket, using certificates (this definitely works, because the websocket is created - otherwise some connection error would be thrown).&lt;/P&gt;&lt;P&gt;Then I simply send&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"handle": -1,"method": "GetDocList","params":[],"outKey": -1, "id": 1}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;message to the server, to address&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;wss://&amp;lt;serverURL&amp;gt;:4747/app/&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;exactly the same as the dev-hub does. The only difference is that I have [] instead of {} at "params" argument, but dev-hub works the same if I put the [] in there as well.&lt;/P&gt;&lt;P&gt;The answer is a standard message with an empty list of applications.&lt;/P&gt;&lt;P&gt;This leads me to some unknown problem with privileges, I believe. When I do this on our development server it works flawlessly, but when I run this on customer's server, it doesn't work even when the userId+userDirectory used for logging in has RootAdmin privileges.&lt;/P&gt;&lt;P&gt;Can it have something to do with the fact that the client has got a multi-node Qlik Sense deployment?&amp;nbsp; As far as I know, there are 2 nodes running the QES, but I am not very familiar with this and how it could potentially affect everything.&lt;/P&gt;&lt;P&gt;If there is some more information that could help you with solving this issue, please let me know. I think I tried everything I know or that I could find and nothing works so far.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 13:35:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-JSON-API-GetDocList-returns-an-empty-list/m-p/1782746#M13838</guid>
      <dc:creator>manta_dev</dc:creator>
      <dc:date>2021-02-15T13:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Engine JSON API: GetDocList returns an empty list</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-JSON-API-GetDocList-returns-an-empty-list/m-p/1782801#M13842</link>
      <description>&lt;P&gt;Helllo&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/102124"&gt;@manta_dev&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you specify a X-Qlik-User header on your request specifying as which user you want to run the request ?&lt;/P&gt;&lt;P&gt;If you use certificates to connect to the engine, then it's the user specified in X-Qlik-User that is taken as the user running the request, not the actual Windows user you're running the code with.&lt;/P&gt;&lt;PRE&gt;'X-Qlik-user': 'UserDirectory=DOMAIN;UserId=Administrator'&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Feb 2021 15:52:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-JSON-API-GetDocList-returns-an-empty-list/m-p/1782801#M13842</guid>
      <dc:creator>Damien_V</dc:creator>
      <dc:date>2021-02-15T15:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Engine JSON API: GetDocList returns an empty list</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-JSON-API-GetDocList-returns-an-empty-list/m-p/1783824#M13870</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/29425"&gt;@Damien_V&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, when I am creating a WebsocketClient instance, I explicitly set the header "X-Qlik-User" to value "UserId=(username used);UserDirectory=(customer's domain)".&lt;/P&gt;&lt;P&gt;The &lt;EM&gt;username used&lt;/EM&gt; and &lt;EM&gt;customer's domain&lt;/EM&gt;&amp;nbsp; are&amp;nbsp; the exact combination we tested in the dev-hub that returned the correct list of apps.&lt;/P&gt;&lt;P&gt;I believe that if this did not work, the websocket connection would not have been established at all.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 13:21:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-JSON-API-GetDocList-returns-an-empty-list/m-p/1783824#M13870</guid>
      <dc:creator>manta_dev</dc:creator>
      <dc:date>2021-02-18T13:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Engine JSON API: GetDocList returns an empty list</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-JSON-API-GetDocList-returns-an-empty-list/m-p/1783962#M13872</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/102124"&gt;@manta_dev&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you enable the Engine Traffic logs and check in there how does the request look exactly when received by the Qlik Sense server ?&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Support-Knowledge-Base/The-Qlik-Sense-Engine-Traffic-Log-level/ta-p/1715748" target="_blank"&gt;https://community.qlik.com/t5/Support-Knowledge-Base/The-Qlik-Sense-Engine-Traffic-Log-level/ta-p/1715748&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 18:28:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-JSON-API-GetDocList-returns-an-empty-list/m-p/1783962#M13872</guid>
      <dc:creator>Damien_V</dc:creator>
      <dc:date>2021-02-18T18:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Engine JSON API: GetDocList returns an empty list</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-JSON-API-GetDocList-returns-an-empty-list/m-p/1784063#M13874</link>
      <description>&lt;P&gt;Wild guess here... Is it a multi-node system? Perhaps there is an issue with you load balancing rules? If the dev-hub leads you to a different node than the one you are direct connecting to, then those rules could explain what you are seeing.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 07:31:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-JSON-API-GetDocList-returns-an-empty-list/m-p/1784063#M13874</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2021-02-19T07:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Engine JSON API: GetDocList returns an empty list</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-JSON-API-GetDocList-returns-an-empty-list/m-p/1784065#M13875</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/41242"&gt;@Øystein_Kolsrud&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, it is a multi-node system. Is there any way I can verify that this is the problem?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 07:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-JSON-API-GetDocList-returns-an-empty-list/m-p/1784065#M13875</guid>
      <dc:creator>manta_dev</dc:creator>
      <dc:date>2021-02-19T07:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Engine JSON API: GetDocList returns an empty list</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-JSON-API-GetDocList-returns-an-empty-list/m-p/1784070#M13876</link>
      <description>&lt;P&gt;Well, you can always try to direct-connect to the other nodes and see if you get a different behavior. You could also do a REST call to the endpoint /qrs/app and see if you get a different result. That would give you the apps you can see in the context of the QMC (unless you specify otherwise) which I think should be different if the set of load balancing rules is really the cause here.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 07:53:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-JSON-API-GetDocList-returns-an-empty-list/m-p/1784070#M13876</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2021-02-19T07:53:41Z</dc:date>
    </item>
  </channel>
</rss>

