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

postprocessing of the coordinates of places is throwing index errors #206

Closed
sentry-io bot opened this issue Oct 24, 2023 · 0 comments · Fixed by #207
Closed

postprocessing of the coordinates of places is throwing index errors #206

sentry-io bot opened this issue Oct 24, 2023 · 0 comments · Fixed by #207
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Oct 24, 2023

Sentry Issue: INTAVIA-BACKEND-1Q

IndexError: list index out of range
(26 additional frame(s) were not displayed)
...
  File "pydantic/class_validators.py", line 337, in pydantic.class_validators._generic_validator_basic.lambda13
    return lambda cls, v, values, field, config: validator(v)
  File "pydantic/main.py", line 711, in pydantic.main.BaseModel.validate
    return cls(**value)
  File "rdf_fastapi_utils/models.py", line 365, in __init__
    data = __pydantic_self__.post_process_data(data=data)
  File "rdf_fastapi_utils/models.py", line 337, in post_process_data
    data[field.name] = cb(field, data[field.name], data)
  File "intavia_backend/models_v2.py", line 138, in pp_lat_long
    item = Point(coordinates=[lst_item[2], lst_item[3]])
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

Successfully merging a pull request may close this issue.

1 participant