Attempt to reconnect API after ApiError #3

Open
opened 2025-05-06 16:20:28 -04:00 by morgan · 0 comments
Owner

Part of this should also check to ensure the document matches too.

13:19:23  Running the Python command 'kiconn_sync_to' failed:
Traceback (most recent call last):
  File "/home/morgan/.local/share/FreeCAD/Mod/KiConnect/freecad/kiconnect/commands/Syncable.py", line 41, in Activated
    getattr(feature, self.method)()
  File "/home/morgan/.local/share/FreeCAD/Mod/KiConnect/freecad/kiconnect/board.py", line 218, in sync_to
    commit = board.begin_commit()
  File "/home/morgan/devel/kiconnect/freecad/kiconnect/../../.venv/lib/python3.13/site-packages/kipy/board.py", line 320, in begin_commit
    return Commit(self._kicad.send(command, BeginCommitResponse).id)
  File "/home/morgan/devel/kiconnect/freecad/kiconnect/../../.venv/lib/python3.13/site-packages/kipy/client.py", line 90, in send
    raise ApiError(f"KiCad returned error: {reply.status.error_message}",

KiCad returned error: the provided kicad_token did not match this KiCad instance's token
Part of this should also check to ensure the document matches too. ``` 13:19:23 Running the Python command 'kiconn_sync_to' failed: Traceback (most recent call last): File "/home/morgan/.local/share/FreeCAD/Mod/KiConnect/freecad/kiconnect/commands/Syncable.py", line 41, in Activated getattr(feature, self.method)() File "/home/morgan/.local/share/FreeCAD/Mod/KiConnect/freecad/kiconnect/board.py", line 218, in sync_to commit = board.begin_commit() File "/home/morgan/devel/kiconnect/freecad/kiconnect/../../.venv/lib/python3.13/site-packages/kipy/board.py", line 320, in begin_commit return Commit(self._kicad.send(command, BeginCommitResponse).id) File "/home/morgan/devel/kiconnect/freecad/kiconnect/../../.venv/lib/python3.13/site-packages/kipy/client.py", line 90, in send raise ApiError(f"KiCad returned error: {reply.status.error_message}", KiCad returned error: the provided kicad_token did not match this KiCad instance's token ```
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: morgan/kiconnect#3
No description provided.