Home > Software engineering >  Getting Response 200 or 'Expecting value: line 1 column 1 (char 0)' with Python GET Reques
Getting Response 200 or 'Expecting value: line 1 column 1 (char 0)' with Python GET Reques

Time:02-16

I'm trying to query a database, using python, with the documentation available here: enter image description here

PitFall and solution: Whenever we execute the API in postman work and return JSON. But using python code is not working and returns HTML (403 error).

In Jupyter Problem: enter image description here

Solution:

enter image description here

Add this in headers:-

'User-Agent': 'PostmanRuntime/7.28.4'
  • Related