Specific API endpoint not available via python urllib
Hello! I have an API call that is not working via Python's urllib. The same call is working via curl, and urllib works for other endpoints. I was wondering if anyone has an idea why this call (1) fails, while the others are working (2 curl, 3 other endpoint via urllib).
Minimum working example:
Request 1 results in
HTTP Error 403: Forbidden
2 Replies
Is that all the info you're getting from the exceptions?
Thanks you for the suggestion, you nailed it. After looking at the exception's body, it turns out I'm just stupid. The expected response is all there, I just have to read it from the exceptions body. That's a somewhat annoying design by Urllib.