thesadru / genshinstats

PLEASE USE GENSHIN.PY A python library that can get the stats of Genshin Impact players using Mihoyo's API. PLEASE USE GENSHIN.PY
https://thesadru.github.io/pdoc/genshinstats/
MIT License
267 stars 38 forks source link

get_uid_from_authkey giving -109 error #53

Closed dromzeh closed 2 years ago

dromzeh commented 2 years ago

whenever I try to get the uid using gs.get_uid_from_authkey() it returns back the following:

  File ", line 19, in <module>
    uid = gs.get_uid_from_authkey()
  File "C:\Users\admin\AppData\Local\Programs\Python\Python39\lib\site-packages\genshinstats\wishes.py", line 249, in get_uid_from_authkey
    pull = next(chain.from_iterable(histories), None)
  File "C:\Users\admin\AppData\Local\Programs\Python\Python39\lib\site-packages\genshinstats\wishes.py", line 193, in get_wish_history
    banner_name = get_banner_types(authkey, lang)[banner_type]
  File "C:\Users\admin\AppData\Local\Programs\Python\Python39\lib\site-packages\genshinstats\caching.py", line 31, in inner
    r = func(*args, **kwargs)
  File "C:\Users\admin\AppData\Local\Programs\Python\Python39\lib\site-packages\genshinstats\wishes.py", line 154, in get_banner_types
    banners = fetch_gacha_endpoint(
  File "C:\Users\admin\AppData\Local\Programs\Python\Python39\lib\site-packages\genshinstats\wishes.py", line 148, in fetch_gacha_endpoint
    raise_for_error(data)
  File "C:\Users\admin\AppData\Local\Programs\Python\Python39\lib\site-packages\genshinstats\errors.py", line 113, in raise_for_error
    raise error
genshinstats.errors.GenshinStatsException: -109 Error (app id error)

i have only been having this issue since the 2.3 update went live, and before this used to work just fine, I'm not sure if this is an issue with genshinstats itself or something else. this also happens when adding authkey into gs.get_uid_from_authkey() aswell.

thesadru commented 2 years ago

This bug has been diagnosed by one of our discord members already.

Mihoyo made some reworks in their API, mainly making only 8 characters visible in your game chronicle and preventing authkeys from the support page to be used for wish history.

The solution is to use the authkey found in your log files and abandon the ones from the support page completely.

dromzeh commented 2 years ago

This bug has been diagnosed by one of our discord members already.

Mihoyo made some reworks in their API, mainly making only 8 characters visible in your game chronicle and preventing authkeys from the support page to be used for wish history.

The solution is to use the authkey found in your log files and abandon the ones from the support page completely.

thanks a lot for the quick reply! will try this. appreciated.