-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
DAGs log view of EmptyOperator
shows confusing error Request URL missing protocol
.
#34228
Comments
I will keep testing with venv deployment, I tested:
So this "bug" comes between 2.6.0 ~ 2.6.1, |
EmptyOperator
shows confusing error in airflow version [2.6.0, 2.7.0). EmptyOperator
shows confusing error Request URL missing protocol
.
You are right, EmptyOperator is not executed, so there will be no logs. Agree that an error message might be confusing to users. |
|
I am really very interested to work on this issue , please assign me the issue |
I hooked the function url = 'http://:8793/log/dag_id=my_dag_name/run_id=manual__2023-09-14T02:35:48.490841+00:00/task_id=task/attempt=1.log'
if __name__ == '__main__':
import httpx
httpx.get(url) error:
|
Also, RFC1738 declare HTTP host section cannot be omitted: |
Happy to pick this up @Jyoticharan if you're no longer working on it / are stuck. |
Looks like this is a result of this block 672ee7f#diff-e7f34f73940eb52d92bb991abedc1c963431c5373c12dff739c8fb7d03e93d3aR324-R333 introduced to find logs if no local or remote logs are found. This is causing the webserver to raise like the OP suggests. @dstandish / @jedcunningham , wdyt if we introduced a condition to handle EmptyOperator? Or we can even catch a wide exception in the second elif block and pass. Alternatively, we can give EmptyOperator a hostname - it defaults to empty string. This will probably result in 403 though and be even more confusing. Do you see a cleaner solution? |
Can we simply excluded any operator that has airflow/airflow/operators/empty.py Line 36 in 1e1adc5
Any operator that has this set as true will not be sent to executor |
Sure - here's a draft: #35536 |
Apache Airflow version
2.7.1
What happened
At airflow log view (DAG -> task -> log) of
EmptyOperator
, an error shows in window:Full trace in console:
What you think should happen instead
Old version of airflow (I tested 2.6.0), log view of
EmptyOperator
will show noting,I'm not sure this behavior is documented, but It caused confusion for me at least.
How to reproduce
airflow standalone
for development deploy, I also disable load_examples.EmptyOperator
example like below, I also disable catchup of DAG:Operating System
NixOS 23.05 (Stoat)
Versions of Apache Airflow Providers
Deployment
Virtualenv installation
Deployment details
Our enterprise internal deployment using modified docker-compose, version 2.7.0 shows the same issue.
But our old 2.5.2 venv deployment works fine.
EmptyOperator
shows nothing as normal.Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: