-
Notifications
You must be signed in to change notification settings - Fork 443
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
Doctr api doc error on docker #847
Comments
Hi there @dvivarelli 👋 Thanks for reporting this! Let's try to tackle this:
wget https://raw.githubusercontent.com/mindee/doctr/main/scripts/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py Cheers ✌️ |
Hi @fg-mindee, Process to replicate the issue as I faced this as well,
and http://localhost:8002/redoc If there is anything missed, can you please point that at certain step. |
I have the exact same error :
I can remove the error, at least to display the openapi doc by :
It is not a valid solution, just a hint to try to find a correct solution. Seems to be an issue with I am running docker from Windows 11 / WSL 2 without cuda
Output of
Extract of
|
Same problem here: |
Hi @fg-mindee, I believe there is some issue in internal function call, because of that we are facing this issue. But if this can be implemented in original Doctr repo with proper standards that will be helpful to all. Thanks. |
Hi everyone 👋 Considering the traceback (problems arise in the middleware), my suspicions are directed towards a new incompatible version of starlette or FastAPI. Let me run some checks, and I'll report the results back here 👍 |
Quick update everyone! Will keep you updated 👍 |
It seems to work for me once I update the fastapi version to |
I just managed to get my hands on a new setup so that I can run docker again easily, I'll check all of this by the end of next week! Thanks for reporting the fix @SamSamhuns :) |
@fxfabre @SamSamhuns Thank you for your hints! It seems related to a problem on FastAPi using nested pydantic models with Tuples (fastapi/fastapi#3782, fastapi/fastapi#4168) which we used in Updating |
Bug description
I have cloned the project and build the image with docker compose and tried to open the documentation at http://localhost:8002/redoc but the page remains in loading.
I have checked the network tab on chrome and I saw an error:
GET http://localhost:8002/openapi.json
Code snippet to reproduce the bug
--
Error traceback
Environment
image built with docker compose
The text was updated successfully, but these errors were encountered: