<?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: REST connection fails in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connection-fails/m-p/1443888#M3286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you selecting all the tables while loading the data? &lt;/P&gt;&lt;P&gt;Or It may be due rest connectors details ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jan 2018 15:25:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-01-04T15:25:18Z</dc:date>
    <item>
      <title>REST connection fails</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connection-fails/m-p/1443887#M3285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem connection with REST to a web API hosted by a ITSM system. I can make REST connections through other tools (Powershell using Invoke-RestMethod, and Advanced REST Client) and extract the data, but when setting this up with Qlik Sense Desktop, it fails:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load Statement&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'NilexTest-GetEntityListByQuery';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RestConnectorMasterTable:&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;"__KEY_root",&lt;/P&gt;&lt;P&gt;(SELECT&lt;/P&gt;&lt;P&gt;"Id",&lt;/P&gt;&lt;P&gt;"Type",&lt;/P&gt;&lt;P&gt;"CreatedDate",&lt;/P&gt;&lt;P&gt;"EntityType",&lt;/P&gt;&lt;P&gt;"Type.Id",&lt;/P&gt;&lt;P&gt;"__FK_Data"&lt;/P&gt;&lt;P&gt;FROM "Data" FK "__FK_Data")&lt;/P&gt;&lt;P&gt;FROM JSON (wrap on) "root" PK "__KEY_root";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Data]:&lt;/P&gt;&lt;P&gt;LOAD [Id] AS [Id],&lt;/P&gt;&lt;P&gt;[Type] AS [Type],&lt;/P&gt;&lt;P&gt;[CreatedDate] AS [CreatedDate],&lt;/P&gt;&lt;P&gt;[EntityType] AS [EntityType],&lt;/P&gt;&lt;P&gt;[Type.Id] AS [Type.Id],&lt;/P&gt;&lt;P&gt;[__FK_Data] AS [__KEY_root]&lt;/P&gt;&lt;P&gt;RESIDENT RestConnectorMasterTable&lt;/P&gt;&lt;P&gt;WHERE NOT IsNull([__FK_Data]);&lt;/P&gt;&lt;P&gt;DROP TABLE RestConnectorMasterTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;From the error log:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Error: QVX_UNEXPECTED_END_OF_DATA: HTTP protocol error 400 (Bad Request):&lt;/P&gt;&lt;P&gt;2017-12-21 16:47:00&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;2017-12-21 16:47:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {"Data":null,"Errors":[{"Message":"Invalid json: 'Error reading JObject from JsonReader. Current JsonReader item is not an object: String. Path '', line 1, position 12.'","Code":21,"MessageDetails":"Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Current JsonReader item i...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can browse and select the data, so the connection is working up until I press Load Data, and the error above appears.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-12-21_16-52-22.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/187872_2017-12-21_16-52-22.png" style="height: 208px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen other community discussions regarding similar issues, but my Sense scripting skills are limited so I haven't been able to transform them successfully to match my needs.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/193179"&gt;REST CONNECTOR, Override request body&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone assist in this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 15:57:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connection-fails/m-p/1443887#M3285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-21T15:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: REST connection fails</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connection-fails/m-p/1443888#M3286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you selecting all the tables while loading the data? &lt;/P&gt;&lt;P&gt;Or It may be due rest connectors details ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 15:25:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connection-fails/m-p/1443888#M3286</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-04T15:25:18Z</dc:date>
    </item>
  </channel>
</rss>

