Hi @armand and @gopher.ny,
Maybe you could help me out with a problem I have. I am trying to integrate Home Connect appliances using their API. For now if I start the event stream and turn on/off my dishwasher I receive the correct information. But after around one minute the connection is closed with the error below:
2021-11-02 11:10:22.644 pm Received eventstream status message: STOP: EventStream Stopped
2021-11-02 11:10:22.532 pm Received eventstream status message: ERROR: Exception during EventStream Request: java.lang.Exception: Unexpected length of data line.
2021-11-02 11:10:22.502 pm Received eventstream status message: ERROR: Unexpected length of data line.
2021-11-02 11:09:26.846 pm Received eventstream status message: START: EventStream Started
The code I'm using is this:
headers: ([ 'Accept': 'text/event-stream' ] << authHeaders())])
I tried every possible combination of the parameters but all of them gave me the same error. Do you have an idea of what could be wrong?
I found this while searching around:
Could this be a problem on how hubitat reads the data received?