bio-guoda / preston

a biodiversity dataset tracker
MIT License
26 stars 1 forks source link

case of the missing bunny #293

Closed jhpoelen closed 4 months ago

jhpoelen commented 4 months ago

in conversation with @katjaschulz @jhammock @Jegelewicz @themerekat , we found that the bunny referenced in https://linker.bio was missing.

Oh no!

https://linker.bio/hash://sha1/86fa30f32d9c557ea5d2a768e9c3595d3abb17a produced a 4xx error code.

curl -I https://linker.bio/hash://sha1/86fa30f32d9c557ea5d2a768e9c3595d3abb17a
HTTP/2 400 
date: Wed, 10 Jul 2024 14:50:16 GMT
access-control-allow-origin: *
access-control-allow-methods: GET, OPTIONS
access-control-allow-headers: DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range
access-control-expose-headers: Content-Length,Content-Range
cf-cache-status: DYNAMIC
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=eoUbIrJEwejHLlGnYqOvehCIxsaTriMZlgioFknpaaKORql98ZZtK2WwD%2F8S4DjWa4eo6YSuQSNXcaei9dC4VcjKhs4ZSNWzA0IqWP%2FE8CoUj7Xb0L8szPBzAYKX"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 8a115d7c7c084ca8-MSP
alt-svc: h3=":443"; ma=86400

image

jhpoelen commented 4 months ago

I found that the bunny is still there . . .

curl --silent "https://upload.wikimedia.org/wikipedia/commons/1/1f/Oryctolagus_cuniculus_Rcdo.jpg"\
 | sha1sum
86fa30f32d9c557ea5d2a768e9c3595d3abb17a2  -

as found via -

https://commons.wikimedia.org/wiki/File:Oryctolagus_cuniculus_Rcdo.jpg

so, more work is needed to figure out why Preston was unable to lookup this image currently.

jhpoelen commented 4 months ago

Strangely, another wikimedia common image can be retrieved by their sha1 via:

https://linker.bio/hash://sha1/b12eb7f6b43a3cc1eefc54db90ec5ae1504c3f17

image

originating from

https://upload.wikimedia.org/wikipedia/commons/c/ce/Johann_Adam_Klein_-_Cossacks_Eat_a_Meal_in_the_Field_%281819%29%2C_Thorvaldsens_Museum_E721%2C6.jpg

jhpoelen commented 4 months ago

I found the cause - the sha1 hash was not complete due to a copy paste issue. Oef!

instead of https://linker.bio/hash://sha1/86fa30f32d9c557ea5d2a768e9c3595d3abb17a

the url should have been:

https://linker.bio/hash://sha1/86fa30f32d9c557ea5d2a768e9c3595d3abb17a2

Clearly, the error messages could improve. . .

image