[Bitwarden Vault] ...
Extension
https://www.raycast.com/jomifepe/bitwarden
Raycast Version
1.81.2
macOS Version
14.6.1
Description
Error:
Error: Command failed with exit code 1: /opt/homebrew/bin/bw status
(node:4164) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
/opt/homebrew/Cellar/bitwarden-cli/2024.6.1/libexec/lib/node_modules/@bitwarden/cli/build/bw.js:36503
state.accounts[userId].profile = diskAccount.profile
### Steps To Reproduce
1. **I installed Bitwarden CLI using Homebrew:**
```bash
brew install bitwarden-cli
-
I configured the Bitwarden Vault extension in Raycast:
- Opened Raycast.
- Went to the
Extensionssection. - Installed the Bitwarden Vault extension.
- In the extension settings, specified the path to the Bitwarden CLI using the output from the
which bwcommand.
-
I generated and configured API keys:
- Created API keys in my Bitwarden account (or confirmed existing ones).
- Entered these API keys into the Bitwarden Vault extension in Raycast.
-
I returned to Raycast and attempted to unlock the vault:
- When prompted, I entered the same master password into the Raycast extension.
Current Behaviour
- After entering the master password, an
Invalid master passworderror is displayed, despite the same password working in the CLI. - Additionally, the console logs a warning:
(node:1338) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
Expected Behaviour
- The Bitwarden Vault should unlock successfully in Raycast.
Actual Result:
Thank you for opening this issue!
π @jomifepe @daniel-stoneuk @andreaselia @pernielsentikaer @eth-p @YamenSharaf @undefinedzack @anirudhganwal06 @ivaarsson you might want to have a look.
π‘ Author and Contributors commands
The author and contributors of jomifepe/bitwarden can trigger bot actions by commenting:
@raycastbot close this issueCloses the issue.@raycastbot close as not plannedCloses the issue as not planned.@raycastbot rename this issue to "Awesome new title"Renames the issue.@raycastbot reopen this issueReopens the issue.@raycastbot assign meAssigns yourself to the issue.@raycastbot good first issueAdds the "Good first issue" label to the issue.@raycastbot keep this issue openMake sure the issue won't go stale and will be kept open by the bot.
same issue. MAC pro M1
Hey, you're most likely on CLI version 2024.6.1, which has an issue, please try updating. Refer to this comment: https://github.com/raycast/extensions/issues/13329#issuecomment-2238743439
same error: "client_id or client_secret is incorrect. Try again." versions i tried: 2024.6.0, .6.1, .7.2, .8.1 without success cli login works without any problems
β― bw -v
(node:7551) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
2024.8.1
try login in with master password, then copy last error as below:
(node:7673) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Invalid master password.
@defPhisy When you say
cli login works without any problems
Do you mean with client id and secret? Or with password? Is the extension pointing to the correct CLI path?
@dereknex Same as above, do you have any other CLI version installed? The Bitwarden CLI Path preference should be pointing to the same path as the bw you're using in your terminal. You can run which bw to check that.
@dereknex Same as above, do you have any other CLI version installed? The
Bitwarden CLI Pathpreference should be pointing to the same path as thebwyou're using in your terminal. You can runwhich bwto check that.
Thanks for the reply, I tried logging out and trying again with no problem.
@jomifepe tried both:
- cli with mail, password and otp works
- cli with client_id and client_secret works
- with
which bwi took the cli path and pasted it into CLI Path field in your extension - your extension asks for master pw
- typing my master pw throws error:
client_id or client_secret is incorrect. Try again.
My setup:
- M2 Macbook Air with Sonoma
14.6.1 - raycast
1.82.3 - bw cli
2024.8.1 - installed bw cli with npm, because bitwarden suggest to install it not via homebrew
- npm
10.7.0
Not sure if this is relevant but i might use the letters Àâü in my master password.
Hard to tell what the issue is, I'm not aware of a bug around incorrect client id or secret. That said, please check if those are correct (no leading or trailing spaces). As a last resort, try reinstalling the extension to force clean every possible value.
@jomifepe: After a fresh install of everything it works now. Still don't know what the issue was but thanks for your help.
Cool, I will investigate what might be getting cached that prevents logging in.
Try to uninstall the extension (keeping the bw CLI installed) then install back the extension. It ends up working for me that way.
@jomifepe came to ask about the "invalid master password", after forcing the which bw in the extension path, everything is working appropriately.
Thanks. π
This issue has been automatically marked as stale because it did not have any recent activity.
It will be closed if no further activity occurs in the next 10 days to keep our backlog clean π
This issue has been automatically closed due to inactivity.
Feel free to comment in the thread when you're ready to continue working on it π
You can also catch us in Slack if you want to discuss this.