You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{"type": "about:blank", "title": "Internal Server Error", "detail": "The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.", "status": 500}
Steps to reproduce
Use the code in this gist, run it with the command:
connexion run openapi.yaml --host 0.0.0.0 --port 8080
or
uvicorn main:app --host 0.0.0.0 --port 8080
Additional info:
It works if the server url is amended with base path and the base path "v1" is put in the API path.
Output of the commands:
python --versionPython 3.11.6
pip show connexion | grep "^Version\:"Version: 3.0.3
The text was updated successfully, but these errors were encountered:
Description
OpenAPI definitions with server url with a base path (example: "http://localhost:8080/v1" are not correctly handled (error 404 or 500).
Expected behaviour
Correctly handle the API with full path (server url + API path)
Actual behaviour
Server raise exception, return 404 error code (or 500 in running with uvicorn):
or with uvicorn:
Steps to reproduce
Use the code in this gist, run it with the command:
or
Additional info:
It works if the server url is amended with base path and the base path "v1" is put in the API path.
Output of the commands:
python --version
Python 3.11.6
pip show connexion | grep "^Version\:"
Version: 3.0.3
The text was updated successfully, but these errors were encountered: