vermaysha / hoyoapi

HoYoAPI is an unofficial API Wrapper library developed to facilitate communication with the official HoYoLab API.
https://vermaysha.github.io/hoyoapi/
MIT License
63 stars 14 forks source link

Honkai Star Rail record not working #64

Open WafuRuns opened 1 year ago

WafuRuns commented 1 year ago

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 a HoyoAPIError: param error, note that this does not occur for Genshin with the same cookie.

WafuRuns commented 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.

WafuRuns commented 1 year ago

Findings after personal testing:

MurasakiNX commented 12 months ago

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.