Open trjohnson19 opened 11 months ago
I did some further research into how websockets are opened and used by Bitwarden and I came across a few items that will hopefully help someone who knows TypeScript and has more ability than me to troubleshoot and provide suggestions for how this could be handled.
I found the notifications.service.ts where the websocket connection is inited using the start() function. It seems that the client is successfully catching this error that the websockets are unable to connect because the error shows up in my web browser console.
I am wondering / hoping if something can be done to pass this error through to the calling function in login-via-auth-request.component.ts to tell this function that the websocket connection has failed and that the user should use a different login method (rather than the current behavior of waiting a bit then showing "Resend notification").
I would love to contribute, but figuring this much out was about as far as my knowledge could take me without learning web development. Hoping this helps someone else!
Steps To Reproduce
wss://notifications.bitwarden.com/
vault.bitwarden.com
on a browserExpected Result
An error is returned by the User Interface to tell the user that the log in with device has failed and that another login method is required.
Actual Result
The web application silently fails when failing to connect to
notifications.bitwarden.com
and validating the login on another device will not work.Screenshots or Videos
Additional Context
Edge / Chrome dev tools provides the following Websocket error:
Operating System
Windows
Operating System Version
Windows 10 Enterprise 22H2
Web Browser
Chrome, Microsoft Edge
Browser Version
Edge 120.0.2210.91 (Official build) (64-bit); Chrome 120.0.6099.130 (Official Build) (64-bit) (cohort: Stable)
Build Version
2023.12.0
Issue Tracking Info