question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pages on Angular.io fail to load w/ "Too Many Redirects" error

See original GitHub issue

Description

Some angular.io documentation pages fail to load because of a 302 Redirect loop.

Examples:

What is the affected URL?

angular.io/cli/add

Please provide the steps to reproduce the issue

Browser via Direct URL

  1. Open browser
  2. Type angular.io/cli/add into address bar
  3. Observe error page

Browser via Clicking from Angular.io

  1. Open browser
  2. Visit angular.io
  3. In the top menu, click on “Docs”, be taken to documentation pages.
  4. In the left documentation menu, click “Reference” then “CLI command reference” then “ng add”
  5. Observe Angular.io’s error page.

CLI

  1. 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
  1. 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:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pstricks-fanscommented, Oct 30, 2021

Now it works very well.

0reactions
angular-automatic-lock-bot[bot]commented, Dec 3, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found