René's URL Explorer Experiment


Title: retries input retries the codes in retry-exempt-status-codes (403/404/422 are sent retries+1 times) · Issue #732 · actions/github-script · GitHub

Open Graph Title: retries input retries the codes in retry-exempt-status-codes (403/404/422 are sent retries+1 times) · Issue #732 · actions/github-script

X Title: retries input retries the codes in retry-exempt-status-codes (403/404/422 are sent retries+1 times) · Issue #732 · actions/github-script

Description: Describe the bug When retries is set, a response with a status listed in retry-exempt-status-codes is still retried, immediately and up to retries times. With retries: 3, a 403, 404 or 422 is sent 4 times. The README and the input descri...

Open Graph Description: Describe the bug When retries is set, a response with a status listed in retry-exempt-status-codes is still retried, immediately and up to retries times. With retries: 3, a 403, 404 or 422 is sent ...

X Description: Describe the bug When retries is set, a response with a status listed in retry-exempt-status-codes is still retried, immediately and up to retries times. With retries: 3, a 403, 404 or 422 is sent ...

Opengraph URL: https://github.com/actions/github-script/issues/732

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"retries input retries the codes in retry-exempt-status-codes (403/404/422 are sent retries+1 times)","articleBody":"**Describe the bug**\n\nWhen `retries` is set, a response with a status listed in `retry-exempt-status-codes` is still retried, immediately and up to `retries` times. With `retries: 3`, a 403, 404 or 422 is sent 4 times. The README and the input description say those codes are not retried.\n\nThe cause is how `getRetryOptions` (src/retry-options.ts) passes the count. It puts the count in `request.retries` and the exempt list in `retry.doNotRetry`. In `@octokit/plugin-retry` 8.1.0, `errorRequest` honours `doNotRetry`: for an exempt status it rethrows without scheduling a retry. But the `failed` handler in `wrapRequest` reads `error.request.request.retries` for every error. That is the `request.retries` value github-script set, so the limiter retries anyway. `retryAfter` is unset on that path, so the delay is 0.\n\nIf the count is passed as `retry: { retries }` instead, and `request.retries` is left unset, the exempt list is honoured.\n\nThe same root cause is reported upstream as octokit/plugin-retry.js#576 (\"404 being retried\", open since 2024-09; the reporter sets `request: { retries: 9 }`).\n\n**To Reproduce**\n\nThis is the option shape github-script v9.0.0 builds for `retries: 3` with the default exempt codes, run against `@octokit/core` 7 and `@octokit/plugin-retry` 8.1.0 (the versions in its lockfile). It uses a stub fetch:\n\n```js\nimport { Octokit } from '@octokit/core';\nimport { retry } from '@octokit/plugin-retry';\n\nasync function run(label, status, opts) {\n  let calls = 0;\n  const fetch = async () => {\n    calls++;\n    return new Response('{\"message\":\"x\"}', { status, headers: { 'content-type': 'application/json' } });\n  };\n  const O = Octokit.plugin(retry);\n  const o = new O({ ...opts, request: { ...opts.request, fetch } });\n  await o.request('GET /repos/a/b').catch(() => {});\n  console.log(label, status, 'calls:', calls);\n}\n\n// What github-script builds for `retries: 3`\nconst githubScript = { retry: { enabled: true, doNotRetry: [400, 401, 403, 404, 422] }, request: { retries: 3 } };\n// Count in the retry options instead\nconst retryOptions = { retry: { enabled: true, retries: 3, doNotRetry: [400, 401, 403, 404, 422] } };\n\nawait run('github-script shape', 403, githubScript);\nawait run('github-script shape', 404, githubScript);\nawait run('github-script shape', 422, githubScript);\nawait run('retry.retries shape', 403, retryOptions);\n```\n\nOutput:\n\n```\ngithub-script shape 403 calls: 4\ngithub-script shape 404 calls: 4\ngithub-script shape 422 calls: 4\nretry.retries shape 403 calls: 1\n```\n\nThe `retry.retries` shape still retries a 502 with the 1 s / 4 s / 9 s backoff.\n\n**Expected behavior**\n\nA status in `retry-exempt-status-codes` is sent once. This matters most for 403. With `retries` set, a rate-limited or forbidden request is sent again at once, several times. It also delays every 404 a script expects and handles.\n\n**Possible fix**\n\nIn `getRetryOptions`, put the count in the retry options (`retryOptions.retries = retries`) rather than in `requestOptions.retries`. The secondary clients from the injected `getOctokit` would inherit it through `createConfiguredGetOctokit` unchanged.\n\n**Workaround**\n\nLeave `retries` at 0 and build clients with the injected `getOctokit(token, { retry: { enabled: true, retries: 3 } })`. In v9 the plugin is always attached and the merged `retry` options enable it.\n\n**Versions**\n\n- actions/github-script v9.0.0 (d746ffe35508b1917358783b479e04febd2b8f71)\n- @octokit/plugin-retry 8.1.0, @octokit/core 7.0.6, @octokit/request 10.0.8 (from the v9.0.0 package-lock.json)\n- Reproduced with Node 22\n","author":{"url":"https://github.com/pleberre","@type":"Person","name":"pleberre"},"datePublished":"2026-11-04T16:50:05Z","url":"https://github.com/actions/github-script/issues/732"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:10bb05e7-af4c-f126-6a3f-fd23572d9cba
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id996C:1C94F:2228A24:2BCA630:6B01C385
html-safe-nonce2ae28833e15301ee9395995ce4ae96f3ae5c09f7d90f56186b876a7089c6ccd2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTZDOjFDOTRGOjIyMjhBMjQ6MkJDQTYzMDo2QjAxQzM4NSIsInZpc2l0b3JfaWQiOiIzNDI5ODgxNzc5NjczMjE5OTc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb1218ea7e29489e4d3dd330b80d232619593b8b20d95c33213c727ebddd2b758
hovercard-subject-tagissue:6207268144
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/github-script/732/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6abad13a0ec3fc5121ea25e0cd2ec41932b768ff9bc9ee2e7123014c0558d78b/actions/github-script/issues/732
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6abad13a0ec3fc5121ea25e0cd2ec41932b768ff9bc9ee2e7123014c0558d78b/actions/github-script/issues/732
og:image:altDescribe the bug When retries is set, a response with a status listed in retry-exempt-status-codes is still retried, immediately and up to retries times. With retries: 3, a 403, 404 or 422 is sent ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepleberre
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/actions/github-script git https://github.com/actions/github-script.git
octolytics-dimension-user_id44036562
octolytics-dimension-user_loginactions
octolytics-dimension-repository_id205262760
octolytics-dimension-repository_nwoactions/github-script
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id205262760
octolytics-dimension-repository_network_root_nwoactions/github-script
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/actions/github-script/issues/732#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fgithub-script%2Fissues%2F732
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fgithub-script%2Fissues%2F732
Sign uphttps://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%2Fgithub-script
Reloadhttps://github.com/actions/github-script/issues/732
Reloadhttps://github.com/actions/github-script/issues/732
Reloadhttps://github.com/actions/github-script/issues/732
actionshttps://github.com/actions
github-scripthttps://github.com/actions/github-script
Codehttps://github.com/actions/github-script
Issues60 (60)https://github.com/actions/github-script/issues
Pull requests36 (36)https://github.com/actions/github-script/pulls
Discussionshttps://github.com/actions/github-script/discussions
Actionshttps://github.com/actions/github-script/actions
Security and qualityhttps://github.com/actions/github-script/security
Insightshttps://github.com/actions/github-script/insights
https://github.com/actions/github-script
New issuehttps://github.com/login?return_to=https://github.com/actions/github-script/issues/732
New issuehttps://github.com/login?return_to=https://github.com/actions/github-script/issues/732
retries input retries the codes in retry-exempt-status-codes (403/404/422 are sent retries+1 times)https://github.com/actions/github-script/issues/732#top
https://github.com/pleberre
pleberrehttps://github.com/pleberre
on Nov 4, 2026https://github.com/actions/github-script/issues/732#issue-6207268144
octokit/plugin-retry.js#576https://github.com/octokit/plugin-retry.js/issues/576
Sign up for freehttps://github.com/signup?return_to=https://github.com/actions/github-script/issues/732
Sign in to commenthttps://github.com/login?return_to=https://github.com/actions/github-script/issues/732
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.