Live data from Hacker News

Advanced usage of Python requests: timeouts, retries, hooks

findwork.dev

11–12 of 12 posts

Re: Advanced usage of Python requests: timeouts, retries, hooks

#11
If I enable logging of retries: logging.basicConfig(level=logging.DEBUG)

I dont see any retries on response 200: ConnectionError(ReadTimeoutError("HTTPSConnectionPool(host='domain.com', port=443): Read timed out."))

Is there a way to also retry on ChunkedEncodingError?

Post reply on HN