ukwa / ukwa-access-api

An application to wrap up APIs for accessing UKWA content.
Apache License 2.0
1 stars 2 forks source link

Screenshot service no longer passing date through correctly. #34

Open anjackson opened 2 years ago

anjackson commented 2 years ago

From PyWB, we have image URLs like:

https://www.webarchive.org.uk/api/iiif/2/urn:pwid:webarchive.org.uk:1995:04:18T15:56:00Z:page:http%3A%2F%2Fportico.bl.uk%2F/0,0,1024,512/600,/0/default.png

But this is not showing the 1995 version of the site, but rather the most recent version. So the timestamp isn't making it through.

anjackson commented 2 years ago

It's weird though, as some timestamps to seem to work as expected. e.g. even just an hour different, say.

anjackson commented 2 years ago

Hmmm,

19950630120000

{"Accept-Datetime":"Fri, 30 Jun 1995 12:12:00 GMT"}
https://www.webarchive.org.uk/api/iiif/2/urn:pwid:webarchive.org.uk:1995:04:20T15:56:00Z:page:http%3A%2F%2Fportico.bl.uk%2F/0,0,1024,512/600,/0/default.png
...
 {"Accept-Datetime":"Thu, 20 Apr 1995 15:15:00 GMT"}

The seconds are not being set at all, oddly. Dates look right though?

Seems some cached version was clogging things up. Took a while to remove the clag.

anjackson commented 2 years ago

So, the main problem was cached images from an earlier, messed-up version. There seems to be a remaining problem with seconds not being send through (the hour is repeated instead, I think).