Skip to content

Bitwarden Generate Password Command attempts to fetch serverconfig from bitwarden API despite the command not requiring internet connectivity #18110

@blackops786187

Description

@blackops786187

Steps To Reproduce

Run the command bw.exe generate whilst the machine is not connected to the internet and the bitwarden CLI Folder in appdata roaming doesn't exist indicating that its run for the first time

Expected Result

Just the password being outputted and no contact being made to the bitwarden API to fetch serverconfig. This command should run completly offline on the local device without any need for network calls to be made (correct me if im wrong)

Actual Result

A failed attempt to fetch serverconfig before the password is output to stdout

_Unable to fetch ServerConfig from https://api.bitwarden.com FetchError: request to https://api.bitwarden.com/config failed, reason: getaddrinfo ENOTFOUND api.bitwarden.com
at ClientRequest. (C:\snapshot\clients\node_modules\node-fetch\lib\index.js:1505:11)
at ClientRequest.emit (node:events:518:28)
at emitErrorEvent (node:_http_client:104:11)
at TLSSocket.socketErrorListener (node:http_client:518:5)
at TLSSocket.emit (node:events:518:28)
at emitErrorNT (node:internal/streams/destroy:170:8)
at emitErrorCloseNT (node:internal/streams/destroy:129:3)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
type: 'system',
errno: 'ENOTFOUND',
code: 'ENOTFOUND'
}
T3NHsR3bK3l15L

Screenshots or Videos

No response

Additional Context

No response

Operating System

Windows

Operating System Version

24H2 Windows 11

Shell

PowerShell

Build Version

2025.12.0

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcliCLI Application

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions