SeleniumHQ/selenium · error · ValueError

No Chrome download found for platform 'linux64'

Error message

No Chrome download found for platform 'linux64'

What it means

Raised by the chrome() function in pinned_browsers.py when the selected Chrome version's downloads JSON contains no 'chrome' entry with platform 'linux64'. The function searches chrome_downloads (selected_version['downloads']['chrome']) for d['platform'] == 'linux64'.

Source

Thrown at scripts/pinned_browsers.py:113

js_library(
    name = "chromedriver-js",
    data = ["chromedriver"],
)
\"\"\",
    )
"""

    return content


def chrome(selected_version, workspace_prefix=""):
    content = ""
    chrome_downloads = selected_version["downloads"]["chrome"]

    url = next((d["url"] for d in chrome_downloads if d["platform"] == "linux64"), None)
    if url is None:
        raise ValueError("No Chrome download found for platform 'linux64'")
    sha = calculate_hash(url)

    content += f"""
    http_archive(
        name = "linux_{workspace_prefix}chrome",
        url = "{url}",
        sha256 = "{sha}",
        build_file_content = \"\"\"
load("@aspect_rules_js//js:defs.bzl", "js_library")
package(default_visibility = ["//visibility:public"])

filegroup(
    name = "files",
    srcs = glob(["**/*"]),
)

exports_files(["chrome-linux64/chrome"])

View on GitHub (pinned to aa36b38e69)

Solutions

  1. Retry after a delay — linux64 Chrome may appear shortly.
  2. Verify the JSON payload manually to confirm linux64 Chrome exists for the milestone.
  3. Update the script if the platform key or download structure changed upstream.

Example fix

null
Defensive patterns

Strategy: validation

Validate before calling

chrome_downloads = selected_version['downloads']['chrome']
platforms = [d['platform'] for d in chrome_downloads]
if 'linux64' not in platforms:
    print(f'linux64 not in available platforms: {platforms}')

Type guard

null

Try / catch

null

Prevention

When it happens

Trigger: Running pinned_browsers.py when Chrome-for-Testing has not published a linux64 Chrome binary for the target milestone; JSON schema change; the milestone filter selected a version without linux64 Chrome downloads.

Common situations: Release transition window; upstream JSON format change; CI timing during Google's release cycle; network issue returning a partial/truncated JSON response.

Related errors


AI-assisted analysis of SeleniumHQ/selenium@aa36b38e69 (2026-08-14). Data as JSON: /api/errors/be8c20a0140f85ad. Report an issue: GitHub.