Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

Getting ValidationError when fetching user #50

Open
bd-charu opened this issue Aug 27, 2023 · 2 comments
Open

Getting ValidationError when fetching user #50

bd-charu opened this issue Aug 27, 2023 · 2 comments

Comments

@bd-charu
Copy link

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)
@kuronekouwu
Copy link
Owner

You try install via GitHub?
pip3 install git+https://github.com/mrwan200/EnkaNetwork.py

@bd-charu
Copy link
Author

no I'm not install using git. I use pip install enkanetwork.py, but I will try git if it works

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants