Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Honkai Star Rail record not working #64

Open
WafuRuns opened this issue Jul 2, 2023 · 3 comments
Open

Honkai Star Rail record not working #64

WafuRuns opened this issue Jul 2, 2023 · 3 comments

Comments

@WafuRuns
Copy link

WafuRuns commented Jul 2, 2023

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
Copy link
Author

WafuRuns commented Jul 2, 2023

Nevermind, seems like this is an issue for Genshin too. .dailyNote() seems to give HoyoAPIError: Data is not public for the user.

@WafuRuns
Copy link
Author

WafuRuns commented Jul 3, 2023

Findings after personal testing:

  • It seems that for some reason, this API wrapper needs you to enter more information than necessary for it to function. As an example, you can't initialize let's say 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.
  • The ds seems to reset every day.

@MurasakiNX
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants