Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with xbox_presence: Pydantic #102

Open
Sergio-Pedraza opened this issue Feb 1, 2024 · 0 comments
Open

Help with xbox_presence: Pydantic #102

Sergio-Pedraza opened this issue Feb 1, 2024 · 0 comments

Comments

@Sergio-Pedraza
Copy link

when querying for some user batches, one may fail with an error like this:

1 validation error for PresenceBatchResponse 0.devices.0.titles.0.activity Input should be a valid list [type=list_type, input_value={'richPresence': 'Neptune: Story'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.5/v/list_type

I've done nothing but to provide a list of user ids to the xbl_client.presence.get_presence_batch method. There might be something in the validation or the responses that makes the whole batch invalid. Oddly enough, generally a few hours later the request executes successfully.

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

No branches or pull requests

1 participant