-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rbw ANYCOMMAND: failed to log in to bitwarden instance: failed to parse JSON: missing field Kdf
at line 1 column 120
#165
Comments
Same problem for me when i use rbw sync or login Test on ubuntu 20.04/22.04 with rbw 1.9.0 rbw config email xxx i changed pinentry to pinentry-tty but same pb. |
Happens with a fresh install too. |
Same problem for me.
|
Same problem.
Setup:
Problem: rbw login throws:
Note: I can still use rbw from other machines (Windows, MacOS) where rbw was already installed and registered.
|
The same problem recently appeared at my machine. Cached passwords could still be used, but I noticed new ones are missing. An
After an
|
My existing install is still working, but I tried setting up |
Deleting the config.json file in $HOME/.config/rbw/ fixed it for me. You need to put in your credentials again, though. |
Sadly it doesn't do anything on a fresh install: rm ~/.config/rbw/config.json
rbw config set email user@example.com
rbw login
|
I've been trying to get this to work for a few days to no avail -- granted, it's my first time using rbw, so I won't I haven't been able to pin it down exactly but this does seem to be an issue with the API request/response cycle against the official bitwarden API. I'm not super familiar with debugging or even reading Rust code, but what I understand looking through the rbw/src/bin/rbw-agent/actions.rs Lines 199 to 202 in 77eeb5b
Since it's hitting the catchall, rather than the What I find exceptionally interesting is that Will attempt to take a closer look at this later and try some manual API requests as well as maybe try to write some integration test cases for rbw that cover this |
Same here, trying this tool today as the first time and not getting this work yet. |
Hi, I'm facing the same issue. I've tracked done to the Bitwarden response on login, the response is
So it looks like Bitwarden is detecting my login as a suspicious one. |
@whitemilan It was the first thing I had tried, to no avail. Could you describe all the steps exactly, including which server you are connecting, please? |
My mistake. Apparently I tried to log in to bitwarden.com first, which failed because of the |
@whitemilan Thanks for confirming that it is indeed an issue when authenticating agains the official bitwarden.com server. |
Same here, was working great until today. Thought it was related to the rofi frontend as it asked for pass as usual and then nothing happened. |
@rjc, I've contacted the Bitwarden support team, but not much help from them. I'm using the official servers on the EU and as soon as it's not working, whatever I'm trying ( I have another computer (same external IP, same version of rbw, same version of Linux) and everything has been working well for months and is still working well. On the computer where I cannot access Bitwarden anymore, I've just made some tests using the same User Agent as the official Bitwarden CLI, and now it works perfectly. Afterward, everything is working well, even without the User-Agent modification. And thanks a lot for your work on this CLI, it's way more usable than the official one. |
Same here on fresh install (MacOS 14.4.1). How did you change the |
Thanks @ehartmann, patched against tag 1.9.0 and no dice :-/ Did the register with API key:
|
Also having this issue |
works great on NixOS after pkgs.rbw.overrideAttrs (oldAttrs: {
patches =
oldAttrs.patches
++ [
(
pkgs.fetchpatch {
name = "add-useragent.patch";
url = "https://github.com/doy/rbw/files/14921243/patch.txt";
sha256 = "sha256-SS+PTWA1UTsluts9Qtv+q3LJ22PTRUZ+usOB0aqz3Rk=";
}
)
];
}) |
Update: I randomly tried again to login in today, without modifying any setting, and it worked flawlessly for some unknown reason. |
@ohmer |
works also here |
Unfortunately, the patch doesn't cut it for me. I'm registered on the US server, using Argon KDF.
Still getting the same EDIT: turns out, the old version of rbw-agent was still running. After killing the rbw-agent and restarting it (after recompiling with the patch), it works flawlessly. Thanks @ehartmann! |
@mdimitro |
The patch worked for me too, thx @ehartmann |
Might be worth editing your reply and correcting the command in step 4. |
Very strange: My problem went away today. I still have rbw 1.9.0 (unpatched, not uninstalled / reinstalled, no config purge etc). as before but I got some updates via apt upgrade. Among other things, I got a kernel upgrade to
from previously
After a system reboot, rbw workes again. I cannot say for sure whether the kernel upgrade is the root cause, mind. EDIT: Looking at the kernel dates, I have the impression I already got the kernel update before the problem started (but I had not rebooted the system, yet). Could this be a "pending reboot" problem? |
I can second being able to login via rbw now without the patch (and I never applied the patch to begin with). I assume this is because Bitwarden received enough complaints to either remove some restrictions such as the user agent or whitelisted rbw specifically. |
Like both @adrianschlatter and @Myned, I can now also sync again - I hadn't tried the patch on any of my systems and am no longer getting any login, or sync, issues. This, obviously, had nothing to do with any software updates on any of my machines - I use |
is anyone still having trouble here? i don't currently see any issues logging into either the official bitwarden server or my personal vaultwarden. i'm not really comfortable impersonating the official bitwarden client as the patch above does, but i will start setting a real user agent string so that hopefully we can differentiate rbw traffic from other bot traffic. |
I can confirm that |
Hey @doy , it's also working on my side without my patch. I do agree that rbw should use its user-agent that's the reason why I did not create a pull request for this workaround. |
I confirm too that working again without the patch on Guix OS with rbw v1.9.0. Really weird... The initial issue is not present anymore. |
@Davidca089 What I did was duplicate Arch's package build instructions for rbw using the Arch Build System (see the wiki), saved the patch.txt into the root folder (next to the PKGBUILD), and then appended this line to the prepare() section: Apologies for the delayed response, I guess I don't have notifications enabled. |
I would like to re-open this issue because several months ago (2-3) the issue came back suddently - I think it is linked to the bitwarden API as no modification was made to 'rbw'.
Please request any other debug information - I would like to help you helping me as I do not want to do it by myself - by the way learning 'Rust' - not my priority. |
Use the latest version. |
rbw login: failed to log in to bitwarden instance: failed to parse JSON: missing field
Kdfat line 1 column 120
This issue appeared today (I use your tool every day).
Version is the latest : 1.9.0
This is my configuration file :
I tried to add the field 'Kdf' into it with value of 'PDKDF2 SHA-256' as well as '600000' - not working.
I tried to add the field at every possible position within the configuration file (first, second, third, ...) - not working.
I think that Bitwarden changed a setting in the way a request has to be done (API).
Is there any way of seeing the sent and returned content of the JSON ?
Thank you.
The text was updated successfully, but these errors were encountered: