question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Async chart not rendering

See original GitHub issue

Hello, I have tried to turn on GAQ on the latest helm/superset release (0.6.1, 1.5.0, respectively). When I try to run a query from a chart, the chart spins until it times out. However, I can see the query execute on the data warehouse and the results are returned to redis. In fact, if I refresh the chart page after seeing the load_chart_data_into_cache task complete successfully on the worker, then the chart pulls from redis and loads as expected. I believe that I’ve configured superset as outlined here.

Async queries are running as expected in sql labs.

How to reproduce the bug

Deploy superset to k8s using helm with the following config overrides:

configOverrides:
  enable_gaq: |
    GLOBAL_ASYNC_QUERIES_JWT_SECRET = env('GLOBAL_ASYNC_QUERIES_JWT_SECRET')
    GLOBAL_ASYNC_QUERIES_REDIS_CONFIG = {
      "port": env('REDIS_PORT'),
      "host": env('REDIS_HOST'),
      "password": env('REDIS_PASSWORD'),
      "db": 0,
      "ssl": False
     }

    FEATURE_FLAGS = { 'GLOBAL_ASYNC_QUERIES': True }

Expected results

I expect the chart to render results after the query completes.

Actual results

The chart never renders.

Screenshots

image

Environment

(please complete the following information):

  • browser type and version: Firefox 99.0.1 (64-bit)
  • superset version: 1.5.0
  • python version: 3.8.12
  • node.js version: node -v
  • any feature flags active: Global async queries

Checklist

Make sure to follow these steps before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven’t found one similar.

Additional context

Add any other context about the problem here.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:6
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
etadelta222commented, Dec 13, 2022

+1

1reaction
phongvt322commented, Nov 24, 2022

+1, any update?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chart.js charts not rendering data until I inspect element, is it ...
I am reading data in from a .csv file and inputting the data into a chart.js ...
Read more >
ASYNC Rendering | Common Settings
AnyChart charts can be rendered both synchronously and asynchronously. Rendering charts asynchronously may boost your web application (page) responsiveness ...
Read more >
Re: Chart is not rendering or showing when page is not referesh
I have tried Accumulation chart but it is not showing when the page is not refresh. I am using Blazor WebAssembly.
Read more >
Render Multiple Charts in a Page - CanvasJS.com
Position the chart container wherever the chart is supposed to be rendered in the page, with separate chart-container id for each chart.
Read more >
How to create your charts asynchronously | RGraph.net
All of the libraries must be loaded first. In the pages head for example. · Your canvas tag must be defined before setting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found