-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
html5 push notification; vapid 403 forbidden #23613
Comments
Hey there @robbiet480, mind taking a look at this issue as its been labeled with a integration ( This is a automatic comment generated by codeowners-mention to help ensure issues and pull requests are seen by the right people. |
I was able to fix the problem for a day or two by removing push notifications and re-adding. Now the same problem appears again, leading to the conclusion that something must be corrupted. |
I have the same issue. I'm pretty sure it worked fine for me on 91.4 maybe somthing to do with this PR? |
@matthewcky2k |
yes that fixes it for me also |
Is there any way to revert pywebpush to 1.6.0 in Hassio? |
Would it be possible for someone to quickly describe how to revert? Either here or in the related forum post? Thanks! |
@r-oleary I wrote a quick explanation how to do this if you are interested. |
HA 0.92.2 I report the same problem. notifications work for a few hours after a while it stops.
|
I got the same problem las month... |
I've got the same problem. Generating a new key pair only worked for a day or two. |
+1, I receive '403 forbidden' too |
yeah, revert back to the old version works. |
The push notifications seem to always work when you enable notifications from a Firefox browser, but when you do the same from chrome (an andriod device) it always fails to it with 'pywebpush.WebPushException: WebPushException: Push failed: 403 Forbidden'. |
@shanefreeman have you tried to edit .conf file and sort it placing first Chrome browsers and Firefox at the bottom? |
the above guide to reinstall pywebpush==1.6.0 re-posted by @Burningstone91 works. |
Thanks for the tip, but I found overnight when I /just/ use Firefox it eventually stops working too, so I removed all html5 notifications because when that fails it fails the rest of the steps in the automation. I will just wait for it to be fixed later. |
I tried this too (I am using a Hassio image if that matters), and that didn't fix it for me. It gave a similar error that I didn't take note of, before I removed that fix. I am using pushbullet for now, and that works every time without issue. |
@shanefreeman |
Have you tried HTML5 component from this #22988? I use it for 2 days as custom component (pywebpush==1.9.2) and I don't have a 403 error. Earlier, error 403 appeared almost every day. |
I was getting 403 earlier which was the reason for the bump in the first place. Maybe someone with the issue can try 1.9.3 instead? |
Okay, just merged #22988. Lets hope that fixes things. |
@robbiet480: Have you seen this post? https://community.home-assistant.io/t/html5-vapid-403-forbidden/110953/43 If not, you might want to take a look at it as he claims to have found the problem. |
Hey all, I'm the maintainer of pywebpush (and I also work at mozilla dealing with the push service).
TTL=0 means "If the recipient isn't immediately available, toss the notification". Generally, it's probably not what you want. In most cases, TTL=28800 is probably good enough. It's 8 hours. That should be more than enough for the recipient to get the message, and it still be reasonably relevant. Servers get to set the max amount of time they'll hang onto a message, and will usually tell you if you exceed it. I'll note that this is NOT the same thing as the Finally, if you do have a bug with pywebpush (or have a question about push notifications) don't be afraid to reach out to me. I try to respond reasonably quickly. |
@robbiet480 Will this be in a hotfix release ie 92.3? or will we have to wait for 93? |
I talked to @balloob the other night, he wasn't even aware that html5 push notifications were not working.. He was at the time making a 93 beta and said there would be no 92.3. |
Same here, after a hassio reboot It's working for a while. But I got the same API error message later. |
same for me, got it working yesterday with a delete of the conf file. then after a reboot not working again with the same error WebPushException: Push failed: 403 Forbidden |
Updated to 0.93. It worked the very first time, but hasn't since then. No error message this time - notifications just don't load. |
https://github.com/home-assistant/home-assistant/releases/tag/0.93.0 There is nothing in the changelog about pywebpush, which is disappointing. Not sure why it isn't in there. @balloob |
Let's hope it's in the next hotfix then! |
@jurgenweber Nope, #22988 got merged, it's listed as |
@robbiet480 how would I go about getting you more info? Since it's no longer producing an error, I can't see any issues in my logs. |
I just generated a new key pair again and registered every device again. I'll let you know if it stops working again. |
For me issue is gone after update HA to 0.93. |
@bieniu how are you doing notifications? I'm hoping to see what I'm missing. |
|
@bieniu bummer - I've got mine the same way. I tried adding in default_priority but that didn't help. If I import my settings into node-red (node-red-contrib-web-push), I can get it to send out notifications but it doesn't want to include any message so it just reads "Undefined". Thanks for the help, though! |
The issue disappeared for me as well after upgrading to 0.93 |
Seems to be working now, hopefully will stay that way. I installed web-push (npm install web-push --save) and it worked immediately. Don't know if it was a coincidence or not |
Issue is gone after update HA to 0.93. |
Just realized that it was not working because I've moved to Brave browser recently. In this case it was failing silently. Maybe other people in same situation there. |
Okay, gonna close this issue then since it appears to be fixed. |
Home Assistant release with the issue:
hass 0.92.1
Last working Home Assistant release (if known):
hass 0.91.2
Operating environment (Hass.io/Docker/Windows/etc.):
hassbian/ python35
Component/platform:
https://www.home-assistant.io/components/html5/
Description of problem:
Forum thread here; https://community.home-assistant.io/t/html5-vapid-403-forbidden
Basically the new vapID fails after a period of time, if you restart HASS, expire your current keys and renew them or remove the
html5_push_registrations.conf
file and re-add your browsers after a period of time, push notifications will stop and you will receive an error.Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):Traceback (if applicable):
Additional information:
https://community.home-assistant.io/t/html5-vapid-403-forbidden
Please visit the forum thread for many people reporting the issue and some debugging I attempted to complete.
The text was updated successfully, but these errors were encountered: