Comments (8)
Having the same issue with the latest arch package, is there a way to debug it? Using the default config btw.
Thanks!
from rbw.
Just noting this is probably related to (or a duplicate of) #145 or #32
from rbw.
I think I have found the culprit for this.
Looking insidesrc/config
you can find a section defining the default base_url and how to format a custom one:
pub fn base_url(&self) -> String {
self.base_url.clone().map_or_else(
|| "https://api.bitwarden.com".to_string(),
|url| format!("{}/api", url.trim_end_matches('/')),
)
}
When Bitwarden introduced the EU servers they used the same style of URL as the US one: https://api.bitwarden.eu
.
But the code added on an /api
at the end for all "custom" URL:s, which doesn't work the official instance.
Understandable, of course, since the EU servers probably didn't exist when this code was original written
Adding something like this will solve the issue:
- |url| format!("{}/api", url.trim_end_matches('/')),
+ |url| {
+ let clean_url = format!("{}", url.trim_end_matches('/'));
+ if clean_url == "https://api.bitwarden.eu" {
+ return clean_url
+ } else {
+ format!("{}/api", clean_url)
+ }
+ },
I can write a PR for this when I'm back from traveling on Monday. 👍
from rbw.
Any status on this?
from rbw.
Any status on this?
Sorry, it took a while.
Feel free to try the solution provided in #152.
You can run the agent standalone with more debugging like this:
RUST_LOG=trace ./target/release/rbw-agent --no-daemonize
from rbw.
I can conform it worked
from rbw.
Confirmed fixed in rbw-1.9.0-1 arch package. Thanks!
from rbw.
When I do rbw register
it does not complain, but whenever I do rbw login|ls|get
it returns the following error:
rbw login: failed to log in to bitwarden instance: failed to parse JSON: EOF while parsing a value at line 1 column 0
$ rbw --version
rbw 1.9.0
from rbw.
Related Issues (20)
- Attachment Support HOT 1
- only output --field value HOT 1
- Support for multiple profiles undocumented HOT 2
- BUG: edit command is destructive HOT 3
- Agent crashes when attempting to login HOT 10
- Configuration setting for case insensitive get / get folder/item
- "rbw login: failed to log in to bitwarden instance: Username or password is incorrect. Try again." HOT 27
- `rbw login` fails with 'Username or password is incorrect', while `bw login` succeeds HOT 5
- [Feature] add additional security through optional challenge-response
- Failed to log in to bitwarden instance: missing field `Kdf` HOT 1
- Support FIDO2 WebAuthn 2FA HOT 3
- rbw sync: failed to log in to bitwarden instance: Username or password is incorrect. HOT 2
- "email" config option is case sensitive. HOT 1
- rbw login: failed to log in to bitwarden instance: failed to parse JSON: EOF while parsing a value at line 1 column 0 HOT 5
- rbw daemon fails to start on Termux because /run is read-only HOT 1
- rbw 1.9.0 not working with latest vaultwarden HOT 6
- failed to decrypt: failed to decrypt encrypted secret: invalid mac HOT 3
- rbw ANYCOMMAND: failed to log in to bitwarden instance: failed to parse JSON: missing field `Kdf` at line 1 column 120 HOT 38
- Is there a way to use a PIN instead of the password? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rbw.