-
-
Notifications
You must be signed in to change notification settings - Fork 764
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
Connexion3 Failed to load API definition in the Swagger UI #1829
Comments
Have the same issue! |
It first works and then stops working after some time? Do you know whether it's always approximately the same amount of time or just randomly? @nielsbox |
It's not exactly the same error message, but is related to the specification not being handled correctly since 3.0.3
Seems to be repeating some of my parameters. Tested 3.0.2 and 3.0.3 (and 3.0.4) |
Fixes #1829. Changes proposed in this pull request: - Use _raw_spec when cloning --------- Co-authored-by: Robbe Sneyders <robbe.sneyders@gmail.com>
Fixed in 3.0.5. Thanks |
Description
It works perfectly fine locally and it works fine during some time after deployment. But after some time returns 500 error code. API itself works fine and all end-points works fine. The issue with Swagger UI only.
Before we added an exception handler we had just 500 error with the default message saying that something went wrong or app overloaded.
Now we use the following error_handler:
As a result, str(exc) is actually openapi.json content
I've found the follwoing message in logs but we do not use "oneOf":
`Failed validating 'oneOf' in schema['properties']['paths']['patternProperties']['^\/']['patternProperties']['^(get|put|post|delete|options|head|patch|trace)$']['properties']['requestBody']:
`
Expected behaviour
API definition loaded correctly
Additional info:
Output of the commands:
python --version
python:3.10pip show connexion | grep "^Version\:"
. connexion[flask]==3.0.3starlette
. 0.33.0 or 0.32.0.post1openapi.yaml: openapi: 3.0.0
The text was updated successfully, but these errors were encountered: