alexryndin commented on PR #23569:
URL: https://github.com/apache/superset/pull/23569#issuecomment-1614664759

   I tried this patch with superset 2.1.0, unfortunately it didn't help, legacy 
charts don't properly show error message, endlessly showing loading gif, 
whereas worker show this in its log:
   ```
   During handling of the above exception, another exception occurred:
   
   Traceback (most recent call last):
     File "/ss_venv/lib64/python3.8/site-packages/celery/app/trace.py", line 
477, in trace_task
       R = retval = fun(*args, **kwargs)
     File 
"/ss_venv/lib64/python3.8/site-packages/superset/initialization/__init__.py", 
line 108, in __call__
       return task_base.__call__(self, *args, **kwargs)
     File "/ss_venv/lib64/python3.8/site-packages/celery/app/trace.py", line 
760, in __protected_call__
       return self.run(*args, **kwargs)
     File 
"/ss_venv/lib64/python3.8/site-packages/superset/tasks/async_queries.py", line 
95, in load_chart_data_into_cache
       async_query_manager.update_job(
     File 
"/ss_venv/lib64/python3.8/site-packages/superset/utils/async_query_manager.py", 
line 187, in update_job
       event_data = {"data": json.dumps({**job_metadata, **updates})}
     File "/usr/lib64/python3.8/json/__init__.py", line 231, in dumps
       return _default_encoder.encode(obj)
     File "/usr/lib64/python3.8/json/encoder.py", line 199, in encode
       chunks = self.iterencode(o, _one_shot=True)
     File "/usr/lib64/python3.8/json/encoder.py", line 257, in iterencode
       return _iterencode(o, 0)
     File "/usr/lib64/python3.8/json/encoder.py", line 179, in default
       raise TypeError(f'Object of type {o.__class__.__name__} '
   TypeError: Object of type LazyString is not JSON serializable
   ```


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to