Open WafuRuns opened 1 year ago
Nevermind, seems like this is an issue for Genshin too. .dailyNote()
seems to give HoyoAPIError: Data is not public for the user
.
Findings after personal testing:
HonkaiStarRail
or GenshinImpact
without using the V1 cookie. The app seems to require both for some reason, yet testing with postman, it only seems like either a V1 cookie or V2 cookie AND the ds value (won't work without it) is enough to access all of these API calls.Hello, I have exactly the same problem and I think I've found the solution. In fact, the regions in the hsr.interface.js file are wrong. For example, I'm on server Europe and the file says "prod_official_euro" when it's actually "prod_official_eur". And for the USA server, strangely it says "prod_official_asia" when it should be "prod_official_usa" I think. I made the change manually for the Europe server and suddenly everything started working.
It seems that while GenshinImpact has everything working properly, for Star Rail, only the daily API works. Once you can something like
hsr.record.records(), hsr.record.characters()
etc., you get aHoyoAPIError: param error
, note that this does not occur for Genshin with the same cookie.