rswag-online/backend/app/api
Jeff Emmett 4b75464b93 fix: handle non-JSON error responses in design pipeline
Frontend was crashing with "Unexpected token 'I'" when the backend
returned plain text errors (e.g. "Internal Server Error" from proxy).
Now safely falls back to response.text() when JSON parsing fails.
Also prevents backend from swallowing HTTPException in catch-all.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 17:48:14 -08:00
..
admin Initial commit: rSwag - merch store for the rSpace ecosystem 2026-02-18 03:24:22 -07:00
__init__.py Initial commit: rSwag - merch store for the rSpace ecosystem 2026-02-18 03:24:22 -07:00
cart.py Initial commit: rSwag - merch store for the rSpace ecosystem 2026-02-18 03:24:22 -07:00
checkout.py feat: replace Stripe with Mollie payments + TBFF revenue split to bonding curve 2026-02-18 13:16:39 -07:00
design_generator.py fix: handle non-JSON error responses in design pipeline 2026-02-25 17:48:14 -08:00
designs.py fix: handle Printful v2 API list response format 2026-02-24 17:08:53 -08:00
health.py feat: replace Stripe with Mollie payments + TBFF revenue split to bonding curve 2026-02-18 13:16:39 -07:00
orders.py Initial commit: rSwag - merch store for the rSpace ecosystem 2026-02-18 03:24:22 -07:00
products.py feat: add multi-tenant spaces with Fungi Flows storefront 2026-02-18 12:20:19 -07:00
spaces.py feat: add multi-tenant spaces with Fungi Flows storefront 2026-02-18 12:20:19 -07:00
upload.py feat: add Upload Swag page with product mockup previews 2026-02-18 12:38:58 -07:00
webhooks.py feat: replace Stripe with Mollie payments + TBFF revenue split to bonding curve 2026-02-18 13:16:39 -07:00