OSRS-Environment-Exporter
OSRS-Environment-Exporter copied to clipboard
[BUG] Weird error when downloading cache
What cache were you trying to download? Does this happen with all caches?
I got this same error, but only with 2022-07-27-rev207
, and I got the same error by downloading and extracting that cache manually. I believe there's a problem with that particular archive, not necessarily a bug in this project
EDIT I just confirmed. xteas.json
from 2022-07-27-rev207
is malformed and appears to be the HTML for a 404 error page
@ScoreUnder I think we should handle this more elegantly by showing an error message instead of the stack trace that is shown currently.
Just to say where we are now with this in the latest released version, the error should be slightly clearer, not sure if it's still on the too intimidating side though
Look at openRs2 to download caches I had the same issue, they provide a nice api for it this is my implementation of it https://github.com/osrsquery/OsrsQuery/blob/main/src/main/kotlin/com/query/cache/CacheLoader.kt you could also show all the available caches this way