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
gog auth add [email protected] — completes successfully
gog auth list — shows the account with valid token
gog gmail search "is:unread" --max 1 --verbose — hangs 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
Description
All
gogAPI commands (gmail search, calendar list, etc.) hang indefinitely after successfully creating the OAuth client. The process never returns and must be killed.Environment
Steps to Reproduce
gog auth add [email protected]— completes successfullygog auth list— shows the account with valid tokengog gmail search "is:unread" --max 1 --verbose— hangs foreverVerbose Output
After this, the process hangs indefinitely. No further output, no error.
What I've Tried
keyring_backend: filewithGOG_KEYRING_PASSWORDenv var — same hangkeyring_backend: keychain— same hanghttp://127.0.0.1:7890) — same hangGODEBUG=http2client=0to disable HTTP/2 — same hang--no-inputflag — same hangcurlto Google APIs via same proxy works fine (gets 401 as expected)gmail search,calendar list,calendar events— all hangExpected Behavior
The command should return results or an error within a reasonable timeout.
Notes
gog auth listandgog auth credentialswork fine (no API call needed)