redash version = 7

we are using redash very extensively and never faced any issue but for one database we are facing below error running very simple query selecting only 10 records

Error running query: failed communicating with server. Please check your Internet connection and try again.

below are the docker logs

[2020-01-09 13:41:38,497][PID:75520][INFO][metrics] method=POST path=/api/events endpoint=events status=200 content_type=application/json content_length=4 duration=1.92 query_count=2 query_duration=2.89
[2020-01-09 13:41:38,657] ERROR in app: Exception on /api/jobs/5e3afd51-82c0-4e3a-9e82-7e9b04733c9c [GET]
Traceback (most recent call last):
File “/usr/local/lib/python2.7/dist-packages/flask/app.py”, line 1639, in full_dispatch_request
rv = self.dispatch_request()
File “/usr/local/lib/python2.7/dist-packages/flask/app.py”, line 1625, in dispatch_request
return self.view_functionsrule.endpoint
File “/usr/local/lib/python2.7/dist-packages/flask_restful/init.py”, line 477, in wrapper
resp = resource(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/flask_login/utils.py”, line 228, in decorated_view
return func(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/flask/views.py”, line 84, in view
return self.dispatch_request(*args, **kwargs)
File “/app/redash/handlers/base.py”, line 31, in dispatch_request
return super(BaseResource, self).dispatch_request(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/flask_restful/init.py”, line 587, in dispatch_request
resp = meth(*args, **kwargs)
File “/app/redash/handlers/query_results.py”, line 327, in get
return {‘job’: job.to_dict()}
File “/app/redash/tasks/queries.py”, line 49, in to_dict
task_info = self._async_result._get_task_meta()
File “/usr/local/lib/python2.7/dist-packages/celery/result.py”, line 410, in _get_task_meta
return self._maybe_set_cache(self.backend.get_task_meta(self.id))
File “/usr/local/lib/python2.7/dist-packages/celery/backends/base.py”, line 365, in get_task_meta
meta = self._get_task_meta_for(task_id)
File “/usr/local/lib/python2.7/dist-packages/celery/backends/base.py”, line 680, in _get_task_meta_for
return self.decode_result(meta)
File “/usr/local/lib/python2.7/dist-packages/celery/backends/base.py”, line 284, in decode_result
return self.meta_from_decoded(self.decode(payload))
File “/usr/local/lib/python2.7/dist-packages/celery/backends/base.py”, line 280, in meta_from_decoded
meta[‘result’] = self.exception_to_python(meta[‘result’])
File “/usr/local/lib/python2.7/dist-packages/celery/backends/base.py”, line 260, in exception_to_python
exc = cls(*exc_msg if isinstance(exc_msg, tuple) else exc_msg)
TypeError: init() takes at least 4 arguments (2 given)
[2020-01-09 13:41:38,657][PID:75411][ERROR][redash] Exception on /api/jobs/5e3afd51-82c0-4e3a-9e82-7e9b04733c9c [GET]
Traceback (most recent call last):
File “/usr/local/lib/python2.7/dist-packages/flask/app.py”, line 1639, in full_dispatch_request
rv = self.dispatch_request()
File “/usr/local/lib/python2.7/dist-packages/flask/app.py”, line 1625, in dispatch_request
return self.view_functionsrule.endpoint
File “/usr/local/lib/python2.7/dist-packages/flask_restful/init.py”, line 477, in wrapper
resp = resource(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/flask_login/utils.py”, line 228, in decorated_view
return func(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/flask/views.py”, line 84, in view
return self.dispatch_request(*args, **kwargs)
File “/app/redash/handlers/base.py”, line 31, in dispatch_request
return super(BaseResource, self).dispatch_request(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/flask_restful/init.py”, line 587, in dispatch_request
resp = meth(*args, **kwargs)
File “/app/redash/handlers/query_results.py”, line 327, in get
return {‘job’: job.to_dict()}
File “/app/redash/tasks/queries.py”, line 49, in to_dict
task_info = self._async_result._get_task_meta()
File “/usr/local/lib/python2.7/dist-packages/celery/result.py”, line 410, in _get_task_meta
return self._maybe_set_cache(self.backend.get_task_meta(self.id))
File “/usr/local/lib/python2.7/dist-packages/celery/backends/base.py”, line 365, in get_task_meta
meta = self._get_task_meta_for(task_id)
File “/usr/local/lib/python2.7/dist-packages/celery/backends/base.py”, line 680, in _get_task_meta_for
return self.decode_result(meta)
File “/usr/local/lib/python2.7/dist-packages/celery/backends/base.py”, line 284, in decode_result
return self.meta_from_decoded(self.decode(payload))
File “/usr/local/lib/python2.7/dist-packages/celery/backends/base.py”, line 280, in meta_from_decoded
meta[‘result’] = self.exception_to_python(meta[‘result’])
File “/usr/local/lib/python2.7/dist-packages/celery/backends/base.py”, line 260, in exception_to_python
exc = cls(*exc_msg if isinstance(exc_msg, tuple) else exc_msg)
TypeError: init() takes at least 4 arguments (2 given)

please help identifying what could be the issue

I am suffering from same problem.Did you find any solution for it.

for me, there was some weird characters in data which were not parseable by redash