Project

General

Profile

Bug #70911

pwa: WebPushException: Push failed: 406 Not Acceptable

Added by Benjamin Dauvergne over 1 year ago. Updated 4 months ago.

Status:
Rejeté
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
01 November 2022
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No
Tags:
pwa

Description

Cette erreur est produite par le serveur Microsoft pour les notifications web vers Edge, c'est du throttling1 dont on a aucune idée de la politique. Il faudrait émettre les notifications via une queue, pour pouvoir faire des ressaies.

https://sentry.entrouvert.org/entrouvert/publik/issues/54248/

Notification.DoesNotExist: Notification matching query does not exist.
  File "django/db/models/query.py", line 554, in update_or_create
    obj = self.select_for_update().get(**kwargs)
  File "django/db/models/query.py", line 408, in get
    self.model._meta.object_name

WebPushException: WebPushException: Push failed: 406 Not Acceptable
  File "combo/apps/pwa/signals.py", line 62, in notification
    vapid_claims=claims,
  File "__init__.py", line 404, in webpush
    response=response)

1 https://learn.microsoft.com/en-us/answers/questions/940324/406-not-acceptable-may-be-returned-when-sending-a

History

#1

Updated by Benjamin Dauvergne over 1 year ago

  • Description updated (diff)
#2

Updated by Benjamin Dauvergne about 1 year ago

  • Tags set to pwa
#3

Updated by Benjamin Dauvergne about 1 year ago

  • Description updated (diff)
#4

Updated by Benjamin Dauvergne 4 months ago

  • Subject changed from WebPushException: Push failed: 406 Not Acceptable to pwa: WebPushException: Push failed: 406 Not Acceptable
#5

Updated by Benjamin Dauvergne 4 months ago

  • Status changed from Nouveau to Rejeté

Bug chez Microsoft, corrigé semble-t-il, https://github.com/web-push-libs/web-push-php/issues/335

Also available in: Atom PDF