-
Notifications
You must be signed in to change notification settings - Fork 5
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
500 Internal Server Error when trying to retreive some items #11
Comments
Hello, sorry for the issues, the archivelab instance should continue working for at least a grace period as we get the new version set up, so we're looking into it. |
Yes I tried it with a couple of different IDs but I couldn't figure out which characters were causing the problem. Thanks so much for making this service available!! |
The archivelab service has been restored, sorry about the outage. And we'll still keep looking into the manifest issue, thanks for giving us the example |
So for the couple of places where we use Specifically, a fix for this is to change lines 384-385 as follows: Existing: imgId = f"{zipFile}/{fileName}".replace('/','%2f')
imgURL = f"{image_server}/3/{imgId}" New version: imgId = f"{zipFile}/{fileName}"
imgURL = f"{image_server}/3/{quote(imgId, safe='()')}" Also requires adding We should do the same for the similar functionality on lines 269 and 270 -- CCing @digitaldogsbody in case you are incorporating other changes in the near future, otherwise I can do a PR on this soon once Rob's changes are backfilled |
Thanks Josh - I'd gone with the simple replace approach because I wasn't sure about the Cantaloupe handling of other characters that might appear in an identifier if they got URL-encoded (although I think Maybe we can try and make a list of "awkward" identifiers to add to a test? |
Good call -- I'll find some more, but here's (seemingly) another example: |
I should say, the identifiers for those themselves are not "awkward", but I believe they all point to image files that have non-latin characters in the filenames |
Note this affects filenames not identifiers. Mike to add it to the pull request. Josh to add a unit test. |
The quoting fix has resolved all of these except |
Hello,
Since the unofficial iiif.archivelab.org API seems to have been shut down, I'm trying to migrate to iiif.archive.org. But some items don't seem to work, and I can't figure out why. For example:
https://iiif.archive.org/iiif/0-0-1/manifest.json
is fine, buthttps://iiif.archive.org/iiif/0-._20211206/manifest.json
doesn't work.Thanks!
The text was updated successfully, but these errors were encountered: