Relative Content

Tag Archive for pythonjsonapipython-requestskibana

JSONDecodeError when trying to fetch data from Kibana using the requests library in Python. Below is the traceback and relevant code snippets:

The problem I’m encountering is a JSONDecodeError in Python when trying to parse a response from a Kibana API request. The error occurs when I attempt to convert the response into JSON using the response.json() method from the requests library. The traceback points to the issue arising because the response body does not contain valid JSON, specifically giving the error message: “Expecting value: line 1 column 1 (char 0).”