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.

PDF.js v2.5.207 (build: 0974d6052) Failed to fetch

See original GitHub issue

Attach (recommended) or Link to PDF file here: http://admin.gaokao8.com/dist/api/public/upload/20201118/5f0d1534a05864b62ccc647d3e4d166f.pdf

Configuration:

  • Web browser and its version: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36
  • Operating system and its version:
  • PDF.js version: PDF.js v2.5.207
  • Is a browser extension: no

Steps to reproduce the problem:

  1. use iframe load viewer.html like <iframe class="qeustion" src="./pdfjs/web/viewer.html?file=http%3A%2F%2Fadmin.gaokao8.com%2Fdist%2Fapi%2Fpublic%2Fupload%2F20201118%5C5f0d1534a05864b62ccc647d3e4d166f.pdf"></iframe>

What is the expected behavior? (add screenshot) can load pdf file success What went wrong? (add screenshot) failed_to_fetch

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8

github_iconTop GitHub Comments

3reactions
Eyxxxxxcommented, Jun 13, 2021

it may confilct with your idm extension if you have one, which is my case.

So have you solved this problem now? Did you uninstall IDM?

Shut down the IDM extension in the browser may help to exhibit the pdf with the pdf viewer normally, which is helpful for me.

0reactions
behnam-iocommented, Dec 11, 2021

Shut down the IDM extension in the browser may help to exhibit the pdf with the pdf viewer normally, which is helpful for me.

I also faced this issue on Mac. Similarly disabling the Xtreme Downloader plugin (Something like IDM) solved the issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix Google Chrome pdf file opening error 'PDF JS Click ...
How to fix Google Chrome pdf file not opening. error message ' PDF JS Click on "Allow access o file URLs" at Chrome://extensions...
Read more >
Error: Failed To Fetch - PDF Plugins For WordPress
Error: Failed to Fetch. You will usually see this error in your browser because your PDF does not sit on the same domain...
Read more >
javascript - pdf.js not loading pdf file
but that didn't work either. My console log states two things: 1) Loading failed for the with source “file:///pdf.js/build/pdf ...
Read more >
Can't Open PDF Files Error Message: NetworkError when ...
But when I'm not on the local network, I can't open the pdf files. I use the https protocol on ... Error: PDF.js...
Read more >
Support Request: ERROR OPEN PDF
( see log file ) screen message= PDF.js v2.5.207 (identifiant de compilation : 0974d6052) Message : Failed to fetch. For example this url=...
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