Skip to content

bug(ci): cold toolchain downloads 403 from dl.registry.platformio.org — shared HTTP client sends no PlatformIO User-Agent #1783

Closed

Description

@zackees

Symptom

Every board build whose toolchain/framework archive is not already in the cache now fails:

build error: package error: package error: download failed for
https://dl.registry.platformio.org/download/platformio/tool/framework-arduino-avr/5.4.0/framework-arduino-avr-5.4.0.tar.gz:
HTTP 403 Forbidden (gave up after 1 attempts at byte offset 0; error is not retryable)

Observed on main at 339e4ba in ci-minimal run
40862560392:
Arduino Uno / build and Teensy 4.1 / build both failed within ~15 s, before compiling.
The same two boards passed 2 h earlier in run 40847963620 — same commit content, cached archives.

Cause

dl.registry.platformio.org started answering clients that do not identify as
PlatformIO Core with:

{"message":"This download method is not supported. Please use PlatformIO Core to install packages."}

It is a prefix check on User-Agent:

User-Agent Answer
(none / reqwest default) 403
fbuild/2.5.47 403
pio/6.1.16, Mozilla/5.0, PlatformIO/6.2.0-behind-other-tokens 403
PlatformIO/5.0.0, PlatformIO/6.1.0, PlatformIO/6.2.0 302 → signed mirror (200)

fbuild_core::http::client() — the single shared reqwest client every fbuild download
uses — sets no User-Agent, so cold downloads 403. Only cached archives keep CI green,
i.e. any new board, any FBUILD_* cache reset, and every cold canary is red.

Accept/X-Requested-With headers do not help; only the UA prefix does.

Fix

Send a PlatformIO-compatible UA from the shared clients, naming fbuild in the comment part:

PlatformIO/6.2.0 (fbuild/2.5.47)

Impact

Blocks CI selected coverage on every PR that touches a board family with a cold cache,
which in turn blocks the merge queue — including the #1782 Windows fix.

Activity

  1. added
    bug
    on Oct 29, 2026
  2. zackees commented on Oct 29, 2026

    @zackees
    MemberAuthor

    Fixed by #1784 (merged 2026-10-29T11:57:54Z): the shared clients now send PlatformIO/6.2.0 (fbuild/<version>). Verified end-to-end on a cold cache — #1782's Arduino Uno / build and Teensy 4.1 / build, the two jobs this 403 killed, went green in run 40899365043-style head fa1d952f immediately after the fix.

  3. zackees commented on Oct 29, 2026

    @zackees
    MemberAuthor

    Correction to my closing comment: the verifying run is 40869461656 (ci-minimal at fa1d952f, PR #1782). Its Arduino Uno / build and Teensy 4.1 / build — the two jobs this 403 killed — passed on a cold cache, and CI selected coverage went green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions