Skip to content
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

Fix: Handle Invalid --conn-uri Gracefully in CLI #48398

Merged
merged 2 commits into from
Mar 26, 2025

Conversation

vatsrahul1001
Copy link
Collaborator

This PR improves the handling of invalid --conn-uri values in the Airflow CLI. Previously, providing an invalid URI (e.g., testing) would cause a failure due to netloc being unset.

closes: #ISSUE


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

Copy link
Contributor

@amoghrajesh amoghrajesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment otherwise LGTM +1

@amoghrajesh amoghrajesh merged commit d57b94e into apache:main Mar 26, 2025
44 checks passed
@amoghrajesh amoghrajesh deleted the fix-handle-invalid-conn-uri branch March 26, 2025 14:21
pankajkoti pushed a commit to astronomer/airflow that referenced this pull request Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not able to create a connection via CLI with argument '--conn-uri'
2 participants