Hello, I was trying out various GET requests given in the documentation, in python. I modified the cycleTest.py file from the zapi-cloud GitHub Project. When I use mock-url given in documentation, I get the mock-results as expected. But trying the same with production-url is giving me this error:
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request
With Postman, I get the error:
400 Bad Request, API not found.
The JWT Token is generating properly.
These are the parameters I am using:
I searched online, a 400: Bad Request is generated when the request is not done properly. But the GET method does not have any body associated to send in the request.
Please help. Thank You.
Each JWT token is specific to an endpoint. Are you using different JWT tokens for RELATIVE_PATH1 and RELATIVE_PATH2?
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.