Skip to content

example_dag_decorator DAG failing #49046

Description

@vatsrahul1001

Apache Airflow version

3.0.0

If "Other Airflow 2 version" selected, which one?

No response

What happened?

example_dag_decorator dag is failing with below error


[2025-04-10, 09:55:33] ERROR - Task failed with exception: source="task"
TypeError: Invalid type for url.  Expected str or httpx.URL, got <class 'airflow.sdk.definitions.param.DagParam'>: <airflow.sdk.definitions.param.DagParam object at 0xffff68267760>
File "/opt/airflow/task-sdk/src/airflow/sdk/execution_time/task_runner.py", line 775 in run

File "/opt/airflow/task-sdk/src/airflow/sdk/execution_time/task_runner.py", line 1038 in _execute_task

File "/opt/airflow/task-sdk/src/airflow/sdk/bases/operator.py", line 409 in wrapper

File "/opt/airflow/airflow-core/src/airflow/example_dags/example_dag_decorator.py", line 41 in execute

File "/usr/local/lib/python3.9/site-packages/httpx/_api.py", line 198 in get

File "/usr/local/lib/python3.9/site-packages/httpx/_api.py", line 106 in request

File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 814 in request

File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 345 in build_request

File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 375 in _merge_url

File "/usr/local/lib/python3.9/site-packages/httpx/_urls.py", line 11[9](http://localhost:28080/dags/example_dag_decorator/runs/manual__2025-04-10T09:55:31.872693+00:00/tasks/get_ip?try_number=1#9) in __init__

What you think should happen instead?

No response

How to reproduce

  1. Run breeze start-airflow --executor CeleryExecutor --backend postgres --load-example-dags
  2. Execute example_dag_decorator

Operating System

linux

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

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

Metadata

Metadata

Assignees

Labels

area:corekind:bugThis is a clearly a bugpriority:mediumBug that should be fixed before next release but would not block a release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions