trpc: do not return query text or params in internal errors #116
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-payment#116
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "%!s()"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
What
Internal errors send the raw message to the caller.
Why
onErrorlogs only the root message. The HTTP response still carrieserror.message.Failing case
With the database down,
subscriptionStatusreturnsFailed query: select ... params: alice-private,incomplete,1. For checkout the params include the billing name and email.Fix
In
errorFormatterinsrc/router.ts, forINTERNAL_SERVER_ERRORsetmessagetointernal errorand dropdata.stack. Keepdata.reasonforReasonError. Test next to the log test insrc/server.test.ts.Done when