raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.23k stars 2.93k forks source link

[Bitwarden Vault] TypeError: Cannot read properties of null (reading 'profile') #14443

Closed blacroix closed 1 day ago

blacroix commented 4 days ago

Extension

https://www.raycast.com/jomifepe/bitwarden

Raycast Version

1.82.5

macOS Version

14.6.1

Description

Error:

Error: Command failed with exit code 1: /Users/x/.nvm/versions/node/v20.17.0/bin/bw status
/Users/x/.nvm/versions/node/v20.17.0/lib/node_modules/@bitwarden/cli/build/bw.js:39426
                state.accounts[userId].profile = diskAccount.profile;
                                                             ^

TypeError: Cannot read properties of null (reading 'profile')
    at StateService.<anonymous> (/Users/x/.nvm/versions/node/v20.17.0/lib/node_modules/@bitwarden/cli/build/bw.js:39426:62)
    at Generator.next (<anonymous>)
    at /Users/x/.nvm/versions/node/v20.17.0/lib/node_modules/@bitwarden/cli/build/bw.js:39337:71
    at new Promise (<anonymous>)
    at state_service_awaiter (/Users/x/.nvm/versions/node/v20.17.0/lib/node_modules/@bitwarden/cli/build/bw.js:39333:12)
    at /Users/x/.nvm/versions/node/v20.17.0/lib/node_modules/@bitwarden/cli/build/bw.js:39421:61
    at StateService.<anonymous> (/Users/x/.nvm/versions/node/v20.17.0/lib/node_modules/@bitwarden/cli/build/bw.js:39898:44)
    at Generator.next (<anonymous>)
    at /Users/x/.nvm/versions/node/v20.17.0/lib/node_modules/@bitwarden/cli/build/bw.js:39337:71
    at new Promise (<anonymous>)

Node.js v20.15.1

/Users/x/.nvm/versions/node/v20.17.0/lib/node_modules/@bitwarden/cli/build/bw.js:39426
                state.accounts[userId].profile = diskAccount.profile;
                                                             ^

Steps To Reproduce

  1. install the extension
  2. install Bitwarden CLI: npm install -g @bitwarden/cli
  3. define clientId, clientSecret and Bitwarden CLI Path
  4. try Search Vault command

NB: I even connect using clientId and clientSecret on CLI: it works; I can search my vault using the CLI. It fails using Raycast + Bitwarden extension ;(

Current Behaviour

I got an error 'Something went wrong' just after typing my master password.

Expected Behaviour

Be able to search my vault ;)

raycastbot commented 4 days ago

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 issue` Closes the issue. - `@raycastbot close as not planned` Closes the issue as not planned. - `@raycastbot rename this issue to "Awesome new title"` Renames the issue. - `@raycastbot reopen this issue` Reopens the issue. - `@raycastbot assign me` Assigns yourself to the issue. - `@raycastbot good first issue` Adds the "Good first issue" label to the issue. - `@raycastbot keep this issue open` Make sure the issue won't go stale and will be kept open by the bot.
blacroix commented 4 days ago

Sorry, I guess it's the same issue of https://github.com/raycast/extensions/issues/14352

blacroix commented 4 days ago

And https://github.com/raycast/extensions/issues/14123 ;(

blacroix commented 4 days ago

I found a way to make it work! The extension should be installed AFTER the CLI.

jomifepe commented 1 day ago

Hey, great that you got it working. I still have to investigate what is getting saved that is causing this issue (https://github.com/raycast/extensions/issues/14123#issuecomment-2337515018). Thanks for providing a solution here 🙂

jomifepe commented 1 day ago

@raycastbot close this issue