genshin.py icon indicating copy to clipboard operation
genshin.py copied to clipboard

Add cn tests

Open thesadru opened this issue 2 years ago • 4 comments

I have cn cookies but I still probably cannot fix issues with cn unless someone tells me how. Dunno how useful it would be.

thesadru avatar Nov 13 '22 13:11 thesadru

It is now very difficult to test on cn because the cn api now has captcha. If the server determines any abnormal behavior on an account, most apis will be unusable and return 1034 status code (which requires passing geetest). and even if it passes the captcha, the normal status only last about half a day.

luoshuijs avatar Nov 14 '22 04:11 luoshuijs

We currently don't know how "abnormal behavior" is defined. But we may be able to reduce the chance of running into the issue by:

  1. using the latest DS_SALT and User-Agent, and
  2. reduce the frequency of sending request to their API

luoshuijs avatar Nov 14 '22 05:11 luoshuijs

I don't think it is practical to actually defeat geetest automatically.

Btw I have found an interesting header(X-Rpc-Device_id) in mobile hoyolab application.

I believe this header is somehow related to abnormal traffic detection, which we don't send this header at all.

BachelorForever avatar Nov 28 '22 09:11 BachelorForever

It might be a decent idea to add a bunch of non-essential query parameters and headers provided they are explicitly shown as non-essential in the code.

thesadru avatar Nov 28 '22 10:11 thesadru