frafra commented on issue #15905:
URL: https://github.com/apache/superset/issues/15905#issuecomment-929214090


   I can confirm that `json_int_dttm_ser` is the problem. This is my log:
   
   ```
   superset_app            | Traceback (most recent call last):
   superset_app            |   File 
"/usr/local/lib/python3.7/site-packages/flask/app.py", line 1950, in 
full_dispatch_request
   superset_app            |     rv = self.dispatch_request()
   superset_app            |   File 
"/usr/local/lib/python3.7/site-packages/flask/app.py", line 1936, in 
dispatch_request
   superset_app            |     return 
self.view_functions[rule.endpoint](**req.view_args)
   superset_app            |   File 
"/usr/local/lib/python3.7/site-packages/flask_appbuilder/security/decorators.py",
 line 61, in wraps
   superset_app            |     return f(self, *args, **kwargs)
   superset_app            |   File "/app/superset/views/base_api.py", line 85, 
in wraps
   superset_app            |     raise ex
   superset_app            |   File "/app/superset/views/base_api.py", line 82, 
in wraps
   superset_app            |     duration, response = time_function(f, self, 
*args, **kwargs)
   superset_app            |   File "/app/superset/utils/core.py", line 1461, 
in time_function
   superset_app            |     response = func(*args, **kwargs)
   superset_app            |   File "/app/superset/utils/log.py", line 242, in 
wrapper
   superset_app            |     value = f(*args, **kwargs)
   superset_app            |   File "/app/superset/charts/api.py", line 726, in 
data
   superset_app            |     return self.get_data_response(command)
   superset_app            |   File "/app/superset/charts/api.py", line 543, in 
get_data_response
   superset_app            |     return self.send_chart_response(result, 
form_data)
   superset_app            |   File "/app/superset/charts/api.py", line 522, in 
send_chart_response
   superset_app            |     ignore_nan=True,
   superset_app            |   File 
"/usr/local/lib/python3.7/site-packages/simplejson/__init__.py", line 412, in 
dumps
   superset_app            |     **kw).encode(obj)
   superset_app            |   File 
"/usr/local/lib/python3.7/site-packages/simplejson/encoder.py", line 296, in 
encode
   superset_app            |     chunks = self.iterencode(o, _one_shot=True)
   superset_app            |   File 
"/usr/local/lib/python3.7/site-packages/simplejson/encoder.py", line 378, in 
iterencode
   superset_app            |     return _iterencode(o, 0)
   superset_app            |   File "/app/superset/utils/core.py", line 614, in 
json_int_dttm_ser
   superset_app            |     raise TypeError("Unserializable object {} of 
type {}".format(obj, type(obj)))
   superset_app            | TypeError: Unserializable object 14:06:00 of type 
<class 'datetime.time'>
   ```
   
   My setup is a standard Superset started using docker-compose, connected to a 
mssql database containing a table with a `TIME` column.


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