SharonAlexander opened a new issue, #68897: URL: https://github.com/apache/airflow/issues/68897
### Under which category would you file this issue? Airflow Core ### Apache Airflow version 3.2.2+astro.1 ### What happened and how to reproduce it? `airflow db shell` crashed with TypeError when the `AIRFLOW__DATABASE__SQL_ALCHEMY_CONN` URI doesn't include a database name. Steps to reproduce: 1. Set the connection string without a database name: export AIRFLOW__DATABASE__SQL_ALCHEMY_CONN=postgresql://postgres:postgres@postgres:5432 2. Run `airflow db check` => succeeds 3. Run `airflow db shell` => error: _TypeError: expected str, bytes or os.PathLike object, not NoneType_ <img width="1095" height="844" alt="Image" src="https://github.com/user-attachments/assets/e52694b5-4f7a-4d79-b9bb-bf7d6f78936e" /> ### What you think should happen instead? `airflow db shell` should work consistently with `airflow db check` Instead of exiting with no guidance , it should give clear actionable error message or default to `postgres` database ### Operating System Windows 11 ### Deployment Docker-Compose ### Apache Airflow Provider(s) _No response_ ### Versions of Apache Airflow Providers _No response_ ### Official Helm Chart version Not Applicable ### Kubernetes Version _No response_ ### Helm Chart configuration _No response_ ### Docker Image customizations Using default Astro Runtime Docker image via `astro dev start`. No custom modifications to the image. ### Anything else? _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
