SShortSingh.
Back to feed

Audit of 18 Web Scrapers Uncovers Three Common HTTP Retry Logic Bugs

0
·1 views

A code audit across a fleet of 18 Apify web-scraping actors revealed three recurring bugs in HTTP retry logic. The most critical flaw excluded HTTP 429 (Too Many Requests) responses from retry handling entirely, meaning rate-limit errors were never retried when they should have been. Two other actors did the opposite, pointlessly retrying permanent errors like 401 and 404 responses that can never succeed regardless of how many attempts are made. A third widespread issue involved ignoring the server-provided Retry-After header, causing scrapers to wait arbitrary durations instead of the server-specified delay. None of the fixes have been fully rolled out across all 18 actors yet, highlighting how retry-logic bugs can persist silently in production systems.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

KiwisIoT: Indian Platform Helps Students Build Cloud-Connected IoT Projects

KiwisIoT is an India-based IoT platform designed to bridge the gap between basic embedded programming and full IoT application development for students, makers, and engineering institutions. The platform supports popular hardware like ESP32 and Arduino, enabling devices to transmit sensor data to cloud dashboards using the MQTT communication protocol. Users can visualize live sensor readings through widgets such as charts, gauges, and status indicators, without needing to build a custom backend from scratch. Multiple devices can be connected simultaneously to a single dashboard, making it practical for college lab setups, final-year projects, and STEM workshops. KiwisIoT aims to help learners understand core IoT concepts — including device communication, MQTT messaging, and sensor visualization — through hands-on, end-to-end project workflows.

0
ProgrammingDEV Community ·

How Developers Can Wire LLM Chains Into Gig Platforms for Paid AI Work

Developers building autonomous AI agents face significant challenges when moving prototypes from notebooks into production environments on gig platforms like Upwork and Fiverr. A practical end-to-end architecture involves three core layers: input conditioning, model inference, and output processing, each of which can be independently instrumented. Key production concerns include retry logic, real-time token cost metering, safety filters, and observability hooks for monitoring performance. Latency profiling shows that server-side model inference is the dominant bottleneck, typically ranging from 400ms to 1,500ms for GPT-4-turbo API calls. Platform-specific rules also matter — Upwork permits agent-assisted work via its GraphQL API provided a human remains the account controller, while Fiverr offers more limited programmatic access.

0
ProgrammingDEV Community ·

Developer Builds Autonomous AI Agent That Accepts Crypto Payments on Base L2

A software developer has published a detailed walkthrough on DEV Community describing how they built an autonomous AI agent capable of completing micro-tasks and receiving USDC payments via the x402 payment standard on the Base Layer 2 blockchain. The system runs on a modest cloud virtual machine with 2 vCPUs and 8 GiB of RAM, using an LLM as a planner that decomposes goals into steps and selects tools to execute them. It is structured into four layers — a planner, an executor, a payment handler, and a scheduler — all communicating within a single long-lived Python service built with libraries like transformers, web3.py, and FastAPI. The agent idles in a low-power wait state between tasks, only activating the LLM when a new task and payment are detected. The author frames the project not as a breakthrough but as a practical engineering reference, sharing code and performance trade-offs for developers building similar on-chain AI agent systems.

0
ProgrammingDEV Community ·

Developer Launches Browser Multiplayer Fantasy Game With AI Agents and Realtime Chat

A developer has released hkd_might_and_magic, an experimental browser-based multiplayer fantasy game combining party combat, tank duels, tower defense, and island strategy modes. Each new browser session assigns players a number, allowing them to interact through realtime realm and party chat, issue challenges, and share resources. The game also features five AI agents visible alongside human players on a shared world map. It supports both desktop and mobile layouts in portrait and landscape orientations. The developer is actively seeking playtester feedback on multiplayer clarity, mobile controls, game balance, and overall mode enjoyment.