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

Fix Internal Server error in coverage metadata request #821

Closed
mmerdes opened this issue Sep 4, 2024 · 0 comments · Fixed by #836
Closed

Fix Internal Server error in coverage metadata request #821

mmerdes opened this issue Sep 4, 2024 · 0 comments · Fixed by #836
Labels
bug Something isn't working

Comments

@mmerdes
Copy link
Collaborator

mmerdes commented Sep 4, 2024

Currently, the ohsome-dashboard frontend issues request like so:

https://api.quality.ohsome.org/v1/metadata/indicators/mapping-saturation/coverage?inverse=true

this leads to a crash in the oqapi backend.
This behavior can also be demonstrated via swagger.

The following erros occur in the log file:

fastapi.exceptions.ResponseValidationError: 2 validation errors:
  {'type': 'int_type', 'loc': ('response', 'features', 0, 'id', 'int'), 'msg': 'Input should be a valid integer', 'input': {"coordinates": [], "type": "Polygon"}, 'url': 'https://errors.pydantic.dev/2.8/v/int_type'}
  {'type': 'string_type', 'loc': ('response', 'features', 0, 'id', 'str'), 'msg': 'Input should be a valid string', 'input': {"coordinates": [], "type": "Polygon"}, 'url': 'https://errors.pydantic.dev/2.8/v/string_type'}
@mmerdes mmerdes added the bug Something isn't working label Sep 4, 2024
@GIScience GIScience deleted a comment from GenaroSalomone Sep 4, 2024
mmerdes added a commit that referenced this issue Oct 10, 2024
mmerdes added a commit that referenced this issue Oct 10, 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
None yet
Development

Successfully merging a pull request may close this issue.

1 participant