René's URL Explorer Experiment


Title: `setup-python` silently exits 0 when GitHub returns a truncated `versions-manifest.json` · Issue #1318 · actions/setup-python · GitHub

Open Graph Title: `setup-python` silently exits 0 when GitHub returns a truncated `versions-manifest.json` · Issue #1318 · actions/setup-python

X Title: `setup-python` silently exits 0 when GitHub returns a truncated `versions-manifest.json` · Issue #1318 · actions/setup-python

Description: Description: When actions/setup-python fetches versions-manifest.json from actions/python-versions and GitHub's API returns a truncated body, the action parses it as an empty release list and exits 0 without installing Python. The step i...

Open Graph Description: Description: When actions/setup-python fetches versions-manifest.json from actions/python-versions and GitHub's API returns a truncated body, the action parses it as an empty release list and exits...

X Description: Description: When actions/setup-python fetches versions-manifest.json from actions/python-versions and GitHub's API returns a truncated body, the action parses it as an empty release list and e...

Opengraph URL: https://github.com/actions/setup-python/issues/1318

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`setup-python` silently exits 0 when GitHub returns a truncated `versions-manifest.json`","articleBody":"**Description:**\nWhen `actions/setup-python` fetches `versions-manifest.json` from `actions/python-versions` and GitHub's API returns a truncated body, the action parses it as an empty release list and **exits 0 without installing Python**. The step is reported successful, and subsequent job steps run against whatever `python` happens to be on `PATH` (if any) - which makes the real cause harder to find.\n\n**Action version:**\nv6.2.0 (also affects earlier versions - the manifest-fetch logic is unchanged regarding such edge cases).\n\n**Platform:**\n- [x] Ubuntu\n- [x] macOS\n- [x] Windows\n\n**Runner type:**\n- [x] Hosted\n- [x] Self-hosted\n\n**Tools version:**\nAll Python versions - the failure is in the manifest fetch, before any version-specific logic runs.\n\n**Repro steps:**\nHard to reproduce on demand now that the upstream GitHub-side issue appears to be resolved, but here is what I saw last week:\n\n1. The action fetches the manifest in two calls:\n    - `GET https://api.github.com/repos/actions/python-versions/git/trees/main` to find the blob URL for `versions-manifest.json`.\n    - `GET \u003cthat blob URL\u003e` with `Accept: application/vnd.github.VERSION.raw` to get the manifest body.\n2. Sporadically, the second call returned a **truncated body** - HTTP 200, but the JSON was cut off mid-object and unparseable. **I captured 3 separate examples (attached - please see them at the bottom).**\n3. Two odd characteristics of the bad responses:\n    - A **~30 second server-side delay** before any bytes came back.\n    - Only reproduced on **authenticated** requests. Anonymous requests always returned the full manifest - but the 60 req/hour anon limit is too low for real CI use (authenticated is 5000/hour).\n\n**Expected behavior:**\nIf the manifest body is empty, truncated, or not a valid releases array, the action should **fail loudly** (**ideally after a few retries with backoff**), not exit 0 without installing Python. Suggested fix:\n\n1. After fetching, validate that the body parses as JSON **and** is a non-empty array of releases.\n2. Retry with backoff on failure - these truncations were intermittent and a retry would almost certainly succeed.\n3. If retries are exhausted, `core.setFailed()` with a clear \"manifest fetch/parse failed\" message.\n\n**Actual behavior:**\nA truncated manifest response is silently swallowed: it does not install Python, and exits 0. The job continues against the system `python` (or fails much later in a confusing way), and there is no signal in the `setup-python` step that anything went wrong.\n```\n* Installed versions\n  ##[debug]Semantic version spec of 3.11 - 3.13 is 3.11 - 3.13\n  ##[debug]isExplicit: \n  ##[debug]explicit? false\n  ##[debug]evaluating 0 versions\n  ##[debug]match not found\n  Version 3.11 - 3.13 was not found in the local cache\n  ##[debug]Getting manifest from actions/python-versions@main\n  ##[debug]set auth\n  ##[debug]Node Action run completed with exit code 0\n  ##[debug]Finishing: Setup python\n```\n\n**Captured truncated `versions-manifest.json` from last week:**\n[20260522T135554Z-manifest.json](https://github.com/user-attachments/files/28303804/20260522T135554Z-manifest.json)\n[20260522T134810Z-manifest.json](https://github.com/user-attachments/files/28303802/20260522T134810Z-manifest.json)\n[20260522T125459Z-manifest.json](https://github.com/user-attachments/files/28303803/20260522T125459Z-manifest.json)","author":{"url":"https://github.com/zdravko-axelera","@type":"Person","name":"zdravko-axelera"},"datePublished":"2026-05-27T10:24:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1318/setup-python/issues/1318"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:cf747394-c1b7-ac0f-96db-ee5fbc502050
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA532:EB829:E1C8CA:136DE99:6A625901
html-safe-nonce1997d30c9aca3d157f377f2946a3fb2df8096eb8f582ce8935dcaf90a4b81660
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTMyOkVCODI5OkUxQzhDQToxMzZERTk5OjZBNjI1OTAxIiwidmlzaXRvcl9pZCI6IjMzMzE0MjU0NjAwODEzNTkzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5744607274cbca440351ab143a3deb754c202fa4e8d79b48c089292a660f1984
hovercard-subject-tagissue:4531578849
github-keyboard-shortcutsrepository,issues,actions,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/setup-python/1318/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cc4b9d2e1ed470fe48bf3639e5b38d4964f856b0dca81af0bd45d1e6e6ec2dd3/actions/setup-python/issues/1318
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cc4b9d2e1ed470fe48bf3639e5b38d4964f856b0dca81af0bd45d1e6e6ec2dd3/actions/setup-python/issues/1318
og:image:altDescription: When actions/setup-python fetches versions-manifest.json from actions/python-versions and GitHub's API returns a truncated body, the action parses it as an empty release list and exits...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamezdravko-axelera
hostnamegithub.com
expected-hostnamegithub.com
Noneb928dd27bb9305f313c737471c216297e218430ec505d064cf33d7d74af9bf89
turbo-cache-controlno-preview
go-importgithub.com/actions/setup-python git https://github.com/actions/setup-python.git
octolytics-dimension-user_id44036562
octolytics-dimension-user_loginactions
octolytics-dimension-repository_id192625525
octolytics-dimension-repository_nwoactions/setup-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id192625525
octolytics-dimension-repository_network_root_nwoactions/setup-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6f728c3f39985ee4d171ffdd5591d8d2652392d9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/actions/setup-python/issues/1318#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-python%2Fissues%2F1318
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-python%2Fissues%2F1318
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=actions%2Fsetup-python
Reloadhttps://github.com/actions/setup-python/issues/1318
Reloadhttps://github.com/actions/setup-python/issues/1318
Reloadhttps://github.com/actions/setup-python/issues/1318
Please reload this pagehttps://github.com/actions/setup-python/issues/1318
actions https://github.com/actions
setup-pythonhttps://github.com/actions/setup-python
Notifications https://github.com/login?return_to=%2Factions%2Fsetup-python
Fork 728 https://github.com/login?return_to=%2Factions%2Fsetup-python
Star 2.2k https://github.com/login?return_to=%2Factions%2Fsetup-python
Code https://github.com/actions/setup-python
Issues 37 https://github.com/actions/setup-python/issues
Pull requests 24 https://github.com/actions/setup-python/pulls
Actions https://github.com/actions/setup-python/actions
Projects https://github.com/actions/setup-python/projects
Security and quality 0 https://github.com/actions/setup-python/security
Insights https://github.com/actions/setup-python/pulse
Code https://github.com/actions/setup-python
Issues https://github.com/actions/setup-python/issues
Pull requests https://github.com/actions/setup-python/pulls
Actions https://github.com/actions/setup-python/actions
Projects https://github.com/actions/setup-python/projects
Security and quality https://github.com/actions/setup-python/security
Insights https://github.com/actions/setup-python/pulse
setup-python silently exits 0 when GitHub returns a truncated versions-manifest.jsonhttps://github.com/actions/setup-python/issues/1318#top
https://github.com/priyagupta108
bugSomething isn't workinghttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/zdravko-axelera
zdravko-axelerahttps://github.com/zdravko-axelera
on May 27, 2026https://github.com/actions/setup-python/issues/1318#issue-4531578849
20260522T135554Z-manifest.jsonhttps://github.com/user-attachments/files/28303804/20260522T135554Z-manifest.json
20260522T134810Z-manifest.jsonhttps://github.com/user-attachments/files/28303802/20260522T134810Z-manifest.json
20260522T125459Z-manifest.jsonhttps://github.com/user-attachments/files/28303803/20260522T125459Z-manifest.json
priyagupta108https://github.com/priyagupta108
bugSomething isn't workinghttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.