Replies: 1 comment
-
Anyone find a fix for this? :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
The handle of static files are done in main method with app,
I've checked with host/static/<file_name> and I can get the static file, so they are handled properly
The swagger code is in the router in order to split my big app to small routers.
after an update of the fastAPI to the latest version,
the swagger with self hosted files stoped to work,
it raises the next errors in the web console:
Uncaught SyntaxError: expected expression, got '='
Uncaught ReferenceError: SwaggerUIBundle is not defined
https://10.197.210.88:9003/docs#:15
I've tried to follow the FastAPI tutorial and still same error,
while line 15 is:
const ui = SwaggerUIBundle({{
Operating System
Linux
Operating System Details
No response
FastAPI Version
0.103.2
Pydantic Version
2.4.2
Python Version
3.8
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions