Conversation
Edge throttles *much* more aggressively than other browsers, added a new ResponseError subclass called EdgeThrottled and added code to verify_response to distinguish this case from a generic ResponseError. I'd still like to know if I ever get throttled by Chrome, Firefox, or Safari since it's never happened before, but it happens so much with Edge that I've just given up and ignore these exceptions personally. Others may want to handle this specific case differently as well.
|
In general I would prefer to avoid vendor-specific exceptions... We already have a TooManyRequests error for the "standard" 429 status code. The 406 status code returned by Microsoft is plain wrong - see the definition here: I already reported this issue years ago in their bug trackers. In any case I recommend to retry all unknown |
|
This issue has been going on for a very long time... See all these related issues:
|
|
Personally I'd argue that if Edge has been doing this incorrectly for a very long time, they are unlikely to fix it any time soon, and we'd be better off dealing with the facts on the ground as opposed to what the spec says it should be... |
|
I do agree with your statment here though:
That's why i think it should be dealt with as a special case, specifically tailored to the one browser that's doing it wrong. I personally don't wish to retry all unhandled |
Edge throttles much more aggressively than other browsers, so I added a new ResponseError subclass called EdgeThrottled and added code to verify_response to distinguish this case from a generic ResponseError. I'd still like to know if I ever get throttled by Chrome, Firefox, or Safari since it's never happened before, but it happens so much with Edge that I've just given up and ignore these exceptions personally. Others may want to handle this specific case differently as well.
If this PR would be accepted, let me know and I'll write some tests for it