Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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"}'
);
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