Errors /

"Invalid payment required header"

The client could not read the seller's quote.

Reported bythe x402 client, before any payment is sent
Usually fixed bythe seller

Cause

The PAYMENT-REQUIRED response header is not base64-encoded JSON in the x402 version 2 shape, so the client cannot tell what to pay.

Fix

Reproduce it

The Unreadable quote scenario on this site exercises this situation.

About this reference

Causes are taken from the source of @x402/core 2.31. Other facilitators and later versions may use the same code for slightly different checks. See all x402 errors.