django-webpush icon indicating copy to clipboard operation
django-webpush copied to clipboard

403 Google

Open TheOneWayTruth opened this issue 5 years ago • 2 comments

I used the Fix from chris54 But now i got a 403 from Google WebPushException at /admin/webpush/pushinformation/ I try to use the admin comand "Send test message"

TheOneWayTruth avatar May 08 '19 14:05 TheOneWayTruth

@TheOneWayTruth Can you paste the whole tracelog?

safwanrahman avatar Jun 02 '19 23:06 safwanrahman

  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/base.py", line 115, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/base.py", line 113, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
    return view_func(*args, **kwargs)
  File "/home/user/project/project/api/views.py", line 136, in notify
    send_group_notification(group_name="group1", payload=payload, ttl=1000)
  File "/usr/local/lib/python3.6/dist-packages/webpush/__init__.py", line 8, in send_group_notification
    send_notification_to_group(group_name, payload, ttl)
  File "/usr/local/lib/python3.6/dist-packages/webpush/utils.py", line 22, in send_notification_to_group
    _send_notification(push_info.subscription, payload, ttl)
  File "/usr/local/lib/python3.6/dist-packages/webpush/utils.py", line 54, in _send_notification
    raise e
  File "/usr/local/lib/python3.6/dist-packages/webpush/utils.py", line 46, in _send_notification
    req = webpush(subscription_info=subscription_data, data=payload, ttl=ttl, **vapid_data)
  File "/usr/local/lib/python3.6/dist-packages/pywebpush/__init__.py", line 437, in webpush
    response=response)
pywebpush.WebPushException: WebPushException: Push failed: 403 Forbidden

tritone11 avatar Nov 05 '19 15:11 tritone11