Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
kaleem287
Contributor
Contributor

Qlik Sense REST Call Using POST/JSON

I am trying to send http post(json) request from qlik sense(load editor) to some python script but getting error message. Please support to fix this error.

REST Connection: Successful
Note: URL is tested via postman and working perfectly 

Please find below code snippet and snap for error message. 

LIB CONNECT TO 'REST_httpswww.###########';

RestConnectorMasterTable:
SQL SELECT
"username",
"password"
FROM JSON
WITH CONNECTION (
HTTPHEADER "Content-Type" "application/json",
METHOD "POST",
URL "https://www.abc.com/test.php",
BODY '{"username":"value1","password":"value2"}'
);

qlik-sense-rest-error.png

Labels (1)
1 Reply
SterreKapteijns
Partner Ambassador
Partner Ambassador

Whenever I received this error, it had to do with the quotes around the request body. I think you need double quotes in stead of single quotes. 

Solved: Re: WITH CONNECTION statement - BODY with Double q... - Qlik Community - 1237635