Having trouble with the python requests module? Need help with HTTP requests? or What’s the best way

16 Replies, 758 Views

If `requests.get()` fails, try `urllib3` directly—it’s what requests uses under the hood.

For SSL, `verify=False` is a quick fix (but insecure). Better to fix your cert store.

Debugging? `response.raise_for_status()` crashes early, which I prefer over silent fails.

---

Wow, thanks everyone! Didn’t expect so many tips.

Tried `verify=False` as a quick test, and yep, it worked (but I’ll fix the certs properly).

The `logging` + `http.client` debug trick is gold—saw the timeout was DNS-related.

One follow-up: Anyone know why `requests` sometimes hangs even with a timeout set? Is it a socket thing?

Thanks again!

Messages In This Thread



Users browsing this thread: 1 Guest(s)