Skip to content

Conversation

kaxil
Copy link
Member

@kaxil kaxil commented Apr 25, 2025

Follow-up of #49747 which broke some workflows including breeze start-airflow, requiring #49753.

When base_url is a relative path (starts with '/'), default to using http://localhost:8080 as the base URL. This maintains backward compatibility with the previous default behavior while still allowing custom absolute URLs through either base_url or execution_api_server_url configuration.

Fixes httpx.UnsupportedProtocol error (as seen in #49753) that occurred when base_url was a relative path without protocol.

Same as last PR, the code is duplicated intentionally to not need coupling between Provider and new version of core Airflow


^ 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.

Follow-up of apache#49747 which broke some workflows including `breeze start-airflow`, requiring apache#49753.

When base_url is a relative path (starts with '/'), default to using
http://localhost:8080 as the base URL. This maintains backward compatibility
with the previous default behavior while still allowing custom absolute URLs
through either `base_url` or `execution_api_server_url` configuration.

Fixes `httpx.UnsupportedProtocol` error (as seen in apache#49753) that occurred when base_url was
a relative path without protocol.
@kaxil kaxil force-pushed the fix-bug-execution-api branch from 66f8ac7 to 4de9c40 Compare April 25, 2025 15:53
@kaxil kaxil merged commit 3b9ae48 into apache:main Apr 25, 2025
96 of 97 checks passed
@kaxil kaxil deleted the fix-bug-execution-api branch April 25, 2025 17:25
kaxil added a commit that referenced this pull request Apr 25, 2025
Follow-up of #49747 which broke some workflows including `breeze start-airflow`, requiring #49753.

When base_url is a relative path (starts with '/'), default to using
http://localhost:8080 as the base URL. This maintains backward compatibility
with the previous default behavior while still allowing custom absolute URLs
through either `base_url` or `execution_api_server_url` configuration.

Fixes `httpx.UnsupportedProtocol` error (as seen in #49753) that occurred when base_url was
a relative path without protocol.

(cherry picked from commit 3b9ae48)
jroachgolf84 pushed a commit to jroachgolf84/airflow that referenced this pull request Apr 30, 2025
Follow-up of apache#49747 which broke some workflows including `breeze start-airflow`, requiring apache#49753.

When base_url is a relative path (starts with '/'), default to using
http://localhost:8080 as the base URL. This maintains backward compatibility
with the previous default behavior while still allowing custom absolute URLs
through either `base_url` or `execution_api_server_url` configuration.

Fixes `httpx.UnsupportedProtocol` error (as seen in apache#49753) that occurred when base_url was
a relative path without protocol.
kaxil added a commit to astronomer/airflow that referenced this pull request May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:dev-tools area:Executors-core LocalExecutor & SequentialExecutor area:providers provider:celery provider:edge Edge Executor / Worker (AIP-69)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants