-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
triageNeeds investigationNeeds investigation
Description
Description
Upon running fio,Planet.full(), after a delay of a few minutes of the error printing to console, pydantic throws many "missing" ValidationErrors.
Reproduction
Call the function.
from fio_wrapper import FIO
fio = FIO()
data = fio.Planet.full()Expected behavior
The full data for every planet is returned without the error crashing the program.
Versions
Python
Python 3.12.3
FIO Wrapper
Version: 1.3.5
Additional context
The error message:
#first traceback
Traceback (most recent call last):
File "<MyPythonScriptPath>\test.py", line 3, in <module>
data = fio.Planet.full()
File "<MyPythonLibPath>\Lib\site-packages\fio_wrapper\endpoints\endpoints_v1\planet.py", line 82, in full
return PlanetFullList.model_validate(data)
File "<MyPythonLibPath>\Lib\site-packages\pydantic\main.py", line 596, in model_validate
return cls.__pydantic_validator__.validate_python(
pydantic_core._pydantic_core.ValidationError: 37395 validation errors for PlanetFullList
#the following repeats
0.GovernorId
Field required [type=missing, input_value={'Resources': [{'Material...-05-19T06:37:29.153684'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.9/v/missing
0.GovernorUserName
Field required [type=missing, input_value={'Resources': [{'Material...-05-19T06:37:29.153684'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.9/v/missing
#...
#112000 lines of this repeating for every field, 4154 times
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
triageNeeds investigationNeeds investigation