ocpp: Error in connection handler

Maybe you have a clue why this happens quite often.

Logger: websockets.server Source: custom_components/ocpp/sensor.py:254 First occurred: 9:26:24 (42 occurrences) Last logged: 9:51:27

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/websockets/server.py", line 191, in handler
    await self.ws_handler(self, path)
  File "/config/custom_components/ocpp/sensor.py", line 108, in on_connect
    await cp.start()
  File "/config/custom_components/ocpp/sensor.py", line 270, in start
    await asyncio.gather(super().start(), self.post_connect())
  File "/config/custom_components/ocpp/sensor.py", line 145, in post_connect
    await self.trigger_boot_notification()
  File "/config/custom_components/ocpp/sensor.py", line 177, in trigger_boot_notification
    resp = await self.call(req)
  File "/usr/local/lib/python3.8/site-packages/ocpp/charge_point.py", line 264, in call
    await self._get_specific_response(call.unique_id,
  File "/config/custom_components/ocpp/sensor.py", line 254, in _get_specific_response
    resp = await super()._get_specific_response(unique_id, timeout)
  File "/usr/local/lib/python3.8/site-packages/ocpp/charge_point.py", line 292, in _get_specific_response
    response = await asyncio.wait_for(self._response_queue.get(),
  File "/usr/local/lib/python3.8/asyncio/tasks.py", line 501, in wait_for
    raise exceptions.TimeoutError()
asyncio.exceptions.TimeoutError

Used HA: Home Assistant 2021.3.4 (Home Assistant OS) Used component: 35df000

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 82 (73 by maintainers)

Commits related to this issue

Most upvoted comments

well, at least it is dping something. Finally!

i addded a PR for handling the timestamps