Traceback (most recent call last):


 "/Users/me/.venvs/hydra/lib/python3.6/site-packages/gevent/greenlet.py", line 536, in run

result = self._run(*self.args, **self.kwargs)


 "/Users/me/.venvs/hydra/lib/python3.6/site-packages/gevent/baseserver.py", line 26, in _handle_and_close_when_done

return handle(*args_tuple)


 "/Users/me/.venvs/hydra/lib/python3.6/site-packages/gevent/pywsgi.py", line 1482, in handle

handler.handle()


 "/Users/me/.venvs/hydra/lib/python3.6/site-packages/gevent/pywsgi.py", line 454, in handle

result = self.handle_one_request()


 "/Users/me/.venvs/hydra/lib/python3.6/site-packages/gevent/pywsgi.py", line 671, in handle_one_request

self.handle_one_response()


 "/Users/me/.venvs/hydra/lib/python3.6/site-packages/gevent/pywsgi.py", line 964, in handle_one_response

self.log_request()


 "/Users/me/.venvs/hydra/lib/python3.6/site-packages/gunicorn/workers/ggevent.py", line 217, in log_request

self.server.log.access(resp, req_headers, self.environ, response_time)


 "/Users/me/.venvs/hydra/lib/python3.6/site-packages/gunicorn/instrument/statsd.py", line 100, in access

self.increment("gunicorn.request.status.%d" % status, 1)
TypeError: %d format: a number is required, not bytes

Traceback (most recent call last):


 "/usr/src/app/test.py", line 38, in <module>

ans = client.read_holding_registers(address=SUNSPEC_I_MODEL_BLOCK_START, count=52, unit=1)


 "/usr/local/lib/python3.9/site-packages/pymodbus/client/common.py", line 114, in read_holding_registers

return self.execute(request)


 "/usr/local/lib/python3.9/site-packages/pymodbus/client/sync.py", line 108, in execute

raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(10.10.180.50:1502)]
