Skip to content

Getting ValidationError when fetching user #50

Description

@bd-charu

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions