You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/10/20 11:39:26 UTC

[GitHub] [airflow] pspeter opened a new issue, #27159: Graph view reload does not work anymore

pspeter opened a new issue, #27159:
URL: https://github.com/apache/airflow/issues/27159

   ### Apache Airflow version
   
   2.4.1
   
   ### What happened
   
   Clicking Refresh on the graph view of any DAG does not refresh the view, it just gets stuck refreshing forever.
   In the JS console, it displays the following error message on each refresh:
   
   ```
   Uncaught SyntaxError: JSON.parse: unexpected character at line 1 column 2 of the JSON data
       N http://internal-airflow/static/dist/graph.c3f9b20b23ed9651c62a.js:2
       jQuery 7
       N http://internal-airflow/static/dist/graph.c3f9b20b23ed9651c62a.js:2
       R http://internal-airflow/static/dist/graph.c3f9b20b23ed9651c62a.js:2
       $/< http://internal-airflow/static/dist/d3.min.js:1
   ```
   
   This happens even on a fresh DAG with no runs, even if the JSON returned by the request to `/object/task_instances?dag_id=test_dag&execution_date=2022-10-20T11:17:22.870600+00:00` is empty, but also on normal DAGs.
   
   The container logs also show no problems, just that the GET-request was made.
   
   ### What you think should happen instead
   
   Refresh the graph.
   
   ### How to reproduce
   
   Create a DAG with one EmptyOperator, go to graph view, click refresh.
   
   ### Operating System
   
   CentOS 8
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-databricks
   apache-airflow-providers-microsoft-azure
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   Docker version 20.10.14, build a224086
   
   We use official image apache/airflow:2.4.1-python3.9 slightly extended with the above providers and a custom fix for the python package `thrift` used by the DatabricksOperator. It's a small fix just to make it work with our proxy.
   
   ### Anything else
   
   We upgraded from 2.3.3 to 2.4.1, had no problems in 2.3.3.
   
   Tested with Firefox and Edge, both are the same. In Edge, the error message is `VM90:1 Uncaught SyntaxError: "[object Object]" is not valid JSON`
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] set92 commented on issue #27159: Graph view reload does not work anymore

Posted by GitBox <gi...@apache.org>.
set92 commented on issue #27159:
URL: https://github.com/apache/airflow/issues/27159#issuecomment-1285704635

   In my case, with Chrome shows 
   ```
   VM221:1 Uncaught SyntaxError: "[object Object]" is not valid JSON
       at JSON.parse (<anonymous>)
       at Object.<anonymous> (graph.c3f9b20b23ed9651c62a.js:2:21394)
       at c (jquery-latest.js:2:28327)
       at Object.fireWith [as resolveWith] (jquery-latest.js:2:29072)
       at l (jquery-latest.js:2:79901)
       at XMLHttpRequest.<anonymous> (jquery-latest.js:2:82355)
   ```
   
   And we also upgraded from 1.4 to 2.4.1, and the error is in graph view.


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] tirkarthi commented on issue #27159: Graph view reload does not work anymore

Posted by GitBox <gi...@apache.org>.
tirkarthi commented on issue #27159:
URL: https://github.com/apache/airflow/issues/27159#issuecomment-1285755644

   Seems to be fixed in https://github.com/apache/airflow/pull/26926 . Duplicate of https://github.com/apache/airflow/issues/26901 . cc: @pierrejeambrun 


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] pspeter closed issue #27159: Graph view reload does not work anymore

Posted by GitBox <gi...@apache.org>.
pspeter closed issue #27159: Graph view reload does not work anymore
URL: https://github.com/apache/airflow/issues/27159


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] boring-cyborg[bot] commented on issue #27159: Graph view reload does not work anymore

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #27159:
URL: https://github.com/apache/airflow/issues/27159#issuecomment-1285379288

   Thanks for opening your first issue here! Be sure to follow the issue template!
   


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org