Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
JohnDatEng
Contributor
Contributor

Python Qlik Sense QRS API get failing - JSONDecodeError("Expecting value", s, err.value)

Hey, 

we're trying to implement the Python code found in the Qlik Community knowledge base that uses requests.get to call API endpoints.   

Please see code here - option 1:  https://community.qlik.com/t5/Knowledge/Call-the-Qlik-Sense-QRS-API-with-Python/ta-p/1715877

The line that decodes the json response data failes.   See "for app in resp.json():"

The error is:  JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

The data being returned is encoded in ISO-8859-1.  It probably needs to be UTF-8.  Also, dumping the contents results in html, not json.  

Has anyone solved this?

Thanks

Labels (1)
  • API

0 Replies