Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

aiohttp.client_exceptions.ServerDisconnectedError #35

Open
d081422 opened this issue Jul 16, 2020 · 2 comments
Open

aiohttp.client_exceptions.ServerDisconnectedError #35

d081422 opened this issue Jul 16, 2020 · 2 comments

Comments

@d081422
Copy link

d081422 commented Jul 16, 2020

When I executed the following code
async with ClientSession() as s: client = ChClient(s,url='http://192.168.1.90:8123/',user='algorithmrw',password='dd',database='dd') alive = await client.is_alive() all_rows = await client.fetch("SELECT * FROM phalgorithm.DataAnalyse")
I ran into this problem “aiohttp.client_exceptions.ServerDisconnectedError”.

But,when I execute the insert statement, there is no problem

@maximdanilchenko
Copy link
Owner

@d081422 thank you for the issue! But you gave too little information.

Can you tell more about engine/schema/settings of you database. Something that can give me possibility to repeat the issue?

Also it feels like it is a problem with db settings. Does it works with another clients (console or other connectors)?

Does $ curl 'http://localhost:8123/ping' works?

@jiminHuang
Copy link

For anyone who also encountered the same error, it could due to the CPU blocked code before the query execution under the session which should be moved out of the session. I know it is not the reason for this issue, but the error raised is the same.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants