Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF Viewer Error Unexpected server response #1571

Closed
DonRichards opened this issue Jul 28, 2020 · 4 comments
Closed

PDF Viewer Error Unexpected server response #1571

DonRichards opened this issue Jul 28, 2020 · 4 comments
Labels
Status: Can’t reproduce Cannot be reproduced. Usually applied before the issue is closed. Type: question asks for support (asks a question)

Comments

@DonRichards
Copy link
Member

Unexpected server response.
PDF.js v2.0.943 (build: dc98bf76)
Message: Unexpected server response (500) while retrieving PDF "http://localhost:8000/_flysystem/fedora/2020-07/tennessee-alumnus.-volume-92-issue-1-2012-winter-alumnus_1507303279.pdf".

Tried renaming the file and replacing the PDF in case the filename was causing an issue but had the same result. This is happening on my local VM (islandora_playbook) and my AWS server (isle-dc).

This is my local VM
Screen Shot 2020-07-28 at 8 02 20 AM

This is ISLE-DC
isle-pdf-error

@mjordan
Copy link
Contributor

mjordan commented Jul 28, 2020

Anything useful for that 500 response in either the drupal or fedora error logs? Sorry, I don't know off the top of my head where the fedora error logs are but others would. Can you share (privately if you want) the PDF so others can see if the problem is specific to the PDF?

@rosiel
Copy link
Member

rosiel commented Aug 5, 2020

(taking notes here from the committers call, relating to troubleshooting)

  • renaming the pdf to example.pdf did not work;
  • is the file in Fedora? (if not, could there be a 404 getting masked by flysystem? If that's happening, that seems like a problem on its own). In this case, he file can be accessed from Fedora directly.

Hmm.

@elizoller
Copy link
Member

i have a vagrant setup (on the ubuntu basebox) from a few weeks ago and uploaded and viewed pdf in pdfjs without problem. then i spun up a vagrant vm with the islandora basebox and created an item and uploaded a pdf and it also displayed correctly in pdfjs. i suspect there may be something going on in your environment? i'd recommend looking through some of the logs - like are there js console errors? is that file directly reachable at the filesystem url (outside of pdfjs)? is the file reachable directly in fedora at something like localhost:8080/fcrepo/rest/2020-07/...
i don't have an up and running isle set up, but i suspect that's a very different issue (based on the screenshots)

@kstapelfeldt kstapelfeldt added Type: question asks for support (asks a question) Status: Can’t reproduce Cannot be reproduced. Usually applied before the issue is closed. and removed Support labels Sep 25, 2021
@kstapelfeldt
Copy link
Member

If this is still an issue, please re-open with additional steps to reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Can’t reproduce Cannot be reproduced. Usually applied before the issue is closed. Type: question asks for support (asks a question)
Projects
None yet
Development

No branches or pull requests

5 participants