Re: [I] Minified React error 185 on the dag Overview page [airflow]
bbovenzi closed issue #52916: Minified React error 185 on the dag Overview page URL: https://github.com/apache/airflow/issues/52916 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] Minified React error 185 on the dag Overview page [airflow]
dheerajturaga commented on issue #52916:
URL: https://github.com/apache/airflow/issues/52916#issuecomment-3177159362
@potiuk, @pierrejeambrun I was able to reproduce this with the following
example dag. You probably need to have several dagruns before you start to see
the error
```python
from __future__ import annotations
import datetime
import pendulum
from textwrap import dedent
from airflow.providers.standard.operators.bash import BashOperator
from airflow.providers.standard.operators.empty import EmptyOperator
from airflow.sdk import DAG
with DAG(
dag_id="example_bash_operator",
schedule="0 0 * * *",
start_date=pendulum.datetime(2021, 1, 1, tz="UTC"),
catchup=False,
dagrun_timeout=datetime.timedelta(minutes=60),
tags=[
"example",
"example2",
"example3",
"example4",
"example5",
"example6",
"example7",
"example8",
],
params={"example_key": "example_value"},
) as dag:
run_this_last = EmptyOperator(
task_id="run_this_last",
)
# [START howto_operator_bash]
run_this = BashOperator(
task_id="run_after_loop",
bash_command=dedent(f"""
echo "Running the starting task"
for i in {{1..5000}}; do
echo "ERROR: Dummy message $i"
done
exit 1
"""),
)
# [END howto_operator_bash]
run_this >> run_this_last
for i in range(3):
task = BashOperator(
task_id=f"runme_{i}",
bash_command='echo "https://www.google.com/";',
)
task >> run_this
# [START howto_operator_bash_template]
also_run_this = BashOperator(
task_id="also_run_this",
bash_command='echo "ti_key={{ task_instance_key_str }}"',
)
# [END howto_operator_bash_template]
also_run_this >> run_this_last
# [START howto_operator_bash_skip]
this_will_skip = BashOperator(
task_id="this_will_skip",
bash_command='echo "hello world"; exit 99;',
dag=dag,
)
# [END howto_operator_bash_skip]
this_will_skip >> run_this_last
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Re: [I] Minified React error 185 on the dag Overview page [airflow]
pierrejeambrun commented on issue #52916: URL: https://github.com/apache/airflow/issues/52916#issuecomment-3137326561 The issue is that, for now the entire logs are still fetched from the backend in one go, and all of that is parsed in the UI, making it way too much for the browser if logs are long. Basically the 'virtualization' done in #50333, is only a front-end one to limit the rendered DOM nodes (only what's in the viewport will actually be rendered), which is cool but not enough, ideally we should do a full stack virtualization. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] Minified React error 185 on the dag Overview page [airflow]
jason810496 commented on issue #52916: URL: https://github.com/apache/airflow/issues/52916#issuecomment-3128817114 > > Sounds like its time to have the UI use the changes to read buffered logs from [#49470](https://github.com/apache/airflow/pull/49470) > > This should fix the problem with parsing big logs in the UI. I had considered corresponding UI optimization for #49470 -> [AIP-38 Refactor TaskInstance Log UI with Streaming and Virtualized Rendering #50333](https://github.com/apache/airflow/issues/50333) The #50333 PR has already been merged, and `tanstack/react-virtual` was used to optimize the rendering. Maybe there might be more way to optimize the rendering again. Or we might be refactor on e2e behavior, e.g. using pagination instead of streaming whole logs. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] Minified React error 185 on the dag Overview page [airflow]
pierrejeambrun commented on issue #52916: URL: https://github.com/apache/airflow/issues/52916#issuecomment-3127435884 > Is there anyway to turn on logs for react from the official airflow docker image? So we can get something useful we can share? I don't think so, you'd need to run vite dev server, but that's not supported out of the box I believe. (You need front-end source code and some dev tools to do that) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] Minified React error 185 on the dag Overview page [airflow]
pierrejeambrun commented on issue #52916: URL: https://github.com/apache/airflow/issues/52916#issuecomment-3127432574 > Sounds like its time to have the UI use the changes to read buffered logs from https://github.com/apache/airflow/pull/49470 This should fix the problem with parsing big logs in the UI. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] Minified React error 185 on the dag Overview page [airflow]
r-richmond commented on issue #52916: URL: https://github.com/apache/airflow/issues/52916#issuecomment-3124466959 I tried to reproduce this locally and failed to do so. Is there anyway to turn on logs for react from the official airflow docker image? So we can get something useful we can share? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] Minified React error 185 on the dag Overview page [airflow]
cardilloscreations commented on issue #52916: URL: https://github.com/apache/airflow/issues/52916#issuecomment-3089826346 Watching, because we just hit this one today. We have a DAG with a task that runs for a couple hours and produces some very large log files. Wasn't a problem with v2 but after the upgrade to v3 we can't view the logs easily (can't scroll to bottom) and now we started getting this error. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] Minified React error 185 on the dag Overview page [airflow]
bbovenzi commented on issue #52916: URL: https://github.com/apache/airflow/issues/52916#issuecomment-3075173431 Sounds like its time to have the UI use the changes to read buffered logs from https://github.com/apache/airflow/pull/49470 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] Minified React error 185 on the dag Overview page [airflow]
pierrejeambrun commented on issue #52916: URL: https://github.com/apache/airflow/issues/52916#issuecomment-307269 > For me is the exact same as @gurjani and @dheerajturaga. I have a dag with a single task but airflow produces a lot of logs. @santurini Do you mind sharing a dummy version of your dag (replacing logs with dummy log and removing business logic) but that still produces the error? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] Minified React error 185 on the dag Overview page [airflow]
santurini commented on issue #52916: URL: https://github.com/apache/airflow/issues/52916#issuecomment-3072556269 For me is the exact same as @gurjani and @dheerajturaga. I have a dag with a single task but airflow produces a lot of logs. When I try to open the logs and filter by error I get the react error. Same happens when I open a dag for the first time (of the session) that has a lot of previous runs. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] Minified React error 185 on the dag Overview page [airflow]
pierrejeambrun commented on issue #52916: URL: https://github.com/apache/airflow/issues/52916#issuecomment-3072454521 I can't reproduce on latest main at the moment. Would be great if you could provide a process and Dag Code that reproduce the error. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] Minified React error 185 on the dag Overview page [airflow]
gurjani commented on issue #52916: URL: https://github.com/apache/airflow/issues/52916#issuecomment-3063517377 For me it happens on 1 specific dag, when few others have the exact same code(just having different name), but it does not happen on them. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] Minified React error 185 on the dag Overview page [airflow]
dheerajturaga commented on issue #52916: URL: https://github.com/apache/airflow/issues/52916#issuecomment-3063321493 @pierrejeambrun , For my specific case, the dags dont have many tasks. However logs are long and have a lot of `ERROR` messages. Im not able to reproduce it now but I fear it may come up. @santurini, do you happen to have a minimal reproducible Dag? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] Minified React error 185 on the dag Overview page [airflow]
pierrejeambrun commented on issue #52916: URL: https://github.com/apache/airflow/issues/52916#issuecomment-3062557234 I tried with very big logs (10M lines), it's super slow but I can't reproduce the error. Also I tried the same as shown in the videos and can't seem to get the error to show up. Does that happen for all of your dags? Is that only for specific dags, do you have a minimal reproducible dummy DAG? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] Minified React error 185 on the dag Overview page [airflow]
pierrejeambrun commented on issue #52916: URL: https://github.com/apache/airflow/issues/52916#issuecomment-3062454834 For the logs that may be caused by big input. (the way we process logs in the front-end could be wrong, leading to too many state update). For the Overview page that is surprising, I'll try to reproduce. Are those Dags with particurlarly a lot of runs or tasks associated with them? Are the logs super verbose with a lot of lines? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] Minified React error 185 on the dag Overview page [airflow]
potiuk commented on issue #52916: URL: https://github.com/apache/airflow/issues/52916#issuecomment-3057775832 cc: @bbovenzi @pierrejeambrun -> any clue ? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] Minified React error 185 on the dag Overview page [airflow]
gurjani commented on issue #52916: URL: https://github.com/apache/airflow/issues/52916#issuecomment-3057160184 I have the same issue https://github.com/user-attachments/assets/c7da02a1-5c14-4ed2-bfdf-429e1f75eb3f -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] Minified React error 185 on the dag Overview page [airflow]
santurini commented on issue #52916: URL: https://github.com/apache/airflow/issues/52916#issuecomment-3048802501 Inspect logs: ``` index-QiQVuLYY.js:80 React Router caught the following error during render Error: Minified React error #185; visit https://reactjs.org/docs/error-decoder.html?invariant=185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings. at kS (index-QiQVuLYY.js:48:34133) at LJn (index-QiQVuLYY.js:46:22119) at Object.onChange (index-QiQVuLYY.js:1379:12727) at nti.notify (index-QiQVuLYY.js:1379:3577) at nti.resizeItem (index-QiQVuLYY.js:1379:8549) at nti._measureElement (index-QiQVuLYY.js:1379:7980) at measureElement (index-QiQVuLYY.js:1379:8715) at yFe (index-QiQVuLYY.js:48:24630) at X$t (index-QiQVuLYY.js:48:32832) at ttn (index-QiQVuLYY.js:48:31736) Object index-QiQVuLYY.js:48 Error: Minified React error #185; visit https://reactjs.org/docs/error-decoder.html?invariant=185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings. at kS (index-QiQVuLYY.js:48:34133) at LJn (index-QiQVuLYY.js:46:22119) at Object.onChange (index-QiQVuLYY.js:1379:12727) at nti.notify (index-QiQVuLYY.js:1379:3577) at nti.resizeItem (index-QiQVuLYY.js:1379:8549) at nti._measureElement (index-QiQVuLYY.js:1379:7980) at measureElement (index-QiQVuLYY.js:1379:8715) at yFe (index-QiQVuLYY.js:48:24630) at X$t (index-QiQVuLYY.js:48:32832) at ttn (index-QiQVuLYY.js:48:31736) index-QiQVuLYY.js:80 React Router caught the following error during render Error: Minified React error #185; visit https://reactjs.org/docs/error-decoder.html?invariant=185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings. at kS (index-QiQVuLYY.js:48:34133) at LJn (index-QiQVuLYY.js:46:22119) at Object.onChange (index-QiQVuLYY.js:1379:12727) at nti.notify (index-QiQVuLYY.js:1379:3577) at nti.resizeItem (index-QiQVuLYY.js:1379:8549) at nti._measureElement (index-QiQVuLYY.js:1379:7980) at measureElement (index-QiQVuLYY.js:1379:8715) at yFe (index-QiQVuLYY.js:48:24630) at X$t (index-QiQVuLYY.js:48:32832) at ttn (index-QiQVuLYY.js:48:31736) Object ``` Demo: https://github.com/user-attachments/assets/bd791e91-33fa-4815-a6bd-9b32b66f11b5 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] Minified React error 185 on the dag Overview page [airflow]
potiuk commented on issue #52916: URL: https://github.com/apache/airflow/issues/52916#issuecomment-3048550408 Also - likely it happens when your logs are producing specific output. What is the output? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] Minified React error 185 on the dag Overview page [airflow]
potiuk commented on issue #52916: URL: https://github.com/apache/airflow/issues/52916#issuecomment-3048547990 Exactly what people were asked above: * logs (including maybe logs and errors from your browser) * dag that triggered it * any circumstances * explanation if it happens always, or rarely, for all dags, or for some, always for the same dag, only for specific views etc. etc. - anything that will allow to pin-point the scenario when it happens * exact reproduction scenario that you can provide step-by-step on a clear installation * whatever else you can find It does not happen for everyone - there is **some** reason why it happened - and in order to reproduce it, we need to know how. It's an unknown unknown, which means we do not know what to ask you for. But saying "I have the same error" dows not really bring us closer to finding out what happened -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] Minified React error 185 on the dag Overview page [airflow]
santurini commented on issue #52916: URL: https://github.com/apache/airflow/issues/52916#issuecomment-3048354590 @potiuk can you be more specific of what information I should provide? I literally run a DAG and navigate to the logs tab, given that I have a lot of lines I filter on log level ERROR, after I do this I get the frontend error -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] Minified React error 185 on the dag Overview page [airflow]
potiuk commented on issue #52916: URL: https://github.com/apache/airflow/issues/52916#issuecomment-3048321664 > I'm having the same problem when trying to filter the logs of a DAG by level ERROR. Kubernetes 1.31 Airflow 3.0.2 Airflow Helm Chart 1.17 So ... could you provide some detailed traces and how you get there. By stating "same" error and not providing more evidence, it's unlikely it will help anyone in trying to reproduce it and then fix @santurini -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] Minified React error 185 on the dag Overview page [airflow]
santurini commented on issue #52916: URL: https://github.com/apache/airflow/issues/52916#issuecomment-3048231070 I'm having the same problem when trying to filter the logs of a DAG by level ERROR. Kubernetes 1.31 Airflow 3.0.2 Airflow Helm Chart 1.17 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] Minified React error 185 on the dag Overview page [airflow]
tirkarthi commented on issue #52916: URL: https://github.com/apache/airflow/issues/52916#issuecomment-3040635857 @dheerajturaga Do you have a dag along with steps to reproduce this issue? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
