Option to Turn off autologout if server returns an error

Bitwarden logs out the client when there’s an error response on purpose.

I have observed that if i’m offline, the bitwarden app/extentions work perfectly fine and show me my existing vault items. But if the case is that I’m online, but my bitwarden server is offline for more than a few hours, then the app logouts and I cannot access anything until the server is back up I got an answer from the community that it is expected. (ref: Bitwarden App Logs Out if the server is not running)

So there should be an option to turn off this behavior.

1 Like

We really need something better then just an unexplained full logout on an error. At the minimum this should be logged somewhere. Ideally it should be configurable.

If you want to limit to ‘advanced’ users make it configurable via an environment variable or something.

Another vote from me… or I would if it wasn’t locked

@user278 Welcome to the forum!

This feature request is not locked. However, new users on the forum do not acquire voting privileges until after their membership status (“trust level”) has increased from “new member” to “basic member”. This requires that you participate in the forum for some time by reading topics and comments of interest to you.

hello again, posting again since my previous post was closed without me getting a chance to respond

it doesn’t matter if its vaultwarden or bitwarder/server is used as the underlying server, the issue is a client side issue with NetworkConnectionManagerImpl specifically isNetworkConnected

If I’m in airplane mode the error doesn’t happen - which is what I’d expect

If I’m on some network that doesn’t have access to the underlying bitwarden server, the client code tries to sync the vault by default, see android/app/src/main/kotlin/com/x8bit/bitwarden/data/platform/manager/network/NetworkConnectionManagerImpl.kt at 60bc6ee0ca8dca4a210bede3e2c80359025909fa · bitwarden/android · GitHub

  • Below code would always return false if you’re airplane mode with wifi off
    override val isNetworkConnected: Boolean
        get() = connectivityManager
            .getNetworkCapabilities(connectivityManager.activeNetwork)
            ?.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)
            ?: false
  • There appears to be tons of code using this check - so it would appear at first glance this is whats going on? (haven’t looked much deeper than this)

I just stood up official bitwarden/server via docker and it showed the same issue

It would be nice to have some option on the client where if the underlying server is not available, to not throw an error, and just let user use it as expected in offline mode.

  • Like i said, this is benign for the most part
  • It doesn’t seem to happen via auto filling flows where I’m in a webpage on android and have to autofill via bitwarden client
  • It only seems to happen if im off network, bitwarden client app hasn’t opened yet, and I open for first time, then I get this error

@shayaantx I moved your post into a corresponding feature request.

Please understand, that this is the Bitwarden Community Forum, and Bitwarden is not associated with Vaultwarden.

I literally said I could reproduce it with GitHub - bitwarden/server: Bitwarden infrastructure/backend (API, database, Docker, etc). , is this not the official self hosted repo for “Bitwarden”?

not sure why you’re not reading past the word “vaultwarden”. I ceased using it to dig into the issue more

it’s fine you can close this, it’s clear you’re not gonna provide support for your official self hosted services

@shayaantx Sorry, I don’t understand your reaction, as I just moved your post into the corresponding feature request to continue the discussion there (here), and don’t see any reason to close this feature request.

(your other post from a few days ago only referenced Vaultwarden, and we usually close those, for several reasons)