jsonrpclib icon indicating copy to clipboard operation
jsonrpclib copied to clipboard

TypeError: 'NoneType' object is not subscriptable

Open guyco-redis opened this issue 3 years ago • 0 comments

Got the following traceback:

  File "/opt/redislabs/lib/python3.9/site-packages/jsonrpclib/jsonrpc.py", line 778, in __call__
    return self.__send(self.__name, kwargs)
  File "/opt/redislabs/lib/python3.9/site-packages/jsonrpclib/jsonrpc.py", line 652, in _request
    return response["result"]
TypeError: 'NoneType' object is not subscriptable

from what I could see ServerProxy._request performs self._run_request(request), which can return None, in which case check_for_errors returns the same None, and that is accessed.

guyco-redis avatar Oct 27 '22 13:10 guyco-redis