Skip to main content
Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
sajalgour2309
Contributor II
Contributor II

NPrint API Cookie Error

Hello Guys...

having issue with nPrint API connection with Qliksense after upgrade to Feb2020.

I have seen similar post on https://community.qlik.com/t5/Qlik-NPrinting-Discussions/NPrinting-Task-Execution-call-using-Rest-AP... 

@Lech_Miszkiewicz 

I have tried same solution but i think i am doing something wrong. If you can suggest what i am doing wrong that would be really helpful ...

As you see in my raw session cookie TextBetween('$(vCookieRaw)','SameSite=None,','Path=/',2) won't work as 'SameSite=None,' only comes once in whole string.

Is raw cookie wrong ?

Raw Session Cookie:

"NPWEBCONSOLE_SESSION=7803373bd0a0e6a9ab3fb6a87e2fc8933aede485-%00_TS%3Asession%00%00NPWEBCONSOLE_XSRF-TOKEN%3AVK7fJ59JPWsnmn9vJ89JoCkxGeO8V1IHh0o3eccyc1w%3D%00; Path=/; HttpOnly; Secure; SameSite=None,NPWEBCONSOLE_SESSION=5454317aee4bdce61ae0d9de0ad9399eef193fcc-%00_TS%3Asession%00%00NPWEBCONSOLE_XSRF-TOKEN%3AVK7fJ59JPWsnmn9vJ89JoCkxGeO8V1IHh0o3eccyc1w%3D%00%00userid%3A9f88adfb825a4eb19178e0dc2c4ca312%00%00userlogin%3A2020-08-07T10%3A16%3A15.1375265Z%00; Path=/; HttpOnly; Secure; SameSite=None"

Truncated Session Cookie:

"NPWEBCONSOLE_SESSION=5454317aee4bdce61ae0d9de0ad9399eef193fcc-%00_TS%3Asession%00%00NPWEBCONSOLE_XSRF-TOKEN%3AVK7fJ59JPWsnmn9vJ89JoCkxGeO8V1IHh0o3eccyc1w%3D%00%00userid%3A9f88adfb825a4eb19178e0dc2c4ca312%00%00userlogin%3A2020-08-07T10%3A16%3A15.1375265Z%00; "

 

 Many Thanks,

Sajal

Labels (2)
2 Replies
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi, 

I am confused about a versions, You say it is February 2020, but tag used in topic says April 2020.

You may also mention the exact version of Qlik Sense as there are issues with Rest Connector in Qlik Sense July 2020 versions so it is hard to say...

You may want to read other topics around API which describes this issue, like:

It is practically impossible to debug without having ability to have a "hands on" experience with the exact environmnet which has issue.

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
sajalgour2309
Contributor II
Contributor II
Author

Hi Sorry about the confusion.

We are using Qlik NPrinting April 2020 and Qlik Sense June 2020 Patch 3

I have attached the code which was working before but now it is giving error - 

HTTP protocol error 403 (Forbidden): The server refused to fulfill the request.