Error Context Layer / checkout-api / production / inc_a04439

error

Tax quote returned malformed amount

RangeError invalid tax amount NaN

Status
open
Priority
P1
Events
7
Capture
policy limited

Context Timeline

Request entry, outbound I/O, local state records, and the throw frame.

request -> I/O -> local state -> throw
1
Request entered the service

POST /checkout/confirm reached checkout-api in iad1.

requestId = req_tax_44adcapturedtraceId = f25c8a90d7314be6920cf5b8a4d1e073captured
POST /checkout/confirm
2
Request entered checkout
cartId = "cart_82d1"captured
3
Tax quote returned 200
taxResponse.body = [omitted by policy]missing
Tax service quote / https://tax.internal/quote / 200 OK / 284ms /
4
Numeric conversion produced NaN
taxCents = NaNderived
5
Computed total became NaN
if (Number.isNaN(taxCents)) throw new RangeError('invalid tax amount NaN');
taxCentsNaNderived
src/checkout/tax.ts:51:15

Runtime evidence

Values, bound inputs, I/O records, and throw frame metadata.

policy limited
Captured locals
taxCentsNaNderived
taxCents = NaN / taxResponse.body = [omitted by policy]
Origin I/O
Tax service quotehttps://tax.internal/quote200 OK / 284ms / ok
Bound inputscartId = "cart_82d1"
Capture completenessmissing locals / captured args / captured I/O27 KB package / encrypted yes
Trace pathPOST /checkout/confirmTax service quote: 200 OKtaxCents = NaNsrc/checkout/tax.ts:51request / I/O / local / stack

Stack trace entry point

The stack identifies where Errorcore attached the context above; it is the entry point, not the full answer.

applyTaxQuotesrc/checkout/tax.ts:51:15
confirmCheckoutsrc/checkout/confirm.ts:149:9

Request context

LinePOST /checkout/confirmRequest IDreq_tax_44adStatus500Regioniad1RoutePOST /checkout/confirmBodyresponse bodies disabledTracef25c8a90d7314be6920cf5b8a4d1e073Span1da6f4c08b7e3952 / parent 8e02b5d7c4a9f316

Runtime and I/O

Nodev22.14.0Hostiad-checkout-03Release2026.05.08-4f17c2SDK0.9.1Memoryrss 384 MB, heap 121 MBLoop lag17 ms
Tax service quote

200 OK

https://tax.internal/quote
ok284ms

Capture completeness

Qualitypolicy limitedLocalsmissingArgscapturedI/OcapturedEncryptedyesPayload27 KB
redactedlocals.taxResponse.bodyresponse body capture disabled
policy appliedpayload 27 KB