GithubHelp home page GithubHelp logo

Comments (5)

ReneNulschDE avatar ReneNulschDE commented on September 22, 2024 1

Solved with v0.9.6

from mbapi2020.

Joo01 avatar Joo01 commented on September 22, 2024

Same issue here!

Logger: homeassistant
Source: custom_components/mbapi2020/websocket.py:164
Integration: MercedesME 2020 (documentation, issues)
First occurred: 7. November 2023 um 10:42:24 (1 occurrences)
Last logged: 7. November 2023 um 10:42:24

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/mbapi2020/websocket.py", line 164, in _recv
    data = await self._connection.receive()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client_ws.py", line 265, in receive
    await self.pong(msg.data)
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client_ws.py", line 146, in pong
    await self._writer.pong(message)
  File "/usr/local/lib/python3.11/site-packages/aiohttp/http_websocket.py", line 670, in pong
    await self._send_frame(message, WSMsgType.PONG)
  File "/usr/local/lib/python3.11/site-packages/aiohttp/http_websocket.py", line 646, in _send_frame
    self._write(header + mask + message)
  File "/usr/local/lib/python3.11/site-packages/aiohttp/http_websocket.py", line 663, in _write
    raise ConnectionResetError("Cannot write to closing transport")
ConnectionResetError: Cannot write to closing transport

from mbapi2020.

ReneNulschDE avatar ReneNulschDE commented on September 22, 2024

Could you check the logfile if there are other MB2020 messages (Info, Warning, Error) near to the error message? esp lines like these:

INFO (MainThread) [custom_components.mbapi2020.oauth] Start async_refresh_access_token() with refresh_token
INFO (MainThread) [custom_components.mbapi2020.websocket] Watchdog expired – calling _disconnected
INFO (MainThread) [custom_components.mbapi2020.websocket] Connecting to wss://websocket.emea-prod.mobilesdk.mercedes-benz.com/ws
INFO (MainThread) [custom_components.mbapi2020.websocket] Connected to mercedes websocket at wss://websocket.emea-prod.mobilesdk.mercedes-benz.com/ws

from mbapi2020.

ReneNulschDE avatar ReneNulschDE commented on September 22, 2024

@KristianOellegaard : Could you share the stack trace please?
@Joo01 : The error appears in the ping/pong operation to keep the tunnel open. The pong cant be send when the tunnel gets recreated. Is any operation affected besides the unneeded error message?

from mbapi2020.

ReneNulschDE avatar ReneNulschDE commented on September 22, 2024

I have added some additional error handling for this type of error. I'll test it a few days in my environment and will publish a new version next week.

from mbapi2020.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.