cadwyn: `/docs` return 404 after adding api_version_default_value
Describe the bug
I used the example given in docs - Link
In the code, I added the default version by updating Cadwyn object creation as below
app = Cadwyn(versions=version_bundle, title="My amazing API", api_version_default_value="2002-01-01")
Without the api_version_default_value , /docs shows the API Contracts page. However, after setting the value, /docs returns {"detail":"Not Found"}
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 24 (11 by maintainers)
Commits related to this issue
- `/docs` return 404 after adding api_version_default_value #268 — committed to zmievsa/cadwyn by zmievsa 2 years ago
- `/docs` return 404 after adding api_version_default_value #268 (#269) #268 — committed to zmievsa/cadwyn by zmievsa 2 years ago
I made a mistake of using older version of the package(5.2.0). Airflow had pin
cadwyn>=5.1.3. But, somehow, it did not take the latest version(probably due to uv cache?). I now updated the min version to 5.2.0 and everything is working fine.Sorry for the trouble @zmievsa . Thank you for being so helpful!
Not on airflow slack. I’ll join it today
I’ll try to take care of this EOD today.
https://github.com/apache/airflow/pull/48548
I don’t have permission to re-open. Can you please reopen this issue
To start airflow API server, steps to follow(assuming that you already have uv):
try to access
http://localhost:8080/execution/docsIt will ask for login user and password. You will find credentials in
~/airflow/simple_auth_manager_passwords.json.generatedFixed in 5.2.1! Please, report if it persists!
Apologies for this total blunder: default value is actually a very-very new feature so it’s not as well tested as others. Will fix this too.