Skip to content

Bankr x402 Cloud returns 500 before payment requirements on official docs-style endpoint. #395

Description

@mssystem1

Account / endpoint owner:
0xb2bba27d30e146e12a53daf4d6f476430fda4e27

Clean docs-style test:
bankr x402 init
bankr x402 add weather
bankr x402 configure weather

Config:
GET
Base
USDC
exact
price: 0.001

Endpoint:
https://x402.bankr.bot/0xb2bba27d30e146e12a53daf4d6f476430fda4e27/weather

Handler:
export default async function handler(req: Request) {
const url = new URL(req.url);
const city = url.searchParams.get("city") ?? "New York";

return {
city,
temperature: 72,
conditions: "sunny",
timestamp: new Date().toISOString()
};
}

Unpaid curl:
curl -i "https://x402.bankr.bot/0xb2bba27d30e146e12a53daf4d6f476430fda4e27/weather?city=London"

Actual result:
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Apigw-Requestid: dwgAjiNdvHcEMlg=

Expected result:
HTTP 402 Payment Required with payment requirements JSON.

Additional evidence:

  • Minimal /ping endpoint also returns 500 in browser.
  • bankr x402 call /ping returns API error 400 Bad Request.
  • x402-fetch external script gets status 500 with empty body.
  • Dashboard shows endpoint Active but no request logs.
  • Native Base USDC is deposited.
  • USDC contract: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Conclusion:
Endpoint registration works, but x402 gateway/runtime fails before handler execution and before logs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions