Skip to content

Comments

Treat 404 on delete as success in sync#62

Merged
fatherlinux merged 1 commit intomainfrom
fix-delete-404-handling
Feb 6, 2026
Merged

Treat 404 on delete as success in sync#62
fatherlinux merged 1 commit intomainfrom
fix-delete-404-handling

Conversation

@fatherlinux
Copy link
Owner

Summary

Fixes sync error when deleting pomodoros that were never synced to Google Sheets.

Problem

When a pomodoro is created locally but never synced (e.g., during 502 errors), deleting it would fail with a 404 error because the record doesn't exist in Google Sheets.

Solution

Treat HTTP 404 on DELETE as success - the record is already gone.

🤖 Generated with Claude Code

When deleting a pomodoro that was never synced to Google Sheets,
the DELETE API returns 404. This should be treated as success
since the record doesn't exist anyway.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@fatherlinux fatherlinux merged commit 4115b25 into main Feb 6, 2026
3 checks passed
@fatherlinux fatherlinux deleted the fix-delete-404-handling branch February 6, 2026 21:40
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.

1 participant