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

setting http connection with https url and a port doesn't work #82

Open
edhipat opened this issue Apr 28, 2021 · 1 comment
Open

setting http connection with https url and a port doesn't work #82

edhipat opened this issue Apr 28, 2021 · 1 comment

Comments

@edhipat
Copy link

edhipat commented Apr 28, 2021

Setting up Airflow connection using connection endpoint does not work for "http" type with a https url and a port. We tried using following commands:

curl -s "$HOST/admin/rest_api/api?api=connections&add=true&conn_id=test_connection" --data-urlencode "conn_uri=https://172.0.0.1:8888" --data-urlencode "conn_extra={"some extras"}"

curl -s "$HOST/admin/rest_api/api?api=connections&add=true&conn_id=test_connection" --data-urlencode "conn_host=https://172.0.0.1" "conn_port=8888" --data-urlencode "conn_extra={"some extras"}"

Specifying connection host, port etc. separately also doesn't work.

@edhipat
Copy link
Author

edhipat commented Apr 28, 2021

To give more explanation here, running command using conn_uri sets the connection, but type becomes "https" (although accepted value is "http"), and host becomes 172.0.0.1 instead of "https://172.0.0.1"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant