Skip to content
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

CLI Offline mode bw list items timeout error before giving results #9208

Closed
1 task done
Misterbabou opened this issue May 16, 2024 · 2 comments
Closed
1 task done
Labels
bug cli CLI Application

Comments

@Misterbabou
Copy link

Misterbabou commented May 16, 2024

Steps To Reproduce

  1. Connect with bw CLI
  2. Sync the vault
  3. Disconnect from internet (or at least to the Bitwarden server)
bw list items

or

bw list items --search <text search for organization item>
  1. Result will be output after a long wait (more than 120s) and an error message

Expected Result

Get Json output instantly

For instance:
When I do the same as above but with :

 bw list items --search <text_search for personnal item>

I have the json output instantly

Actual Result

FetchError: request to https://<my_self_host_server>/identity/connect/token failed, reason: connect ETIMEDOUT <my-IP>:443
    at ClientRequest.<anonymous> (/snapshot/clients/node_modules/node-fetch/lib/index.js:1505:11)
    at ClientRequest.emit (node:events:537:28)
    at TLSSocket.socketErrorListener (node:_http_client:465:9)
    at TLSSocket.emit (node:events:537:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  type: 'system',
  errno: 'ETIMEDOUT',
  code: 'ETIMEDOUT'
}

Then the json output

Screenshots or Videos

No response

Additional Context

No response

Operating System

Linux

Operating System Version

Ubuntu 20.04.6 LTS

Shell

Bash

Build Version

2024.4.1

Issue Tracking Info

  • 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.
@Misterbabou Misterbabou added bug cli CLI Application labels May 16, 2024
@Misterbabou
Copy link
Author

Misterbabou commented May 16, 2024

Edit to my previous message. it might be due to built-in Event logging

I checked:
#7991 (comment)

Is it possible to not try event logging when Bitwarden server not reachable or not online?
Or to have a new option like --noeventlog to disable event log on bw commands

@jtodddd
Copy link

jtodddd commented May 23, 2024

Hi there,

I attempted to reproduce your issue and was unable to do so. Are you able to update to a more recent version of Ubuntu to see if that makes a difference?

We use GitHub issues as a place to track bugs and other development related issues. If your issue persists, please write us back using our “Contact support” form located on our Help Center (https://bitwarden.com/help/).

You can include a link to this issue in the message content.

Alternatively, you can also search for an answer in our help documentation or get help from other Bitwarden users on our community forums (https://community.bitwarden.com/c/support/).

The issue here will be closed.

Thanks!

@jtodddd jtodddd closed this as not planned Won't fix, can't repro, duplicate, stale May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cli CLI Application
Projects
None yet
Development

No branches or pull requests

2 participants