Skip to content

Bug: calendar events list returns 404 when using --today, --from, or --days flags #367

@firstmovr

Description

@firstmovr

Description

gog calendar events list returns Google API error (404 notFound): Not Found when any date-filtering flag is used (--today, --from, --to, --days), but works correctly without date flags.

Repro

# Works - returns events
gog calendar events list --account oskar@firstmovr.com

# 404 - any date filter breaks it
gog calendar events list --account oskar@firstmovr.com --today
gog calendar events list --account oskar@firstmovr.com --from today --to tomorrow
gog calendar events list --account oskar@firstmovr.com --days 1
gog calendar events list --account oskar@firstmovr.com --from "2026-02-25T00:00:00-05:00"

Environment

  • gog version: 0.11.0 (Homebrew)
  • macOS 15.x (arm64)
  • Google Workspace account
  • Calendar ID is the account email (not primary alias)
  • gog calendar calendars shows only one calendar with ID = account email

Notes

  • The --verbose flag shows auth succeeds; the 404 comes from the Google Calendar API itself.
  • Suspect the date flags cause a different API call path that uses primary as the calendarId, which doesn't resolve for this Workspace account.
  • The non-date-filtered path presumably uses a different endpoint or defaults correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions