webpush icon indicating copy to clipboard operation
webpush copied to clipboard

Treat 406 from Microsoft as 429

Open ngoral opened this issue 3 years ago • 2 comments

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 of NotAcceptable, 'cause it requires the same processing. As far as I'm concerned, other services do not send 406, so it should be OK.

ngoral avatar Feb 15 '22 15:02 ngoral

@zaru can you please merge and release new version? This 406 error is really annoying for many people

aglushkov avatar Oct 20 '22 14:10 aglushkov

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?

collimarco avatar Nov 25 '22 15:11 collimarco