Open eebette opened 4 months ago
Same issue here, but on version 2024.4.0.
Hi there,
Thank you for your report!
This has been flagged to our engineering team.
If you wish to add any further information/screenshots/recordings etc., please feel free to do so at any time - our engineering team will be happy to review these.
Thanks once again!
Same issue with version 2024.4.1 on Ubuntu 20.04.6 LTS using those commands on self host server.
bw sync
(ok)bw sync
: error
/snapshot/clients/apps/cli/build/bw.js:48171
return Response.error("Syncing failed: " + e.toString());
^
TypeError: Cannot read properties of null (reading 'toString')
at SyncCommand.
Node.js v18.5.0
- bw unlock --raw `You are not logged in.`
- in "~/.config/Bitwarden CLI/data.json"
"authenticatedAccounts": [],
It seems that the failed sync disconnect the user
Steps To Reproduce
bw serve
curl http://localhost:8087/unlock -d '{"password": "***"}' --header "Content-Type: application/json"
<----- This workscurl http://localhost:8087/sync -d '{}' --header "Content-Type: application/json"
<----- This workscurl http://localhost:8087/lock -d '{"password": "***"}' --header "Content-Type: application/json"
<----- This workscurl http://localhost:8087/unlock -d '{"password": "***"}' --header "Content-Type: application/json"
<----- This workscurl http://localhost:8087/sync -d '{}' --header "Content-Type: application/json"
<----- This returnsInternal Server Error
curl http://localhost:8087/unlock -d '{"password": "***"}' --header "Content-Type: application/json"
<----- Suddenly, this now also returnsInternal Server Error
Expected Result
Expected sync command to return normal success value:
And also not to break the unlock command.
Actual Result
Status code: 500 Internal Server Error
From
stderr
after running the sync command:From
stderr
after running the unlock command after the system-breaking sync command:Screenshots or Videos
No response
Additional Context
I've discovered that logging out and logging back in does not fix this issue.
However, killing the
bw serve
process successfully fixes the issue.i.e.
Operating System
Linux
Operating System Version
Debian GNU/Linux trixie/sid
Shell
Bash
Build Version
2024.4.1
Issue Tracking Info