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

500 HTTP Error on OpenAPI page #173

Open
drnextgis opened this issue Nov 26, 2024 · 1 comment
Open

500 HTTP Error on OpenAPI page #173

drnextgis opened this issue Nov 26, 2024 · 1 comment

Comments

@drnextgis
Copy link
Contributor

I recently pulled the latest version of stac-fastapi-pgstac and started it using the following command:

$ docker compose up app

However, when I navigate to http://0.0.0.0:8082/api.html, I encounter a 500 HTTP error.

Here's the stack trace:

...
stac-fastapi-pgstac  |   File "/usr/local/lib/python3.11/site-packages/pydantic/json_schema.py", line 1569, in resolve_ref_schema
stac-fastapi-pgstac  |     raise RuntimeError(f'Cannot update undefined schema for $ref={ref}')
stac-fastapi-pgstac  | RuntimeError: Cannot update undefined schema for $ref=#/components/schemas/stac_fastapi__pgstac__extensions__query__Operator-Input__1
@drnextgis
Copy link
Contributor Author

The issue is linked to Pydantic version 2.10.x, as discussed in this thread: pydantic/pydantic#10960

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