Skip to content

gog hangs indefinitely after OAuth client creation on macOS 26.2 (Tahoe) #221

Description

@xiaoheiclaw

Description

All gog API commands (gmail search, calendar list, etc.) hang indefinitely after successfully creating the OAuth client. The process never returns and must be killed.

Environment

  • gog version: v0.9.0 (99d9575 2026-01-22)
  • OS: macOS 26.2 (Apple Silicon, arm64)
  • Go version: (bundled in binary)
  • Account: Gmail/Google Workspace via OAuth

Steps to Reproduce

  1. gog auth add [email protected] — completes successfully
  2. gog auth list — shows the account with valid token
  3. gog gmail search "is:unread" --max 1 --verbosehangs forever

Verbose Output

time=2026-02-11T10:10:02.144+08:00 level=DEBUG msg="creating client options with custom scopes" serviceLabel=gmail [email protected]
time=2026-02-11T10:10:02.146+08:00 level=DEBUG msg="client options with custom scopes created successfully" serviceLabel=gmail [email protected]

After this, the process hangs indefinitely. No further output, no error.

What I've Tried

  • keyring_backend: file with GOG_KEYRING_PASSWORD env var — same hang
  • keyring_backend: keychain — same hang
  • With and without proxy (http://127.0.0.1:7890) — same hang
  • GODEBUG=http2client=0 to disable HTTP/2 — same hang
  • --no-input flag — same hang
  • Direct curl to Google APIs via same proxy works fine (gets 401 as expected)
  • Tested with gmail search, calendar list, calendar events — all hang

Expected Behavior

The command should return results or an error within a reasonable timeout.

Notes

  • gog auth list and gog auth credentials work fine (no API call needed)
  • The hang happens at the actual Google API HTTP request stage
  • This is on macOS 26.2 (Tahoe) — could be a TLS/HTTP compatibility issue with the Go version bundled in the binary

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions