<?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 Yet another REST connector problem! in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Yet-another-REST-connector-problem/m-p/1415933#M3103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;First of all Im using QlikSense Business Cloud. I create a REST-connector with the POST method and it works fine. I see the desired results. The connection works. Then Im including the data from the connector through the icon "Choose data" and then "insert script". Here I also see the correct results. I see that it is receiving the correct results. BUT, when I load the app I get this error: "&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;QVX_UNEXPECTED_END_OF_DATA: HTTP protocol error 400 (Bad Request): Bad Request&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why?&lt;/P&gt;&lt;P&gt;Any suggestions how to move on from here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;Cristian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Oct 2017 21:23:20 GMT</pubDate>
    <dc:creator>mr_novice</dc:creator>
    <dc:date>2017-10-23T21:23:20Z</dc:date>
    <item>
      <title>Yet another REST connector problem!</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Yet-another-REST-connector-problem/m-p/1415933#M3103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;First of all Im using QlikSense Business Cloud. I create a REST-connector with the POST method and it works fine. I see the desired results. The connection works. Then Im including the data from the connector through the icon "Choose data" and then "insert script". Here I also see the correct results. I see that it is receiving the correct results. BUT, when I load the app I get this error: "&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;QVX_UNEXPECTED_END_OF_DATA: HTTP protocol error 400 (Bad Request): Bad Request&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why?&lt;/P&gt;&lt;P&gt;Any suggestions how to move on from here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;Cristian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 21:23:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Yet-another-REST-connector-problem/m-p/1415933#M3103</guid>
      <dc:creator>mr_novice</dc:creator>
      <dc:date>2017-10-23T21:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Yet another REST connector problem!</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Yet-another-REST-connector-problem/m-p/1415934#M3104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These are the settings:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Skärmavbild 2017-10-23 kl. 23.52.06.png" class="jive-image image-2" src="/legacyfs/online/180638_Skärmavbild 2017-10-23 kl. 23.52.06.png" style="height: 657px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Skärmavbild 2017-10-23 kl. 23.50.31.png" class="jive-image image-3" src="/legacyfs/online/180639_Skärmavbild 2017-10-23 kl. 23.50.31.png" style="height: 428px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Skärmavbild 2017-10-23 kl. 23.52.27.png" class="jive-image image-1" src="/legacyfs/online/180634_Skärmavbild 2017-10-23 kl. 23.52.27.png" style="height: 238px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The inserted script:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15087953873479183 jive_text_macro" jivemacro_uid="_15087953873479183" modifiedtitle="true"&gt;
&lt;P&gt;LIB CONNECT TO 'GetNewToken';&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;"col_1"&lt;/P&gt;
&lt;P&gt;FROM CSV (header off, delimiter ",", quote """") "CSV_source";&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;[CSV_source]:&lt;/P&gt;
&lt;P&gt;LOAD [col_1] AS [col_1]&lt;/P&gt;
&lt;P&gt;RESIDENT RestConnectorMasterTable;&lt;/P&gt;
&lt;P&gt;DROP TABLE RestConnectorMasterTable;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error when loading:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Skärmavbild 2017-10-23 kl. 23.55.06.png" class="image-4 jive-image" src="/legacyfs/online/180640_Skärmavbild 2017-10-23 kl. 23.55.06.png" style="height: 67px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 21:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Yet-another-REST-connector-problem/m-p/1415934#M3104</guid>
      <dc:creator>mr_novice</dc:creator>
      <dc:date>2017-10-23T21:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Yet another REST connector problem!</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Yet-another-REST-connector-problem/m-p/1415935#M3105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok. This doesnt work. But, I created another script. This is to get the latest token that I need to use in another connection:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15088357977698660 jive_text_macro" jivemacro_uid="_15088357977698660" modifiedtitle="true"&gt;
&lt;P&gt;LIB CONNECT TO 'DummyPostConnection';&lt;/P&gt;
&lt;P&gt;SET vRequestBody = '{"username":"abcde","password":"abcde"}';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;let vRequestBody = replace(vRequestBody,'"', chr(34)&amp;amp;chr(34));&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;"col_1"&lt;/P&gt;
&lt;P&gt;FROM CSV (header off, delimiter ",", quote """") "CSV_source"&lt;/P&gt;
&lt;P&gt;WITH CONNECTION ( &lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; URL "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://X/Login.ashx/" rel="nofollow" target="_blank"&gt;https://X/Login.ashx/&lt;/A&gt;&lt;SPAN&gt;", &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HTTPHEADER "Content-Type" "application/json", &lt;/P&gt;
&lt;P&gt;&amp;nbsp; BODY "$(vRequestBody)"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ) &lt;/P&gt;
&lt;P&gt;; &lt;/P&gt;
&lt;P&gt;[CSV_source]:&lt;/P&gt;
&lt;P&gt;LOAD [col_1] AS [col_1]&lt;/P&gt;
&lt;P&gt;RESIDENT RestConnectorMasterTable;&lt;/P&gt;
&lt;P&gt;DROP TABLE RestConnectorMasterTable;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LET vToken = peek('col_1',0,'CSV_source');&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Drop table CSV_source;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 09:05:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Yet-another-REST-connector-problem/m-p/1415935#M3105</guid>
      <dc:creator>mr_novice</dc:creator>
      <dc:date>2017-10-24T09:05:30Z</dc:date>
    </item>
  </channel>
</rss>

