when using a dnode, conn throws an exception
When using a dnode, create a connect like this: taos.connect(host=self.host, port=self.port, user=self.user, password=self.pwd, database=self.db, timezone=self.tz).When I use this connect object to query sql twice,it throws an exception:[0x000b]: Unable to establish connection
But, When I create a connect like this: taos.connect(user=self.user, password=self.pwd, database=self.db, timezone=self.tz), it's all ok.In addition, the passing host and port are displayed with multiple dnodes without error too.

system info:

What version of TDengine you are using? Please check if the taosd daemon is still working or had been restarted?
@sangshuduo Hi
TDengine version: 3.0.2.2
taospy version: 2.2.1
I'm sure the taosd daemon didn't restart.
I try again, like this:

taospy version is pretty old. Please use latest taospy with pip install -U taospy. And please upgrade your python to 3.7 or up since the taospy 2.4.0+ requests a newer Python.
Today I tried the latest version of taos,but the problem still persists.
taospy version: 2.6.10
python version: 3.7.14

Could you please reproduce the problem then upload the taosdlog from the machine taosd running and taoslog here? It's better to clean old log first. The default log file path is /var/log/taos. Thanks.