-
-
Notifications
You must be signed in to change notification settings - Fork 30.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't handle event type ConnectionClosed when role=SERVER and state=SEND_RESPONSE #43384
Comments
The issue is likely in upstream httpx library. Would you be able to try to reproduce this with pure python and the httpx library? It should be reported upstream very likely. |
Would love to do that, but have no idea how. Can you give some instructions? |
Hmm. This looks very similar to: encode/httpx#96 |
I see. Wait for an answer in that thread?
Op vr 20 nov. 2020 om 09:13 schreef Joakim Plate <notifications@github.com>:
… Hmm. This looks very similar to: encode/httpx#96
<encode/httpx#96>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#43384 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQWDH5JOKSFUA5RUT3JL5J3SQYQMLANCNFSM4T3FUEOQ>
.
|
rest documentation |
ehh.. I am quite a newbie here. have no idea what to do with these links...
Op vr 20 nov. 2020 om 16:19 schreef probot-home-assistant[bot] <
notifications@github.com>:
… rest documentation <https://www.home-assistant.io/integrations/rest>
rest source
<https://github.com/home-assistant/core/tree/dev/homeassistant/components/rest>
(message by IssueLinks)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#43384 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQWDH5LUUVOZDHDV7JPQF2DSQ2CG5ANCNFSM4T3FUEOQ>
.
|
problem solved!
No it works like a charm. |
Looks like the server was being overloaded and closing the connection. It seems like this has been solved by reducing the number of calls to the server. |
The problem
The rest integration stops with the error:Error fetching data: http://IP_ADDRESS/get-status failed with "can't handle event type ConnectionClosed when role=SERVER and state=SEND_RESPONSE"
Logger: homeassistant.components.rest.data
Source: components/rest/data.py:63
Integration: rest (documentation, issues)
issuing the command in a browser gives back a proper JSON string. The rest call works
Environment
Problem-relevant
configuration.yaml
configuration.yaml
name: achterpui_temperatuur
resource: http://IP_ADDRESS/PASSWORD/get-status
value_template: "{{ value_json.response.thermometers[0].te }}"
unit_of_measurement: '°C'
Traceback/Error logs
Additional information
The text was updated successfully, but these errors were encountered: