<?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>article Qlik Sense June 2020 connecting to NPrinting getting &amp;quot;HTTP protocol error 403 (Forbidden): The server refused to fulfill the request.&amp;quot; in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-June-2020-connecting-to-NPrinting-getting-quot-HTTP/ta-p/1759014</link>
    <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;When trying to run load script in Qlik Sense using REST connection to&amp;nbsp;NPrinting (using NTLM authentication)&amp;nbsp;you get the below error message:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;The following error occurred:&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;HTTP protocol error 403 (Forbidden):&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;The server refused to fulfill the request.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Data Load Progress Failed.png" style="width: 596px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43641i4EECED8F658823AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Data Load Progress Failed.png" alt="Data Load Progress Failed.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Qlik Sense September 2020 Patch 2 and later versions&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;R&amp;amp;D released a permanent fix for this issue which is included in &lt;STRONG&gt;&lt;U&gt;Qlik Sense September 2020 Patch 2&lt;/U&gt;&lt;/STRONG&gt;,&lt;/P&gt;
&lt;P&gt;However, in the load script, you must still replace&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;let vCookieRaw = Peek('Set-Cookie',0,'_response_header');  
let vCookie = TextBetween('$(vCookieRaw)','Secure,','Path=/',2);&lt;/PRE&gt;
&lt;P&gt;with&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;Let vCookieRaw = Peek('Set-Cookie',0,'cookie_items'); 
Let vCookie = TextBetween(vCookieRaw,'SameSite=None,',' Path=/',SubStringCount(vCookieRaw,'SameSite=None')-1);&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;Workaround Qlik Sense&amp;nbsp;June 2020&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;If using &lt;STRONG&gt;Qlik Sense&amp;nbsp;June 2020&lt;/STRONG&gt; and cannot perform an upgrade but a file can be replaced.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;NOTE&lt;/STRONG&gt;:&amp;nbsp;&lt;STRONG&gt;Please backup existing folder before proceeding below&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Download the file attached on this article (below:&amp;nbsp;qvrestconnector-enterprise.zip),&amp;nbsp;unzip it and&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1. Replace existing QvRestConnector folder content on the driver with this files.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;The QvRestConnector folder is located in:&lt;/P&gt;
&lt;PRE&gt;C:\Program Files\Common Files\Qlik\Custom Data\QvRestConnector&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;2. Replace the following&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;let vCookieRaw = Peek('Set-Cookie',0,'_response_header');  
let vCookie = TextBetween('$(vCookieRaw)','Secure,','Path=/',2);&lt;/PRE&gt;
&lt;P&gt;with*&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;//Extracts session cookie from the API response
Let vCookieRaw  = Peek('Set-Cookie',0,'cookie_items');
&lt;U&gt;&lt;STRONG&gt;Let vCookie = TextBetween(vCookieRaw,'SameSite=None,',' Path=/',SubStringCount(vCookieRaw,'SameSite=None')-1);&lt;/STRONG&gt;&lt;/U&gt;&lt;/PRE&gt;
&lt;P&gt;*For some cases:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;A request to NP returns one or more Set-Cookie headers that are parsed in the connector code. The value of the header is a list of semicolon separated key-value pairs. In case of multiple values with the same key, the last one should be used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The sample load script extracts the key-value pair with NPWEBCONSOLE_SESSION as key. Then you could use the Sense string functions to achieve this result in a way that would work also in case of future changes to the cookies:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let session = TextBetween(vCookieRaw, 'NPWEBCONSOLE_SESSION', '; ', SubStringCount(vCookieRaw, 'NPWEBCONSOLE_SESSION'));
let vCookie = 'NPWEBCONSOLE_SESSION'&amp;amp;session&amp;amp;';';&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Example of the key value pair (ending with semicolon) to extract:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NPWEBCONSOLE_SESSION=5d7ff2747&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;d10d82e46c39f385ceb9fc48948adc&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;f-%00userlogin%3A2021-03-22T14&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;%3A56%3A21.9786004Z%00%00NPWEB&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;CONSOLE_XSRF-TOKEN%3AwVMqYfj%2&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;FrZrhR01OcKU2F8AtGIj9J9WfStbvi&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;XWhJRM%3D%00%00_TS%3Asession%0&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;0%00userid%3A74aaa5a6bdf547fa9&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;9a24cf4495b3bab%00;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 26 Apr 2023 16:28:09 GMT</pubDate>
    <dc:creator>Sonja_Bauernfeind</dc:creator>
    <dc:date>2023-04-26T16:28:09Z</dc:date>
    <item>
      <title>Qlik Sense June 2020 connecting to NPrinting getting "HTTP protocol error 403 (Forbidden): The server refused to fulfill the request."</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-June-2020-connecting-to-NPrinting-getting-quot-HTTP/ta-p/1759014</link>
      <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;When trying to run load script in Qlik Sense using REST connection to&amp;nbsp;NPrinting (using NTLM authentication)&amp;nbsp;you get the below error message:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;The following error occurred:&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;HTTP protocol error 403 (Forbidden):&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;The server refused to fulfill the request.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Data Load Progress Failed.png" style="width: 596px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43641i4EECED8F658823AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Data Load Progress Failed.png" alt="Data Load Progress Failed.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Qlik Sense September 2020 Patch 2 and later versions&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;R&amp;amp;D released a permanent fix for this issue which is included in &lt;STRONG&gt;&lt;U&gt;Qlik Sense September 2020 Patch 2&lt;/U&gt;&lt;/STRONG&gt;,&lt;/P&gt;
