Observed
GCP Error Reporting shows chronic failures in calendar tool functions:
calendar_tools.py:838 create_calendar_event — 36 hits in last 7 days (since Dec 2025)
calendar_tools.py:628 get_calendar_events — 22 hits in last 7 days (since Dec 2025)
Both call google_api_request() (google_utils.py:74) which makes HTTP requests to Google Calendar API. Failures include expired/revoked OAuth tokens and API errors.
Code path
- Tool function calls
google_api_request("POST"/"GET", ..., access_token)
- On failure, catch block at
:868/:635 attempts token refresh only on "Authentication failed" or "401" in error message
- Other failure modes (token revocation with non-401 codes, rate limits, network errors) are unhandled — they return generic error messages to the LLM agent
refresh_google_token() (google_utils.py:15) relies on stored refresh_token — if revoked by user in Google account, refresh silently fails
Impact
~58 errors/week for 4+ months. Users with broken calendar integration get no notification that their connection needs reconnecting. The AI agent silently fails calendar operations.
Data source
GCP Error Reporting, backend service, last 7 days (observed pattern extends back to Dec 2025).
Observed
GCP Error Reporting shows chronic failures in calendar tool functions:
calendar_tools.py:838 create_calendar_event— 36 hits in last 7 days (since Dec 2025)calendar_tools.py:628 get_calendar_events— 22 hits in last 7 days (since Dec 2025)Both call
google_api_request()(google_utils.py:74) which makes HTTP requests to Google Calendar API. Failures include expired/revoked OAuth tokens and API errors.Code path
google_api_request("POST"/"GET", ..., access_token):868/:635attempts token refresh only on"Authentication failed"or"401"in error messagerefresh_google_token()(google_utils.py:15) relies on storedrefresh_token— if revoked by user in Google account, refresh silently failsImpact
~58 errors/week for 4+ months. Users with broken calendar integration get no notification that their connection needs reconnecting. The AI agent silently fails calendar operations.
Data source
GCP Error Reporting,
backendservice, last 7 days (observed pattern extends back to Dec 2025).