Open ngoral opened 2 years ago
@zaru can you please merge and release new version? This 406 error is really annoying for many people
This proposal is semantically wrong: you cannot catch a 406, which has a very specific meaning, and raise TooManyRequests
. It may produce exceptions that are extremely confusing and hard to debug in the future, with other push services, or with future changes.
However I understand that the bug is caused by Microsoft. Is there at least a specific resp.message
that we can detect?
According to documentation Microsoft servers don't send 429, but sometimes they start sending 406, which basically means "try again later" as I see it. I'd rather receive
TooManyRequests
error instead ofNotAcceptable
, 'cause it requires the same processing. As far as I'm concerned, other services do not send 406, so it should be OK.