Skip to content

RuntimeError: Unexpected message in the queue #13

Description

@mrk-its
2024-11-01 16:02:26 5559c4b0-can2mqtt can2mqtt.entities  ERROR unknown exception
Traceback (most recent call last):
  File "/root/.local/lib/python3.11/site-packages/can2mqtt/can2mqtt.py", line 285, in can_reader
    await register_node(mqtt_client, mqtt_topic_prefix, can_network, node)
  File "/root/.local/lib/python3.11/site-packages/can2mqtt/can2mqtt.py", line 109, in register_node
    vendor_id = await node.sdo["Identity"]["VendorId"].aget_raw()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/canopen/variable.py", line 88, in aget_raw
    return self._get_raw(await self.aget_data())
                         ^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/canopen/sdo/base.py", line 187, in aget_data
    return await self.sdo_node.aupload(self.od.index, self.od.subindex)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/canopen/sdo/client.py", line 152, in aupload
    return await asyncio.to_thread(self.upload, index, subindex)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/threads.py", line 25, in to_thread
    return await loop.run_in_executor(None, func_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/canopen/sdo/client.py", line 123, in upload
    with self.open(index, subindex, buffering=0) as fp:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/canopen/sdo/client.py", line 239, in open
    raw_stream = ReadableStream(self, index, subindex)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/canopen/sdo/client.py", line 285, in __init__
    response = sdo_client.request_response(request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/canopen/sdo/client.py", line 84, in request_response
    raise RuntimeError("Unexpected message in the queue")
RuntimeError: Unexpected message in the queue

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions