René's URL Explorer Experiment


Title: lab-ops-hub: redirect policy diverges between crawlers — Worker fallback caps at 5 hops and follows any 3xx, container follows 10 hops and only 301/302/303/307/308 · Issue #571 · developing-today/code · GitHub

Open Graph Title: lab-ops-hub: redirect policy diverges between crawlers — Worker fallback caps at 5 hops and follows any 3xx, container follows 10 hops and only 301/302/303/307/308 · Issue #571 · developing-today/code

X Title: lab-ops-hub: redirect policy diverges between crawlers — Worker fallback caps at 5 hops and follows any 3xx, container follows 10 hops and only 301/302/303/307/308 · Issue #571 · developing-today/code

Description: Summary The two lab-ops-hub crawlers disagree on redirect policy, so the same public URL can succeed via one crawler and fail via the other — and the Worker fallback (which exists to stand in when the container is unavailable) does not r...

Open Graph Description: Summary The two lab-ops-hub crawlers disagree on redirect policy, so the same public URL can succeed via one crawler and fail via the other — and the Worker fallback (which exists to stand in when ...

X Description: Summary The two lab-ops-hub crawlers disagree on redirect policy, so the same public URL can succeed via one crawler and fail via the other — and the Worker fallback (which exists to stand in when ...

Opengraph URL: https://github.com/developing-today/code/issues/571

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"lab-ops-hub: redirect policy diverges between crawlers — Worker fallback caps at 5 hops and follows any 3xx, container follows 10 hops and only 301/302/303/307/308","articleBody":"## Summary\n\nThe two lab-ops-hub crawlers disagree on redirect policy, so the same public URL can succeed via one crawler and fail via the other — and the Worker fallback (which exists to stand in when the container is unavailable) does not reproduce the container's behaviour.\n\n## Evidence (verified 2026-10-22, on main `7a9ac873`)\n\n**Redirect-count limit**\n- Worker fallback: `fetchFollowingValidatedRedirects` defaults to `maxRedirects = 5` (`pkgs/lab-ops-hub/src/lib.ts:204`, error at lib.ts:216-218).\n- Container: `_ValidatingRedirectHandler` (`pkgs/lab-ops-hub/container/app.py:389-396`) subclasses urllib's `HTTPRedirectHandler` and inherits its defaults: `max_redirections = 10`, `max_repeats = 4`.\n\n**Redirect status codes**\n- Worker fallback follows *any* 3xx response that carries a `Location` header (lib.ts: `res.status >= 300 && res.status \u003c 400`).\n- urllib's handler only treats 301, 302, 303, 307 and 308 as redirects; any other 3xx raises `HTTPError`, which the container's `do_POST` surfaces as a 502.\n\n**Reproduction (both sides run this run)**\n- A 7-hop chain of 302s between public URLs, ending in 200:\n  - Worker fallback (real `fetchFollowingValidatedRedirects` under `bun test` with a scripted fetcher): `Error: too many redirects (more than 5)`.\n  - Container redirect handler (urllib opener against a local server): `200`.\n- A single 300 Multiple Choices response with a `Location` pointing at a public 200 page:\n  - Worker fallback: follows it, returns `200`.\n  - Container: `HTTPError 300` → `/crawl` returns 502.\n\n## Why it matters\n\n`/api/crawl` tries the container first and silently falls back to the Worker on any container error (src/index.ts `crawlWithContainer` / catch → `crawlFallback`), recording only `source` in the result. Redirect-heavy public pages (shorteners, AMP/print chains, locale negotiation) therefore crawl or fail depending on which backend happened to serve the request, and a 6–10-hop page that the container handles fine hard-fails whenever the container is cold or down — exactly when the fallback is supposed to be equivalent. This is the same class of Worker/container divergence fixed for URL validation (#460, #474, #481, #500, #529, #567) and extraction (#569); redirect policy is the remaining unaligned piece.\n\n## Acceptance criteria\n\n- One redirect policy stated in one place both implementations follow: a single hop limit and a single set of followed status codes (suggested: align the Worker to the container's urllib semantics — 10 hops, codes 301/302/303/307/308 — or pick 5 deliberately and enforce it in the container handler too; either way the two must match, including a repeat/loop rule equivalent to urllib's `max_repeats`).\n- The container handler sets its limits explicitly rather than relying on urllib defaults, so a Python/urllib default change cannot silently re-open the divergence.\n- Tests on both sides pin the shared policy: a chain one hop over the limit fails identically, a chain at the limit succeeds identically, and a non-followed 3xx (e.g. 300/304 with `Location`) is handled identically (TS tests in `pkgs/lab-ops-hub/test/lib.test.ts`, Python tests alongside `test/test_container_validate.py` or a new container redirect test file).\n- Per-hop SSRF re-validation of every redirect target is unchanged on both sides (#460).\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-22T08:22:52Z","url":"https://github.com/developing-today/code/issues/571"}

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:bb7e7c1d-276f-a0dd-1f3d-2fff331e132a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBCF8:3373A3:D2C16F:10F2840:6B064149
html-safe-noncef79aa2d9ba7654738568372614186f0d568ea12e38d3986fefabdbf4b7b0feeb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0Y4OjMzNzNBMzpEMkMxNkY6MTBGMjg0MDo2QjA2NDE0OSIsInZpc2l0b3JfaWQiOiI0ODk2MjYwOTg0MDY4Nzg0NDU3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac3d90699f71f86f27d314ed9ef465917c30b8a71e4c35d9357655fadc65e7d683
hovercard-subject-tagissue:5975758523
github-keyboard-shortcutsrepository,issues,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/developing-today/code/571/issue_layout
twitter:imagehttps://opengraph.githubassets.com/27df8b51978cb8cc0811ed240641c1da6a232781749b3975803188ef3164acc9/developing-today/code/issues/571
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/27df8b51978cb8cc0811ed240641c1da6a232781749b3975803188ef3164acc9/developing-today/code/issues/571
og:image:altSummary The two lab-ops-hub crawlers disagree on redirect policy, so the same public URL can succeed via one crawler and fail via the other — and the Worker fallback (which exists to stand in when ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
None1bff4f6bfaa96dc9c42cacf315424c24ebb548b06142ced5e3aaccb2a42dd652
turbo-cache-controlno-preview
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
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
releaseac613d3698d3d8565651455086e1f74da07bf277
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/571#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F571
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%2Fdeveloping-today%2Fcode%2Fissues%2F571
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=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/issues/571
Reloadhttps://github.com/developing-today/code/issues/571
Reloadhttps://github.com/developing-today/code/issues/571
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1.1k (1.1k)https://github.com/developing-today/code/issues
Pull requests173 (173)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
https://github.com/developing-today/code
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/571
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/571
lab-ops-hub: redirect policy diverges between crawlers — Worker fallback caps at 5 hops and follows any 3xx, container follows 10 hops and only 301/302/303/307/308https://github.com/developing-today/code/issues/571#top
https://github.com/dezren39
effort/mhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fm%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
meta/enrichedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22meta%2Fenriched%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
source/pr-diff-reviewhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fpr-diff-review%22
status:donehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Adone%22
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 22, 2026https://github.com/developing-today/code/issues/571#issue-5975758523
#460https://github.com/developing-today/code/issues/460
#474https://github.com/developing-today/code/issues/474
#481https://github.com/developing-today/code/issues/481
#500https://github.com/developing-today/code/issues/500
#529https://github.com/developing-today/code/issues/529
#567https://github.com/developing-today/code/issues/567
#569https://github.com/developing-today/code/issues/569
lab-ops-hub: Worker-fallback crawler follows redirects to non-public targets (no redirect validation, unlike the container) #460https://github.com/developing-today/code/issues/460
Nexthttps://github.com/developing-today/code/issues/571?timeline_page=1
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 22, 2026https://github.com/developing-today/code/issues/571#event-33929026812
dezren39https://github.com/dezren39
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
source/pr-diff-reviewhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fpr-diff-review%22
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
effort/mhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fm%22
meta/enrichedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22meta%2Fenriched%22
on Oct 26, 2026https://github.com/developing-today/code/issues/571#event-34247937045
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 26, 2026https://github.com/developing-today/code/issues/571#issuecomment-6413753207
#460https://github.com/developing-today/code/issues/460
#474https://github.com/developing-today/code/issues/474
#481https://github.com/developing-today/code/issues/481
#500https://github.com/developing-today/code/issues/500
#529https://github.com/developing-today/code/issues/529
#567https://github.com/developing-today/code/issues/567
#569https://github.com/developing-today/code/issues/569
#588https://github.com/developing-today/code/issues/588
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 26, 2026https://github.com/developing-today/code/issues/571#issuecomment-6413819208
dezren39https://github.com/dezren39
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
on Nov 1, 2026https://github.com/developing-today/code/issues/571#event-34808407543
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/571#issuecomment-6551905164
lab-ops-hub: redirect policy diverges between crawlers — Worker fallback caps at 5 hops and follows any 3xx, container follows 10 hops and only 301/302/303/307/308 #571https://github.com/developing-today/code/issues/571
lab-ops-hub: redirect policy diverges between crawlers — Worker fallback caps at 5 hops and follows any 3xx, container follows 10 hops and only 301/302/303/307/308 #571https://github.com/developing-today/code/issues/571
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/571#issuecomment-6551915366
lab-ops-hub: redirect policy diverges between crawlers — Worker fallback caps at 5 hops and follows any 3xx, container follows 10 hops and only 301/302/303/307/308 #571https://github.com/developing-today/code/issues/571
lab-ops-hub: redirect policy diverges between crawlers — Worker fallback caps at 5 hops and follows any 3xx, container follows 10 hops and only 301/302/303/307/308 #571https://github.com/developing-today/code/issues/571
lab-ops-hub: redirect failures are crawl failures, not 302 results #578https://github.com/developing-today/code/pull/578
lab-ops-hub: container crawler records redirect loops and over-limit chains as successful 302 crawls — PR #573's blanket HTTPError catch swallows urllib redirect errors #576https://github.com/developing-today/code/issues/576
lab-ops-hub: container crawler records redirect loops and over-limit chains as successful 302 crawls — PR #573's blanket HTTPError catch swallows urllib redirect errors #576https://github.com/developing-today/code/issues/576
lab-ops-hub: redirect policy diverges between crawlers — Worker fallback caps at 5 hops and follows any 3xx, container follows 10 hops and only 301/302/303/307/308 #571https://github.com/developing-today/code/issues/571
dezren39https://github.com/dezren39
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
on Nov 1, 2026https://github.com/developing-today/code/issues/571#event-34808450170
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/571#issuecomment-6560356498
lab-ops-hub: redirect policy diverges between crawlers — Worker fallback caps at 5 hops and follows any 3xx, container follows 10 hops and only 301/302/303/307/308 #571https://github.com/developing-today/code/issues/571
lab-ops-hub: redirect policy diverges between crawlers — Worker fallback caps at 5 hops and follows any 3xx, container follows 10 hops and only 301/302/303/307/308 #571https://github.com/developing-today/code/issues/571
developing-todayhttps://github.com/apps/developing-today
status:in-reviewhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Ain-review%22
on Nov 1, 2026https://github.com/developing-today/code/issues/571#event-34840550809
dezren39https://github.com/dezren39
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
on Nov 1, 2026https://github.com/developing-today/code/issues/571#event-34840575395
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/571#issuecomment-6560433256
lab-ops-hub: redirect policy diverges between crawlers — Worker fallback caps at 5 hops and follows any 3xx, container follows 10 hops and only 301/302/303/307/308 #571https://github.com/developing-today/code/issues/571
fix(lab-ops-hub): align redirect policies (#571) #3772https://github.com/developing-today/code/pull/3772
fix(lab-ops-hub): align redirect policies (#571) #3772https://github.com/developing-today/code/pull/3772
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/571#event-34842456230
Merge pull request #3772 from developing-today/queue/4839-571-redirec…https://github.com/developing-today/code/commit/5760ac4ef8185e11beab8e2acfaf0f5f4e224875
#3772https://github.com/developing-today/code/pull/3772
5760ac4https://github.com/developing-today/code/commit/5760ac4ef8185e11beab8e2acfaf0f5f4e224875
developing-todayhttps://github.com/apps/developing-today
status:donehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Adone%22
status:in-reviewhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Ain-review%22
on Nov 1, 2026https://github.com/developing-today/code/issues/571#event-34842457447
developing-todayhttps://github.com/apps/developing-today
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 1, 2026https://github.com/developing-today/code/issues/571#event-34842459259
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/571
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/571
dezren39https://github.com/dezren39
effort/mhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fm%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
meta/enrichedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22meta%2Fenriched%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
source/pr-diff-reviewhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fpr-diff-review%22
status:donehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Adone%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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.