Comments (5)
Solved with v0.9.6
from mbapi2020.
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.
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.
@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.
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)
- AUX heater not working in update HOT 9
- AUX heater not working after update HOT 27
- Smart missing after uninstall and reinstall 0.10/0.10.1 HOT 9
- Remote Lock/Unlock failing HOT 2
- Re-authentication failing HOT 5
- AUxHeat not available anymore HOT 2
- Preheating state HOT 5
- How to use the exclusion of cars by FIN/FIN? HOT 7
- New warning after last update - Problem with fences/violations data at Mercedes database HOT 2
- Error when capabilities are not available
- Authentication failed. Please reauthenticate. HOT 22
- When changing charging program, max_state_of_charge doesn't update HOT 3
- Failing to Authenticate on 2024.3 HOT 22
- Minor spelling issue HOT 1
- Other error Cannot write to closing transport HOT 4
- Car is constantly disconnected after last update HOT 4
- Values jump between actual Value and old Value? HOT 5
- Device Tracker no longer showing correctly HOT 6
- Logs being filled with connecting to Mercedes, connected too Mercedes messages HOT 2
- shouldn't odometer sensor have state_class total_increasing instead of measurement? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mbapi2020.