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

Closed
drnextgis opened this issue Nov 26, 2024 · 4 comments
Closed

500 HTTP Error on OpenAPI page #173

drnextgis opened this issue Nov 26, 2024 · 4 comments

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

@vincentsarago
Copy link
Member

@drnextgis was this fixed upstream ?

@drnextgis
Copy link
Contributor Author

Yes, it was fixed in https://github.com/pydantic/pydantic/releases/tag/v2.10.3. Should we update the dependencies to reflect this?

@vincentsarago
Copy link
Member

I don't think we need to do anything, or we could exclude 2.10.0|2.10.1|2.10.2 but I think there are low chances that users have pydantic pinned to those specific version

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

2 participants