Pages on Angular.io fail to load w/ "Too Many Redirects" error
See original GitHub issueDescription
Some angular.io documentation pages fail to load because of a 302 Redirect
loop.
Examples:
- https://angular.io/guide/what-is-angular
- https://angular.io/cli/add
- https://angular.io/guide/forms
- https://angular.io/guide/attribute-directives
- https://angular.io/tutorial/toh-pt0
What is the affected URL?
angular.io/cli/add
Please provide the steps to reproduce the issue
Browser via Direct URL
- Open browser
- Type
angular.io/cli/add
into address bar - Observe error page
Browser via Clicking from Angular.io
- Open browser
- Visit angular.io
- In the top menu, click on “Docs”, be taken to documentation pages.
- In the left documentation menu, click “Reference” then “CLI command reference” then “ng add”
- Observe Angular.io’s error page.
CLI
- Make a request via cURL
$ curl -i https://angular.io/cli/add
HTTP/2 302
cache-control: no-cache
content-security-policy-report-only: require-trusted-types-for 'script'; trusted-types angular angular#bundler angular#unsafe-bypass aio#analytics google#safe; report-uri https://csp.withgoogle.com/csp/angular.io
link: </generated/navigation.json>;rel=preload;as=fetch,</generated/docs/index.json>;rel=preload;as=fetch
location: https://angular.io/cli/add
content-type: text/plain; charset=utf-8
accept-ranges: bytes
date: Sat, 30 Oct 2021 00:20:12 GMT
x-served-by: cache-pao17448-PAO
x-cache: MISS
x-cache-hits: 0
x-timer: S1635553213.513052,VS0,VE122
vary: x-fh-requested-host, accept-encoding
content-length: 41
Redirecting to https://angular.io/cli/add
- Observe that the redirect is to the same page.
Please provide the expected behavior vs the actual behavior you encountered
Expected
The documentation renders
Actual
The webpage renders with
REQUEST FOR DOCUMENT FAILED We are unable to retrieve the “cli/add” page at this time. Please check your connection and try again later.
Please provide a screenshot if possible
https://user-images.githubusercontent.com/597653/139513147-220c99ca-3eb9-42cb-9b15-b4d2e18f043f.mov
Please provide the exception or error you saw
Too many 302 redirects.
The attached video shows the 302s.
Curl used to reproduce HTTP request & response.
`$ curl -i https://angular.io/cli/add`
HTTP/2 302
cache-control: no-cache
content-security-policy-report-only: require-trusted-types-for 'script'; trusted-types angular angular#bundler angular#unsafe-bypass aio#analytics google#safe; report-uri https://csp.withgoogle.com/csp/angular.io
link: </generated/navigation.json>;rel=preload;as=fetch,</generated/docs/index.json>;rel=preload;as=fetch
location: https://angular.io/cli/add
content-type: text/plain; charset=utf-8
accept-ranges: bytes
date: Sat, 30 Oct 2021 00:20:12 GMT
x-served-by: cache-pao17448-PAO
x-cache: MISS
x-cache-hits: 0
x-timer: S1635553213.513052,VS0,VE122
vary: x-fh-requested-host, accept-encoding
content-length: 41
Redirecting to https://angular.io/cli/add
### Is this a browser-specific issue? If so, please specify the device, browser, and version.
```true
No. I was able to reproduce in Chrome in macOS, iOS, and Linux. Additionally I was able to reproduce in Safari on macOS and iOS.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to Fix The ERR_TOO_MANY_REDIRECTS Error - Kinsta
Too many redirects occurred trying to open “domain.com.” This might occur if you open a page that is redirected to open another page...
Read more >Too Many Redirects? ERR_TOO_MANY_REDIRECTS and ...
“ERR_TOO_MANY_REDIRECTS” is an error message that appears when a website creates a redirect loop. One redirect leads to another and creates a ...
Read more >Troubleshooting: Too Many Redirects - Liquid Web
The error "too many redirects" means that the website keeps being redirected between different addresses in a way that will never complete.
Read more >How to Fix the Too Many Redirects Error Message - Help Center
Check your base/home URLs in the database as well. Go to your Control Panel and under the database tab you can find a...
Read more >What is ERR_TOO_MANY_REDIRECTS and how to fix it
The error too many redirects is shown when the browser can't establish a connection between the initial page and the destination page in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Now it works very well.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.