-
Notifications
You must be signed in to change notification settings - Fork 88
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
Fix example in README for self-hosted instances #49
Conversation
For self-hosted servers, the `base_url` must not include a `/` at the end, because `/api` will be concatenated to it. If you do, the error message is quite vague: ``` rbw login: failed to log in to bitwarden instance: failed to parse JSON: .: EOF while parsing a value at line 1 column 0: EOF while parsing a value at line 1 column 0 ```
this isn't correct - i have always had my own private server configured with a trailing |
@doy Strange. There must be something different in our configurations/setups. Here my flow to reproduce the issue:
Removing the trailing slash from the The bitwarden server logs say:
I guess it's notable that I'm using the official bitwarden server and a traefik reverse proxy in front of that, if that matters. |
ah, this is probably a difference between the official bitwarden server and bitwarden_rs (which i use). it'll probably be easiest for me to just handle the concatenation properly. |
this should be fixed in 95c29fd |
@doy Great, thank you! |
For self-hosted servers, the
base_url
must not include a/
at the end, because/api
will be concatenated to it. If you do, the error message is quite vague:Took me some time to read your code and figure out that the slash was the problem. I was mainly confused by the example
https://api.bitwarden.com/
given, which has a trailing slash. So I included it in my self-hosted URL.Alternatively, you could think about concatenating the URL using some library, which would drop a
/
if necessary (I don't know Rust, so I can't help).Thank you for creating this tool! The
pinentry
and caching of the password in the agent is exactly what is missing from the official client.