Skip to content

Commit af7bbde

Browse files
committed
chore(server-changes): collapse into one terse changelog-style note
1 parent dbca4f2 commit af7bbde

2 files changed

Lines changed: 1 addition & 13 deletions

File tree

.server-changes/sanitize-api-loader-action-leaks-sweep.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

.server-changes/sanitize-loader-action-leaks.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@ area: webapp
33
type: fix
44
---
55

6-
Wrap two loaders/actions that previously let thrown errors propagate to Remix's default 500 serializer, which writes `error.message` into the response body. When the underlying call (Prisma, etc.) fails, the raw error string was reaching API consumers — including the SDK, which surfaces it back to users via `TriggerApiError`. Each handler now catches non-Response errors, logs server-side, and returns a generic 500 body. `throw json(...)` / `throw redirect(...)` from auth helpers is re-thrown unchanged.
7-
8-
Covers `api.v1.projects.$projectRef.envvars.$slug.$name.ts` (loader + action) and `resources.platform-changelogs.tsx` (loader).
6+
Expand API error response sanitization to additional loaders and actions so internal exception messages (Prisma errors, etc.) no longer leak to callers via 5xx response bodies.

0 commit comments

Comments
 (0)