thesadru/genshinstats

get_uid_from_authkey giving -109 error

dromzeh opened this issue · 2 comments

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.

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.

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.