-
Notifications
You must be signed in to change notification settings - Fork 57
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
Zenless Zone Zero Login returns error #52
Comments
The same goes for me. I'm running a script for two accounts, and get 活动已结束 (-500012) on first account and 操作频繁,请稍后再试 on second account. |
+1 they probably changed the endpoint, i'll try looking at it |
After a quick network inspect, the endpoint indeed changed to |
So, it's necessary to declare and use special header for zzz? |
First of all big shoutout to @rounak-codes for opening this issue and @Chillrend for all the extra details for solving the problem. The code now requires a specific set of headers for ZZZ and here's how you need to do your requests before I PR. Change your check out url for ZZZ to This will break other games but ZZZ will work again. |
I would appreciate testing of my PR |
Thanks @WiLuX-Source, I will try your PR on my script asap. |
Same thing started for HSR |
HSR worked fine for me just 1 hour ago. |
HSR still works fine. |
Hm, maybe they are rolling those changes in order for specific regions / accounts. Anyway I just copied your pr and updated for myself. |
I created that PR to be able to change headers fast without going in too much detail. Glad it helped you. |
Updated code to handle game-specific headers
just add
before const options to add extra headers in header json |
Yours approach is fine but |
@cptmacp I prefer my option better since someone who's using this project might not know coding and you can just tell them to append the header. Currently I have no issues checking out. If I have I'll just add a simple 1 line change and I am done. |
Also your approach might not work if users checks out at the same time when using both star rail and zzz correct me If I am wrong. |
You are right, only the last truthy case will work. The best way either to convert urlDict into objects and use switch or use Map. Too much work refactoring one simple script for no reason tho. |
Update HSR still works fine. At least in my region(Europe) |
Can confirm HSR still works fine in my region as well (ASIA) , Thanks to @WiLuX-Source , @cptmacp and @Chillrend for the fix. |
I am keeping this as open in case someone needs guidance in the future or endpoints are changed. Also , since canaria is MIA , without the merge , new users are bound to run into this issue. |
@rounak-codes please accept my pr. It only needs 1 review to be merged. |
If @canaria3406 is inactive we should probably fork the repo and upstream everything into the forked repo. |
No coder here, but pretty much tried to follow the thread to letter, HSR gets broken (europe) , tried to add luna/"hkrpg"/os/ (without quotes) in the url too as i thought it might be a troubleshoot. I'm using the discord version of the script if that makes a difference. Can't have both, either hsr gets broken or ZZZ. I followed this instruction #52 (comment) , heck even redid the script copy paste (the bottom most discord ping) omitting the telegram stuff with discord from the original |
Try #55 |
worked! atleast once with manual execution, lets see if it'll hold up! Couldn't figure out those headers on my own :) |
Try code from cptmacp, it's worked with ZZZ but not work with HSR |
This is what happens when you don't refactor the code and use a simple if statement when the change is needed. |
As #52 (comment) commented HSR was needed 'x-rpc-signgame' as 'hkrpg' and it was working in some regions You can comment it out and check |
Hey guys! Just in case you are interested or when OP stop maintaining the script, I am actively maintaining this and adding new features such as pinging each discord users and pretty output (it also goes red when there's an error). I am also fixing issues encountered ASAP. But I need help maintain the other languages and telegram scripts. |
No one should ever share their hoyolab token with another person. I hope they are close friend of yours. |
Yep. They're all my friends. It's just that some people started forking mine so I did share it.
|
Nice promotion both of you. |
Do not use this thread for promotion. If you have any issues , ask about it , if you have a better code , mention the code and initiate a PR. |
After attempting to login or run the script , ZZZ login returns the following message in discord via webhook and login does not reflect in the login webpage. All other games' login is working as intended.
The text was updated successfully, but these errors were encountered: