-
Websocket error log cannot be disabledWhen I set the variable
Deployment environmentI deployed Vaultwarden using Kubernetes, on AWS. I use the container image I just want to hide the error message generated by the container when receiving a bad request on Websocket port. Steps to reproduceStart a Vaultwarden server with Expected behaviourI think those error logs should not be present when using the Actual behaviourI still have this messages
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
This is not something we can fix, since this is build-in into the library used for the websockets. Also, if you see this error, then you probably have configured your reverse proxy incorrect, or, if not using a reverse proxy you need to disable websockets at all via Also see: https://github.com/dani-garcia/vaultwarden/wiki/Enabling-WebSocket-notifications |
Beta Was this translation helpful? Give feedback.
-
I don't want to be rude or something, especially with OSS developers, but I think the issue have been closed a bit quickly 🙂 The issue is not really my reverse-proxy configuration, notifications are working fine. But when someone query the websocket port with a bad request (in this case it's my load-balancer health-check, but it could have been some random bot on the internet), an error log is printed even if the log level is set to That being said, I perfectly understand that this message is being generated by the |
Beta Was this translation helpful? Give feedback.
This is not something we can fix, since this is build-in into the library used for the websockets.
https://github.com/paritytech/ws-rs/blob/24511a9d4ba5e485f625b9c90d0e4d5b2ec01243/src/handler.rs#L63-L70
Also, if you see this error, then you probably have configured your reverse proxy incorrect, or, if not using a reverse proxy you need to disable websockets at all via
WEBSOCKET_ENABLED=FALSE
.Also see: https://github.com/dani-garcia/vaultwarden/wiki/Enabling-WebSocket-notifications
And https://github.com/dani-garcia/vaultwarden/wiki/Proxy-examples