Urgent.News

What's breaking now, across thousands of outlets.

Tech

The seven most common x402 seller mistakes, and how to fix them

An x402 API asks for payment with an HTTP 402 Payment Required answer, and an AI agent pays it per call in stablecoins. That only works when the 402 is exactly what the agent's client expects. x402 Doctor calls every paid endpoint it can find once a day, about 50,000 of them, the way a paying agent would. On 17 October, 93% were payable as listed. These are the mistakes behind most of the rest,…

The seven most common x402 seller mistakes detailed in this report revolve around issues with payment processing on the x402 API. These mistakes include resource mismatch (2,009 endpoints), listed URLs that don't answer 402 (1,042 endpoints), offering only a testnet (206 endpoints), and improper configuration of the payment middleware.

The first issue, resource mismatch, occurs when the resource.url in the 402 response is different from the URL the agent called. This could be due to a relative path, another host, or an incorrect protocol (http:// instead of https://). To fix this, clients and indexes should check the resource and refuse the challenge if it doesn't match the called URL.

The second issue involves listed URLs that don't answer 402, which can happen due to various reasons such as using the wrong HTTP method, API-key checks, or misconfigured payment middleware. To resolve this, the payment middleware should be registered before the handler and before any API-key check, and the method used by the route should be accurately listed.

Lastly, 4% of payable endpoints only offer a testnet option, which is problematic for agents with real USDC on the mainnet. To address this, testnet and mainnet options should be offered side by side.

Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Part 3 — Networking: From `fetch()` to Packets

Most web developers use HTTP every day. We write fetch() , call APIs, send requests, and handle responses. But lets understand what happens underneath those familiar abstractions.

  • fetch() abstraction hides HTTP, TCP, IP, Ethernet/Wi-Fi layers
  • HTTP uses ports to identify application endpoints (e.g., 443 for HTTPS)
  • DNS resolves domain names to IP addresses for routing packets

How Upload_Tracker.Py Stops Double-Posting When You Re-Run A Batch

I run my whole asset pipeline on a 1 vCPU, 2 GB RAM box with no GPU. A few months ago I had a batch of 40 sticker assets ready for Adobe Stock, Vecteezy, and Dreamstime.

  • UploadTracker.py prevents double-posting in batch uploads.
  • Script maintains ledger of uploaded assets in text file.
  • Ledger updated after successful upload to track unfinished assets.

Dry-Run Your Asset Pipeline: Validate Covers, Zips And CSVs On A 2 GB Server

Last March I lost a full evening to a header row. I had 60 JPGs ready for Adobe Stock, generated the CSV, uploaded the batch, and every single file came back rejected in under a minute.

  • Author experienced evening-long troubleshooting due to CSV header error
  • Validated all files before uploading to avoid issues
  • Condensed process into four Python scripts to catch failures

Validate bounding boxes from a general vision model

A general model can take an image plus a question and return segmentation, bounding boxes, and object detection, work that used to require its own trained vision system.

  • Validate bounding boxes before using results from general vision model
  • Ensure boxes adhere to schema, have correct coordinates, and include labels
  • Reject invalid boxes outside image, with zero width/height, or missing labels

Step Up! My phone told me I can't dance

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 2: Side Hustle What I Built Step Up! is a web app that tells you whether your salsa steps land on the beat.

  • Step Up! assesses salsa dance steps alignment with beat
  • Uses smartphone/laptop camera to capture dance moves
  • Provides score out of 100 and improvement tips

More from Sunday 18 October →