Skip to content

misc bug fixes#42

Merged
dcwatson merged 4 commits into
avaraline:mainfrom
neodb-social:fix/misc-bugfixes
Apr 7, 2026
Merged

misc bug fixes#42
dcwatson merged 4 commits into
avaraline:mainfrom
neodb-social:fix/misc-bugfixes

Conversation

@alphatownsman

Copy link
Copy Markdown
Collaborator

not really bug fixes but so that the server won't spit out 500s

Your Name and others added 4 commits April 6, 2026 20:25
When an Undo Block arrives for a block that was never received or
already deleted, silently ignore it instead of raising DoesNotExist.
This is a normal federation race condition.
When a remote server returns a non-UTF-8 error page (e.g. 502),
response.json() raises UnicodeDecodeError. Catch it alongside
JSONDecodeError.
Add a get_object_or_404 wrapper that catches ValueError/TypeError
from invalid PK types (e.g. UUIDs passed where integers are expected)
and returns 404 instead of crashing with a 500 error. Update all API
view imports to use the wrapper.
410 Gone indicates a resource is permanently gone. Retrying delivery to
such an inbox will never succeed. Treat 410 like 404 by not raising
ValueError, allowing the fan_out state machine to transition to sent
instead of retrying.

Fixes EGGPLANT-15F

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@dcwatson
dcwatson merged commit 04fe8e4 into avaraline:main Apr 7, 2026
4 checks passed
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