Getting ValidationError when fetching user
Opened this issue · 2 comments
bd-charu commented
for some UIDs (including mine uid=610976938
), I'm getting the error:
ValidationError(model='EnkaNetworkResponse', errors=[{'loc': ('owner', 'profile', 'level'), 'msg': 'value is not a valid enumeration member; permitted: 0, 1, 2', 'type': 'type_error.enum', 'ctx': {'enum_values': [<ProfileRank.TIER_1: 0>, <ProfileRank.TIER_2: 1>, <ProfileRank.TIER_3: 2>]}}])
I think it happening only when user has enka.network profile. this is my code, thank you:
async with client:
response = await client.fetch_user_by_uid(uid)
print(response)
mrwan2546 commented
You try install via GitHub?
pip3 install git+https://github.com/mrwan200/EnkaNetwork.py
bd-charu commented
no I'm not install using git. I use pip install enkanetwork.py
, but I will try git if it works