Skip to content

Fixes #357 by serializing MontageErrors natively in MessageMiddleware and hardening the round_creation API contract. - #415

Open
ayushshukla1807 wants to merge 1 commit into
hatnote:masterfrom
ayushshukla1807:fix-round-creation-500-cors
Open

Fixes #357 by serializing MontageErrors natively in MessageMiddleware and hardening the round_creation API contract.#415
ayushshukla1807 wants to merge 1 commit into
hatnote:masterfrom
ayushshukla1807:fix-round-creation-500-cors

Conversation

@ayushshukla1807

@ayushshukla1807 ayushshukla1807 commented Mar 21, 2026

Copy link
Copy Markdown
Contributor

Fixes #357.

The backend was crashing and losing CORS headers when a custom error hit the middleware layer. I just fixed the serializer mapping.

This commit patches the admin_endpoints validation to gracefully handle empty POST bodies, and modifies MessageMiddleware to intercept MontageErrors so they correctly return 400 Bad Request JSON instead of bypassing CORS headers. Resolves Issue hatnote#357.
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.

CORS Error on Round Creation

1 participant