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: 
cdyaro
Contributor II
Contributor II

Qlik Sense - Nprinting API issue with initiating NPrinting task from Qlik Sense QMC

Hello Qlik Experts,

I was trying trigger Nprinitng Task from QMC through using Qlik Sense API's from the script.

I'm getting an error:

'

The following error occurred:
HTTP protocol error 405 (Method Not Allowed): {"message":"The requested resource does not support http method 'POST'."}
 
'
 
My script:
 
LIB CONNECT TO 'REST_POST';
RestNPTaskTriggerTable:
SQL SELECT
"__KEY_data"
FROM JSON (wrap off) "data" PK "__KEY_data"
WITH CONNECTION( URL "https://nprinting.testXXX.com:4993/api/v1/tasks/XXXX-XXX-XXX-XXXX", HTTPHEADER "cookie" "$(vCookie)");
[_post_items]:
LOAD [__KEY_data] AS [__KEY_data]
RESIDENT RestNPTaskTriggerTable
WHERE NOT IsNull([__KEY_data]);
DROP TABLE RestNPTaskTriggerTable;
 
Can you please advise on this.
This is Qlik Sense June 2019 Patch 6
 

 

1 Reply
Frank_S
Support
Support

Hi @cdyaro 

Your question was moved to this forum today.

Please check the following article and section " Issue: API POST 405 method not supported (allowed)" for your answer:

Kind regards...

Please remember hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!