Skip to content

fix(gmail): handle stale watch 404s#70

Merged
steipete merged 2 commits intoopenclaw:mainfrom
antons:fix/gmail-watch-stale-history-404
Jan 16, 2026
Merged

fix(gmail): handle stale watch 404s#70
steipete merged 2 commits intoopenclaw:mainfrom
antons:fix/gmail-watch-stale-history-404

Conversation

@antons
Copy link
Copy Markdown
Contributor

@antons antons commented Jan 12, 2026

After running for some time, the Gmail watcher in Clawd was failing with:

08:57:37 [gmail-watcher] [gog] watch: handle push failed: googleapi: Error 404: Requested entity was not found., notFound

Made with Codex:

  • Addressed by treating this 404 as stale so watch handling triggers a resync.
  • In addition, we now keep processing the entire push when one message ID no longer exists (fetching it returns 404), instead of failing the whole webhook.

@steipete steipete self-assigned this Jan 16, 2026
@steipete
Copy link
Copy Markdown
Collaborator

Thank you!

antons and others added 2 commits January 16, 2026 09:37
After running for some time, the Gmail watcher in Clawd was failing with:

08:57:37 [gmail-watcher] [gog] watch: handle push failed: googleapi: Error 404: Requested entity was not found., notFound

Addressed by treating this 404 as stale so watch handling triggers a resync.

In addition, we now keep processing the entire push when one message ID no longer exists (fetching it returns 404), instead of failing the whole webhook.
@steipete steipete force-pushed the fix/gmail-watch-stale-history-404 branch from e21577a to 39767c7 Compare January 16, 2026 09:38
@steipete steipete merged commit 6806c8b into openclaw:main Jan 16, 2026
3 of 4 checks passed
@steipete
Copy link
Copy Markdown
Collaborator

Landed via temp rebase onto main.\n\n- Gate: pnpm lint && pnpm build && pnpm test\n- Land commit: 39767c7\n- Merge commit: 6806c8b\n\nThanks @antons!

klodr pushed a commit to klodr/gogcli that referenced this pull request Apr 22, 2026
klodr pushed a commit to klodr/gogcli that referenced this pull request Apr 22, 2026
…ory-404

fix(gmail): handle stale watch 404s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants