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

API returns 500 on sport calendar #99

Closed
dantetemplar opened this issue Oct 23, 2024 · 0 comments
Closed

API returns 500 on sport calendar #99

dantetemplar opened this issue Oct 23, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@dantetemplar
Copy link
Member

Describe the bug

api-1  |   File "/code/src/modules/ics/routes.py", line 157, in get_sport_current_user_schedule
api-1  |     ical_bytes = await get_personal_sport_ics(user)
api-1  |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1  |   File "/code/src/modules/ics/utils.py", line 212, in get_personal_sport_ics
api-1  |     trainings = type_adapter.validate_python(response.json())
api-1  |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1  |   File "/opt/pysetup/.venv/lib/python3.12/site-packages/pydantic/type_adapter.py", line 135, in wrapped
api-1  |     return func(self, *args, **kwargs)
api-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1  |   File "/opt/pysetup/.venv/lib/python3.12/site-packages/pydantic/type_adapter.py", line 366, in validate_python
api-1  |     return self.validator.validate_python(object, strict=strict, from_attributes=from_attributes, context=context)
api-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1  | pydantic_core._pydantic_core.ValidationError: 1 validation error for list[Training]
api-1  | 110.extendedProps.training_class
api-1  |   Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
api-1  |     For further information visit https://errors.pydantic.dev/2.9/v/string_type

Reproduction

  1. Open your dashboard and you will not see any sport check-in because of 500

Screenshots / Additional context

No response

@dantetemplar dantetemplar added the bug Something isn't working label Oct 23, 2024
@dantetemplar dantetemplar moved this to 🔖 Todo in InNoHassle Oct 23, 2024
@ZolotarevAlexandr ZolotarevAlexandr self-assigned this Oct 24, 2024
@github-project-automation github-project-automation bot moved this from 🔖 Todo to ✅ Done in InNoHassle Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants