Skip to content

docs: warn that public facilitator returns 500 (not 402) when used with Base Mainnet#206

Draft
osr21 wants to merge 1 commit into
coinbase:mainfrom
osr21:docs/warn-public-facilitator-mainnet-500
Draft

docs: warn that public facilitator returns 500 (not 402) when used with Base Mainnet#206
osr21 wants to merge 1 commit into
coinbase:mainfrom
osr21:docs/warn-public-facilitator-mainnet-500

Conversation

@osr21

@osr21 osr21 commented Jun 12, 2026

Copy link
Copy Markdown

What

Adds a <Warning> callout to the "Add Payment Middleware" section of the Quickstart for Sellers guide, immediately below the facilitator URL bullet.

Why

The public facilitator https://x402.org/facilitator only supports testnet networks (Base Sepolia eip155:84532, Solana Devnet). When developers configure the middleware with Base Mainnet (eip155:8453) — a natural step when moving to production — the middleware crashes with a generic 500 Internal Server Error rather than returning 402 Payment Required. There is no indication in the error or current docs that the issue is the facilitator configuration.

Observed while building BasePay, an open-source USDC payments dApp on Base Mainnet using @x402/express.

Error seen in server logs:

Error: Route Configuration Errors
    at verifyPayment (@x402/express/dist/index.js:...)

Change

Single doc edit: one <Warning> block inserted at the facilitator URL bullet in docs/getting-started/quickstart-for-sellers.mdx. No code changes.

Opened as Draft — leaving review of wording to maintainers.

The public x402.org/facilitator only supports Base Sepolia (eip155:84532).
Using it with Base Mainnet (eip155:8453) makes the middleware propagate
a "Route Configuration Errors" response as a 500 Internal Server Error
instead of returning 402 Payment Required.

Add a <Warning> callout explaining this and pointing to the mainnet section.
@cb-heimdall

Copy link
Copy Markdown

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

@github-actions github-actions Bot added the docs label Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants