mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Mobile Push Notification registration returns HTTP 405 for EU data region #1928
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Kaskadee on GitHub (Jun 3, 2024).
Subject of the issue
Following the instructions at https://github.com/dani-garcia/vaultwarden/wiki/Enabling-Mobile-Client-push-notification for using mobile push notifications with the EU data region causes a 405 Method Not Allowed when Vaultwarden attempts to register the device:
Removing
PUSH_RELAY_URI+PUSH_IDENTITY_URIand regenerating a new installation ID + key in the US data region works fine:Deployment environment
Your environment (Generated via diagnostics page)
Config (Generated via diagnostics page)
Show Running Config
Environment settings which are overridden:
Steps to reproduce
Expected behaviour
Mobile Push Notifications with the EU data region work the same as with the US data region
Actual behaviour
Device registration returns
405 Method Not AllowedTroubleshooting data
See the log entries above.
@CYM-GS commented on GitHub (Jun 3, 2024):
I have the same Issue, I just set this up and was wondering why it isn't working and found the same error message in my logs.
@stefan0xC commented on GitHub (Jun 3, 2024):
Hm... not sure what's wrong. Here's a
LOG_LEVEL=debuglog of the registration attempt:If I try to register with
PUSH_RELAY_URI=https://api.bitwarden.euit seems to work. So it might be an issue with the redirection or the reqwest crate?@Opicka879 commented on GitHub (Jun 4, 2024):
Same issue here. Notification stoped working some time ago but i dont know when exactly. I thought it is problem of android app but today i did try to update from latest release to testing, regenerate push relay uri and push identity uri, clear app cache and it is still not working and now i have same line in the log.
[2024-06-03 23:16:50.384][rocket::server][WARN] Received SIGTERM. Requesting shutdown.
[2024-06-03 23:19:47.637][error][ERROR] 2FA token not provided
[2024-06-03 23:20:06.938][vaultwarden::api::push][ERROR] An error occurred while proceeding registration of a device: HTTP status client error (405 Method Not Allowed) for url (https://api.bitwarden.eu/push/register)
[2024-06-03 23:21:43.193][vaultwarden::api::push][ERROR] An error occurred while proceeding registration of a device: HTTP status client error (405 Method Not Allowed) for url (https://api.bitwarden.eu/push/register)
[2024-06-03 23:22:04.334][vaultwarden::api::icons][WARN] Unable to download icon: Empty response or unable find a valid icon. www.bitbeli.cz
[2024-06-03 23:28:27.016][vaultwarden::api::web][ERROR] Static file not found: jquery-3.7.0.slim.js
[2024-06-03 23:28:27.017][vaultwarden::api::web][ERROR] Static file not found: jdenticon.js
[2024-06-03 23:28:27.695][vaultwarden::api::web][ERROR] Static file not found: jquery-3.7.0.slim.js
[2024-06-03 23:28:27.724][vaultwarden::api::web][ERROR] Static file not found: jdenticon.js
[2024-06-03 23:28:40.444][vaultwarden::api::web][ERROR] Static file not found: jquery-3.7.0.slim.js
[2024-06-03 23:28:40.479][vaultwarden::api::web][ERROR] Static file not found: jdenticon.js
[2024-06-03 23:28:57.530][vaultwarden::api::web][ERROR] Static file not found: jquery-3.7.0.slim.js
[2024-06-03 23:28:57.549][vaultwarden::api::web][ERROR] Static file not found: jdenticon.js
[2024-06-03 23:29:08.124][vaultwarden::api::web][ERROR] Static file not found: jquery-3.7.0.slim.js
[2024-06-03 23:29:08.133][vaultwarden::api::web][ERROR] Static file not found: jdenticon.js
[2024-06-03 23:29:30.136][vaultwarden::api::push][ERROR] An error occurred while proceeding registration of a device: HTTP status client error (405 Method Not Allowed) for url (https://api.bitwarden.eu/push/register)
[2024-06-03 23:30:06.831][vaultwarden::api::push][ERROR] An error occurred while proceeding registration of a device: HTTP status client error (405 Method Not Allowed) for url (https://api.bitwarden.eu/push/register)
[2024-06-03 23:30:34.856][vaultwarden::api::push][ERROR] An error occurred while proceeding registration of a device: HTTP status client error (405 Method Not Allowed) for url (https://api.bitwarden.eu/push/register)
[2024-06-03 23:30:50.318][vaultwarden::api::push][ERROR] An error occurred while proceeding registration of a device: HTTP status client error (405 Method Not Allowed) for url (https://api.bitwarden.eu/push/register)
[2024-06-03 23:35:29.371][vaultwarden::api::web][ERROR] Static file not found: jquery-3.7.0.slim.js
[2024-06-03 23:35:29.398][vaultwarden::api::web][ERROR] Static file not found: jdenticon.js
[2024-06-03 23:35:44.880][vaultwarden::api::web][ERROR] Static file not found: jquery-3.7.0.slim.js
[2024-06-03 23:35:44.897][vaultwarden::api::web][ERROR] Static file not found: jdenticon.js
@Kaskadee commented on GitHub (Jun 4, 2024):
Changing to
https://api.bitwarden.euno longer results in an error message, but it seems that push notifications are still not working? When I tried the US data region, I immediately received the update notification when I created or deleted a folder, but no reaction when using the EU data region.Could be a problem with Bitwarden though.@Kaskadee commented on GitHub (Jun 4, 2024):
I've just tested creating a new item at
https://bitwarden.euand push notifications are working correctly there.@Opicka879 commented on GitHub (Jun 4, 2024):
After changing the push relay uri to https://api.bitwarden.eu/ instant changes works for me too and there is no error in log. But i still have no pop-up window with login requests if i want to log in via device. It can be android app bug i quess.
@CYM-GS commented on GitHub (Jun 4, 2024):
To fix my problem, I had to explicitly enable web socket support in NPM, this made my realize that using the network tab in the browser helps a ton while debugging errors in Vaultwarden it has much clearer error details!
@ivulit commented on GitHub (Jun 5, 2024):
I've changed PUSH_RELAY_URI to https://api.bitwarden.eu and push service works again for me
@FlakyPi commented on GitHub (Jun 5, 2024):
Same here, everything works again.
@Kaskadee commented on GitHub (Jun 5, 2024):
I have forgotten to set
PUSH_ENABLEDback totrue, that's why it didn't work :)It works now with
PUSH_RELAY_URIset to https://api.bitwarden.eu/@Kitchigo commented on GitHub (Jun 13, 2024):
Yeah, thank you It's working again with "https://api.bitwarden.eu/"
@element0xE commented on GitHub (Jul 4, 2024):
Updating the
docker-compose.ymlfrom
PUSH_RELAY_URI: https://push.bitwarden.euto
PUSH_RELAY_URI: https://api.bitwarden.euresolved the issue. Thanks!
Updating the
docker-compose.ymland restarting the service withdocker compose restrart vaultwarderis not enough.I had to put the service down with
docker compose down vaultwarderand up again withdocker compose up -d vaultwarder@LeLunZ commented on GitHub (Jul 28, 2024):
I have a similar problem on the normal ios app. I did the whole setup for the EU region. And push notifications go through but only if the app is reloaded. Once I open the app it shows the notification. Before that there is none.
Did you encounter similar issues?
And I also downloaded the ios beta app and because I wanted to try it there. But could it be that they didn't add websocket support to it yet? Vault items dont get refreshed instantly and also no push notifications there.
Or is that a problem with vaultwarden?
it seem that turning on "Allow sync on refresh" makes it a little bit better and notifications sometimes get through but only if the app is still open in the background.
@BlackDex commented on GitHub (Jul 28, 2024):
The mobile clients do not use websocket connections at all.
They use the platform specific push protocols.
Also, the native clients seem to not fully support it yet I think. I also have net yet seen it work, but i also have not fully looked into it yet.
@LeLunZ commented on GitHub (Jul 28, 2024):
Thx for the information :)
Me thinking that „Login with Device“ requests should pop up as notifications in iOS is correct or? (Even if it’s not websockets but the push protocol)
because if it is: then i still have some kind of problem where notifications aren’t showing up (only after opening the app)
@BlackDex commented on GitHub (Jul 28, 2024):
Which then still might be a client side issue, or maybe Bitwarden Push issue. Again, i have not looked detailed into it my self. Maybe someone else did?
@LeLunZ commented on GitHub (Jul 29, 2024):
Yesterday I also found this issue in the bitwarden/mobile repository:
https://github.com/bitwarden/mobile/issues/2859
@dfunkt commented on GitHub (Jul 30, 2024):
@BlackDex: They're currently working to add push notifications support for the native clients, at least that's what I see mentioned on this PR -> https://github.com/bitwarden/server/pull/4462