doy / rbw

unofficial bitwarden cli

Home Page:https://git.tozt.net/rbw

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to debug failed logins?

nikita2206 opened this issue · comments

Since a few days ago I'm failing to log in with my Bitwarden.com account. It coincides with me updating Homebrew packages on my machine.

The issue manifests when prompting me for a password, and every time I enter one it says that the password is incorrect, rbw purge and rbw register don't help either.

So I'm wondering how can I debug this? Is there a way to enable debug logging?

I'm running rbw 1.10.2

I just started using this app and I'm also having trouble logging in. I don't know if it's some new issue or the fact that I'm using special characters including native language letters. When I input those, two stars appear in the password field.
I can use the official bitwarden cli without an issue.
Using version 1.10.0

I am having the same issue as described in #173. That issue is a couple weeks old but I only started experiencing issues as of recently. I am using version 1.10.2 which includes a fix #175, but without knowing how to debug I am not sure if it's the same issue. I have tried rbw purge and rbw stop-agent along with rotating my API key. rbw register seems to work as I receive an email from Bitwarden showing a new login from my device. However, I fail to login at the pinentry window which shows Log in to api.bitwarden.com. I have no issue logging in using official Bitwarden clients.

can you try again with version 1.11.1? i made a change that may help here.

Fixed on my end since 1.11.0

commented

On my side too!

@doy Thanks a lot for the fix and the project, I was really missing being able to use bitwarden from the CLI.

EDIT: I'm still interested in learn how to debug this kind of things. If you can provide me any hint or common approaches to debugging this type of issue, I would appreciate it.

i'm going to close this out since it appears to be fixed, but let me know if anyone is still running into this.

in terms of debugging this yourself, it tends to not really be that easy because the bitwarden server gives very little information back when logins fail. generally i start by trying to run through the api requests by hand in curl, and if it's not immediately apparent, i then start comparing the api requests made by rbw with the ones made by the official clients (https://github.com/bitwarden/clients/tree/main) to see what differences there are.

In my case I just had to use rbw unlock instead of rbw login, but this was on vaultwarden rather than bitwarden - so probably not what the author reported but maybe it helps vaultwarden users.