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