bio-guoda / preston

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

intermittent unexpected error when attempting to retrieve https://linker.bio/hash://md5/7d62417b5b689ed91dcd25f10c9c2132 #291

Closed jhpoelen closed 1 month ago

jhpoelen commented 1 month ago
HTTP ERROR 500 java.lang.RuntimeException: java.io.IOException: problem retrieving [hash://md5/7d62417b5b689ed91dcd25f10c9c2132]
URI:    /hash://md5/7d62417b5b689ed91dcd25f10c9c2132
STATUS: 500
MESSAGE:    java.lang.RuntimeException: java.io.IOException: problem retrieving [hash://md5/7d62417b5b689ed91dcd25f10c9c2132]
SERVLET:    bio.guoda.preston.server.ContentServlet-564718df
CAUSED BY:  java.lang.RuntimeException: java.io.IOException: problem retrieving [hash://md5/7d62417b5b689ed91dcd25f10c9c2132]
CAUSED BY:  java.io.IOException: problem retrieving [hash://md5/7d62417b5b689ed91dcd25f10c9c2132]
CAUSED BY:  bio.guoda.preston.store.DereferenceException: failed to dereference [hash://md5/7d62417b5b689ed91dcd25f10c9c2132]
CAUSED BY:  bio.guoda.preston.store.DereferenceException: failed to dereference [hash://md5/7d62417b5b689ed91dcd25f10c9c2132]
CAUSED BY:  java.lang.IllegalArgumentException: URI scheme is not "file"
jhpoelen commented 1 month ago

Minutes later, the content was retrieved as expected.

jhpoelen commented 1 month ago

Implemented change to make sure that only file urls are resolved by the file dereferencer.