&lt;P&gt;However, in the load script, you must still replace&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;let vCookieRaw = Peek('Set-Cookie',0,'_response_header');  
let vCookie = TextBetween('$(vCookieRaw)','Secure,','Path=/',2);&lt;/PRE&gt;
&lt;P&gt;with&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;Let vCookieRaw = Peek('Set-Cookie',0,'cookie_items'); 
Let vCookie = TextBetween(vCookieRaw,'SameSite=None,',' Path=/',SubStringCount(vCookieRaw,'SameSite=None')-1);&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;Workaround Qlik Sense&amp;nbsp;June 2020&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;If using &lt;STRONG&gt;Qlik Sense&amp;nbsp;June 2020&lt;/STRONG&gt; and cannot perform an upgrade but a file can be replaced.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;NOTE&lt;/STRONG&gt;:&amp;nbsp;&lt;STRONG&gt;Please backup existing folder before proceeding below&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Download the file attached on this article (below:&amp;nbsp;qvrestconnector-enterprise.zip),&amp;nbsp;unzip it and&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1. Replace existing QvRestConnector folder content on the driver with this files.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;The QvRestConnector folder is located in:&lt;/P&gt;
&lt;PRE&gt;C:\Program Files\Common Files\Qlik\Custom Data\QvRestConnector&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;2. Replace the following&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;let vCookieRaw = Peek('Set-Cookie',0,'_response_header');  
let vCookie = TextBetween('$(vCookieRaw)','Secure,','Path=/',2);&lt;/PRE&gt;
&lt;P&gt;with*&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;//Extracts session cookie from the API response
Let vCookieRaw  = Peek('Set-Cookie',0,'cookie_items');
&lt;U&gt;&lt;STRONG&gt;Let vCookie = TextBetween(vCookieRaw,'SameSite=None,',' Path=/',SubStringCount(vCookieRaw,'SameSite=None')-1);&lt;/STRONG&gt;&lt;/U&gt;&lt;/PRE&gt;
&lt;P&gt;*For some cases:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;A request to NP returns one or more Set-Cookie headers that are parsed in the connector code. The value of the header is a list of semicolon separated key-value pairs. In case of multiple values with the same key, the last one should be used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The sample load script extracts the key-value pair with NPWEBCONSOLE_SESSION as key. Then you could use the Sense string functions to achieve this result in a way that would work also in case of future changes to the cookies:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let session = TextBetween(vCookieRaw, 'NPWEBCONSOLE_SESSION', '; ', SubStringCount(vCookieRaw, 'NPWEBCONSOLE_SESSION'));
let vCookie = 'NPWEBCONSOLE_SESSION'&amp;amp;session&amp;amp;';';&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Example of the key value pair (ending with semicolon) to extract:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NPWEBCONSOLE_SESSION=5d7ff2747&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;d10d82e46c39f385ceb9fc48948adc&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;f-%00userlogin%3A2021-03-22T14&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;%3A56%3A21.9786004Z%00%00NPWEB&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;CONSOLE_XSRF-TOKEN%3AwVMqYfj%2&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;FrZrhR01OcKU2F8AtGIj9J9WfStbvi&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;XWhJRM%3D%00%00_TS%3Asession%0&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;0%00userid%3A74aaa5a6bdf547fa9&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;9a24cf4495b3bab%00;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Apr 2023 16:28:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-June-2020-connecting-to-NPrinting-getting-quot-HTTP/ta-p/1759014</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2023-04-26T16:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense June 2020 connecting to NPrinting getting "HTTP protocol error 403 (Forbidden): The server refused to fulfill the request."</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-June-2020-connecting-to-NPrinting-getting-quot-HTTP/tac-p/1762073#M1116</link>
      <description>&lt;P&gt;Hi&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28597"&gt;@Sonja_Bauernfeind&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do we need to stop engine service for replacing the connector. We recently upgraded Sense from Apr 2019 to June 2020 and facing this issue. The connector available here, didn't work for me, it failed data reload tasks for monitoring apps as well.&lt;/P&gt;&lt;P&gt;Pl let me now if&amp;nbsp; I am missing something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Digvijay&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 20:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-June-2020-connecting-to-NPrinting-getting-quot-HTTP/tac-p/1762073#M1116</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2020-11-16T20:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense June 2020 connecting to NPrinting getting "HTTP protocol error 403 (Forbidden): The server refused to fulfill the request."</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-June-2020-connecting-to-NPrinting-getting-quot-HTTP/tac-p/1829765#M4062</link>
      <description>&lt;P&gt;Please take a look to&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-NPrinting-Discussions/Nprinting-REST-API-broke-after-June-2020-update/m-p/1746284/highlight/true#M30115" target="_blank"&gt;https://community.qlik.com/t5/Qlik-NPrinting-Discussions/Nprinting-REST-API-broke-after-June-2020-update/m-p/1746284/highlight/true#M30115&lt;/A&gt;&amp;nbsp;also.&lt;/P&gt;&lt;P&gt;Maybe you need to add the extra header too.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 12:10:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-June-2020-connecting-to-NPrinting-getting-quot-HTTP/tac-p/1829765#M4062</guid>
      <dc:creator>maksim_senin</dc:creator>
      <dc:date>2021-08-19T12:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense June 2020 connecting to NPrinting getting "HTTP protocol error 403 (Forbidden): The server refused to fulfill the request."</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-June-2020-connecting-to-NPrinting-getting-quot-HTTP/tac-p/2489852#M14851</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28597"&gt;@Sonja_Bauernfeind&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You said that the RnD crew permanent fix the issue on 2020 but I'm getting the same error on May 2024 Patch 3. Not the same application that is related to NPrinting but the error is occured from the same source.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;SaaS Readiness App:&lt;/EM&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;HTTP protocol error 403 (Forbidden):

