clients icon indicating copy to clipboard operation
clients copied to clipboard

"bw list items" does not list any items

Open ajrosen opened this issue 2 months ago • 4 comments

Steps To Reproduce

  1. Run bw list items

Expected Result

I should get a list of the 516 items in my vault.

Actual Result

Nothing is shown.

Screenshots or Videos

Similarly, using bw serve, fetching items hangs with no output.

$ curl -v localhost:8087/list/object/items

* Host localhost:8087 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
*   Trying [::1]:8087...
* connect to ::1 port 8087 from ::1 port 54107 failed: Connection refused
*   Trying 127.0.0.1:8087...
* Connected to localhost (127.0.0.1) port 8087
> GET /list/object/items HTTP/1.1
> Host: localhost:8087
> User-Agent: curl/8.7.1
> Accept: */*
>
* Request completely sent off

Additional Context

The same problem happens with bw list collections. bw list folders and bw list organizations work as expected.

Operating System

macOS

Operating System Version

Sonoma 14.5 Beta (23F5059e)

Shell

Bash

Build Version

2024.3.1

Issue Tracking Info

  • [X] I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.

ajrosen avatar Apr 19 '24 23:04 ajrosen

Rebooting did clear the issue (for now?).

ajrosen avatar Apr 19 '24 23:04 ajrosen

Hi @ajrosen,

Thank you for following up on this. Did you encounter this again after rebooting the machine? If you did, please let me know; If not, please feel free to close this GitHub report as not planned.

Thank you in advance,

SergeantConfused avatar Apr 20 '24 14:04 SergeantConfused

The problem did go away after rebooting, for a while, but it came back.

I can't reliably recreate the problem. It seems to happen after my laptop has been sleeping for some time, but not always.

I'm the author of Bitwarden Accelerator (an Alfred workflow). So I have bw serve always running in the background.

bw serve --hostname localhost --port 8087 &>/dev/null & disown

Sometimes I can resolve the issue by stopping the server and logging out. I opened this issue when that wasn't enough to fix it.

Thanks!

ajrosen avatar Apr 20 '24 17:04 ajrosen

Same here, for a similar project (ulauncher-bitwarden). Works on my workstation, but not on my notebook. Restarting/Rebooting does not help.

morph027 avatar May 05 '24 17:05 morph027