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.

"Redirected too many times error" when attempting to view all pdf files via test server on Windows

See original GitHub issue

Attach (recommended) or Link to PDF file here: None

Configuration:

  • Web browser and its version: Chrome v75
  • Operating system and its version: Windows 10, 64-bit
  • PDF.js version: Extension build number 213
  • Is a browser extension: No

Steps to reproduce the problem:

  1. gulp server
  2. Open Chrome and open URL http://localhost:8888/test/pdfs/?frame

What is the expected behavior? (add screenshot) To be able to view all test pdf files in a pane.

What went wrong? (add screenshot) image

The URL entered changed from http://localhost:8888/test/pdfs**/**?frame to http://localhost:8888/test/pdfs**//**?frame, followed by a redirected too many times error.

A stack trace, based on preliminary debugging is below,

$ gulp server
[22:29:23] Working directory changed to ~\pdf.js
[22:29:26] Using gulpfile ~\pdf.js\gulpfile.js
[22:29:26] Starting 'server'...

### Starting local server
Server running at http://localhost:8888/
Trace: Redirection!
    at statFile (C:\Users\ragha\pdf.js\test\webserver.js:149:17)
    at FSReqWrap.oncomplete (fs.js:154:5)
Trace: Redirection!
    at statFile (C:\Users\ragha\pdf.js\test\webserver.js:149:17)
    at FSReqWrap.oncomplete (fs.js:154:5)
Trace: Redirection!
    at statFile (C:\Users\ragha\pdf.js\test\webserver.js:149:17)
    at FSReqWrap.oncomplete (fs.js:154:5)
Trace: Redirection!
    at statFile (C:\Users\ragha\pdf.js\test\webserver.js:149:17)
    at FSReqWrap.oncomplete (fs.js:154:5)
Trace: Redirection!
    at statFile (C:\Users\ragha\pdf.js\test\webserver.js:149:17)
    at FSReqWrap.oncomplete (fs.js:154:5)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
timvandermeijcommented, Jun 27, 2019

Works for me on Arch Linux. After gulp server I get the page with the panel on the right. If I click one of the PDF files, it loads in the left panel.

0reactions
timvandermeijcommented, Jun 30, 2019

Yes, feel free to make a patch for this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix The ERR_TOO_MANY_REDIRECTS Error - Kinsta
What is the ERR_TOO_MANY_REDIRECTS Error? The ERR_TOO_MANY_REDIRECTS is, as the error suggests, caused by too many redirects, resulting in a redirect loop.
Read more >
How to Troubleshoot ERR_TOO_MANY_REDIRECTS {8 Fixes}
This tutorial explains the possible steps for fixing the ERR_TOO_MANY_REDIRECTS error and lists the possible causes for the error.
Read more >
Redirected You Too Many Times: How To Fix This Error
It means your site got stuck in endless redirect loops and, as a result, can't be loaded. Knowing how to troubleshoot and fix...
Read more >
How to Fix Error Too Many Redirects in Google Chrome?
The redirection error could be caused by wrong time and date settings on your PC. Check the computer date and time and adjust...
Read more >
Too Many Redirects? ERR_TOO_MANY_REDIRECTS and ...
The first thing you can try is clearing the cache and cookies in your browser. Sometimes a too many redirects error can occur...
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