The server refused to fulfill the request.

RestConnectorMasterTable:
    SQL SELECT 
        "contentHash",
        "senseId",
        "originalClassName",
        "version",
        "deploymentType",
        "releaseLabel",
        "deprecatedProductVersion",
        "productName",
        "copyrightYearRange"
    FROM JSON (wrap on) "root"
    WITH CONNECTION(
        URL "https://centralservername/api/about/v1/systeminfo",
        QUERY "xrfkey" "abcdefg123456789",
        HTTPHEADER "X-Qlik-Xrfkey" "abcdefg123456789",
        HTTPHEADER "User-Agent" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36"
    )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;It's occured because of the `WITH CONNECTION` side. Because I'm successfully getting data without `WITH CONNECTION`. Also I'm successfully go to&amp;nbsp;`&lt;A href="https://centralservername/api/about/v1/systeminfo" target="_blank"&gt;https://centralservername/api/about/v1/systeminfo&lt;/A&gt;` address. I tried on localhost but the result was same.&lt;BR /&gt;&lt;BR /&gt;I tried to replace RestConnector files with zip file that you uploaded then I tried again but there isn't any difference. You said that I should replace the Cookie things but there isn't any cookie variable as I said the app is SaaS Readiness default app.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is there any suggestion for this issue on May 2024 Patch 3?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Ramazan&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 07:59:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-June-2020-connecting-to-NPrinting-getting-quot-HTTP/tac-p/2489852#M14851</guid>
      <dc:creator>ramazanerduran</dc:creator>
      <dc:date>2024-10-30T07:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense June 2020 connecting to NPrinting getting "HTTP protocol error 403 (Forbidden): The server refused to fulfill the request."</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-June-2020-connecting-to-NPrinting-getting-quot-HTTP/tac-p/2489866#M14853</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/249709"&gt;@ramazanerduran&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As this particular issue is resolved, we are likely looking at a different root cause or different iteration of a similar problem. Please log a support ticket to have this properly investigated.&lt;/P&gt;
&lt;P&gt;All the best,&lt;BR /&gt;Sonja&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 08:57:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-June-2020-connecting-to-NPrinting-getting-quot-HTTP/tac-p/2489866#M14853</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2024-10-30T08:57:01Z</dc:date>
    </item>
  </channel>
</rss>

