Skip to content

Login hangs on ubuntu #1866

@gratinierer

Description

@gratinierer

Describe the bug

No response

Affected version

GitHub Copilot CLI 0.0.422.

Steps to reproduce the behavior

  1. /login
  2. Pass GH-Login-Flow in Browser

Expected behavior

login should complete successfully.

Additional context

 ⠸ Waiting for authorization...

 Enter one-time code: CA8D-C2B6 at https://github.com/login/device

 Press any key to copy to clipboard and open browser...

persists without any change, have t cancel with ctrl+c
But in the log I can see:

2026-03-06T14:58:10.235Z [DEBUG] [fetchAccessToken] Access token received successfully
2026-03-06T14:58:10.235Z [DEBUG] [deviceCodeLogin] Access token received after 3 attempts
2026-03-06T14:57:56.656Z [DEBUG] [deviceCodeLogin] Starting access token polling for host=https://github.com, expires_in=899s, interval=5s (using 6s with 20% margin)
2026-03-06T14:57:56.656Z [DEBUG] [deviceCodeLogin] Poll attempt 1, elapsed=0s/899s, interval=6s
2026-03-06T14:57:56.656Z [DEBUG] [fetchAccessToken] Requesting access token from https://github.com/login/oauth/access_token
2026-03-06T14:57:56.860Z [DEBUG] [fetchAccessToken] Response status: 200 OK
2026-03-06T14:57:56.861Z [DEBUG] [fetchAccessToken] Response body: {"error":"authorization_pending","error_description":"The authorization request is still pending.","error_uri":"https://docs.github.com/developers/apps/authorizing-oauth-apps#error-codes-for-the-device-flow"}
2026-03-06T14:57:56.861Z [DEBUG] [fetchAccessToken] Authorization pending - user has not yet authorized
2026-03-06T14:57:56.861Z [DEBUG] [deviceCodeLogin] Sleeping for 6s before next poll
2026-03-06T14:57:59.436Z [DEBUG] [deviceCodeLogin] Polling cancelled after 8 attempts
2026-03-06T14:58:02.869Z [DEBUG] [deviceCodeLogin] Poll attempt 2, elapsed=6s/899s, interval=6s
2026-03-06T14:58:02.869Z [DEBUG] [fetchAccessToken] Requesting access token from https://github.com/login/oauth/access_token
2026-03-06T14:58:03.197Z [DEBUG] [fetchAccessToken] Response status: 200 OK
2026-03-06T14:58:03.199Z [DEBUG] [fetchAccessToken] Response body: {"error":"authorization_pending","error_description":"The authorization request is still pending.","error_uri":"https://docs.github.com/developers/apps/authorizing-oauth-apps#error-codes-for-the-device-flow"}
2026-03-06T14:58:03.199Z [DEBUG] [fetchAccessToken] Authorization pending - user has not yet authorized
2026-03-06T14:58:03.199Z [DEBUG] [deviceCodeLogin] Sleeping for 6s before next poll
2026-03-06T14:58:09.199Z [DEBUG] [deviceCodeLogin] Poll attempt 3, elapsed=13s/899s, interval=6s
2026-03-06T14:58:09.199Z [DEBUG] [fetchAccessToken] Requesting access token from https://github.com/login/oauth/access_token
2026-03-06T14:58:10.234Z [DEBUG] [fetchAccessToken] Response status: 200 OK
2026-03-06T14:58:10.235Z [DEBUG] [fetchAccessToken] Response body: {"access_token":"******","token_type":"bearer","scope":"gist,read:org,read:user,repo"}
2026-03-06T14:58:10.235Z [DEBUG] [fetchAccessToken] Access token received successfully
2026-03-06T14:58:10.235Z [DEBUG] [deviceCodeLogin] Access token received after 3 attempts
2026-03-06T14:58:16.525Z [DEBUG] [telemetry-queue] Flushing 1 events (2158 B → 994 B gzipped)
2026-03-06T14:58:16.552Z [DEBUG] Sending telemetry event: copilot-cli/cli.telemetry (kind: resize_terminal)
2026-03-06T14:58:16.675Z [DEBUG] Sending telemetry event: copilot-cli/cli.telemetry (kind: resize_terminal)
2026-03-06T14:58:16.681Z [DEBUG] Sending telemetry event: copilot-cli/cli.telemetry (kind: resize_terminal)
2026-03-06T14:58:16.723Z [DEBUG] Sending telemetry event: copilot-cli/cli.telemetry (kind: resize_terminal)
2026-03-06T14:58:16.766Z [DEBUG] Sending telemetry event: copilot-cli/cli.telemetry (kind: resize_terminal)
2026-03-06T14:58:16.816Z [DEBUG] Sending telemetry event: copilot-cli/cli.telemetry (kind: resize_terminal)
2026-03-06T14:58:16.943Z [DEBUG] Sending telemetry event: copilot-cli/cli.telemetry (kind: resize_terminal)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions