Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
Stale Bug Reportaffected_version:3.0Issues Reported for 3.0affected_version:main_branchIssues Reported for main brancharea:corearea:schedulerkind:bugThis is a clearly a bugpriority:lowBug with a simple workaround that would not block a release
Description
Apache Airflow version
main (development)
If "Other Airflow 2 version" selected, which one?
No response
What happened?
get_json_error checks for status to be of the series 4xx or 5xx and if not returns None. In case of redirections like 301 through corporate proxy it returns 3xx status code. Thus get_json_error returns None and response.raise_for_status raises HTTPStatusError which is not pickleable and scheduler crashes similar to #47873
airflow/task-sdk/src/airflow/sdk/api/client.py
Lines 114 to 123 in 9b1a507
| def raise_on_4xx_5xx_with_note(response: httpx.Response): | |
| try: | |
| return get_json_error(response) or response.raise_for_status() | |
| except httpx.HTTPStatusError as e: | |
| if TYPE_CHECKING: | |
| assert hasattr(e, "add_note") | |
| e.add_note( | |
| f"Correlation-id={response.headers.get('correlation-id', None) or response.request.headers.get('correlation-id', 'no-correlation-id')}" | |
| ) | |
| raise |
What you think should happen instead?
No response
How to reproduce
- Run scheduler in a proxy environment where 3xx might be returned.
- Create a dagrun.
- Scheduler crashes with
HTTPStatusErrorwhich is not pickleable
Operating System
Ubuntu 20.04
Versions of Apache Airflow Providers
No response
Deployment
Virtualenv installation
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
Stale Bug Reportaffected_version:3.0Issues Reported for 3.0affected_version:main_branchIssues Reported for main brancharea:corearea:schedulerkind:bugThis is a clearly a bugpriority:lowBug with a simple workaround that would not block a release
Activity
tirkarthi commentedon Apr 11, 2025
I marked it as low priority since 3xx is not expected but thought to file an issue since I came across this while running scheduler in my work laptop by mistake under a proxy that tried to resolve the localhost to some other value. This can be closed if invalid.
cc: @kaxil
vatsrahul1001 commentedon Aug 28, 2025
@tirkarthi is this still happening on main?
github-actions commentedon Aug 29, 2026
This issue has been automatically marked as stale because it has been open for 365 days without any activity. There has been several Airflow releases since last activity on this issue. Kindly asking to recheck the report against latest Airflow version and let us know if the issue is reproducible. The issue will be closed in next 30 days if no further activity occurs from the issue author.
github-actions commentedon Sep 28, 2026
This issue has been closed because it has not received response from the issue author.