OSRS-Environment-Exporter icon indicating copy to clipboard operation
OSRS-Environment-Exporter copied to clipboard

[BUG] Weird error when downloading cache

Open HerbRSPS opened this issue 2 years ago • 5 comments

image

HerbRSPS avatar Jul 30 '22 21:07 HerbRSPS

What cache were you trying to download? Does this happen with all caches?

ConnorDY avatar Jul 30 '22 23:07 ConnorDY

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

h0dgep0dge avatar Jul 31 '22 06:07 h0dgep0dge

@ScoreUnder I think we should handle this more elegantly by showing an error message instead of the stack trace that is shown currently.

ConnorDY avatar Aug 12 '22 03:08 ConnorDY

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

image

ScoreUnder avatar Aug 21 '22 13:08 ScoreUnder

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

Mark7625 avatar Aug 22 '22 00:08 Mark7625