Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
mobrien
Explorer

Web API calls returning generic err / empty payload (Response 400)

Curious what the problem is, I tried doing this with some other endpoints but decided to use this to continue testing. Sample of python code in use:

url = "https://10.xxx.xxx.xx:443/web_api/show-users"
headers = {"X-chkp-sid": sid, "Content-Type": "application/json"}
response = requests.post(url, headers = headers, verify = False)
print(response.content)

But it returns: <Response [400]> b'{\n "code" : "generic_err_invalid_syntax",\n "message" : "Payload is empty"\n}'

Am I doing something wrong / missing something with this request? I am verifying that I'm getting and passing the appropriate sid when making the attempt.

Thanks,

0 Kudos
1 Reply
PhoneBoy
Admin
Admin

Your request body should have a NULL JSON string: { }

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events