[Bug] Fix Snapcast plugin #338

Closed
opened 2023-11-05 21:51:22 +01:00 by blacklight · 0 comments
Owner

Either a regression has been introduced at some point, or something has changed in the Snapcast protocol specs:

2023-11-05 21:49:33,522|ERROR|platypush.plugins|Unsupported type <class 'dict'> for Snapcast request: {'id': 6, 'jsonrpc': '2.0', 'method': 'Server.GetStatus'}
Traceback (most recent call last):
  File "/usr/lib/python3.9/dist-packages/platypush/plugins/__init__.py", line 33, in _execute_action
    result = f(*args, **kwargs)
  File "/usr/lib/python3.9/dist-packages/platypush/plugins/music/snapcast/__init__.py", line 217, in status
    return self._status(sock)
  File "/usr/lib/python3.9/dist-packages/platypush/plugins/music/snapcast/__init__.py", line 104, in _status
    self._send(sock, request)
  File "/usr/lib/python3.9/dist-packages/platypush/plugins/music/snapcast/__init__.py", line 61, in _send
    raise RuntimeError(
RuntimeError: Unsupported type <class 'dict'> for Snapcast request: {'id': 6, 'jsonrpc': '2.0', 'method': 'Server.GetStatus'}
Either a regression has been introduced at some point, or something has changed in the Snapcast protocol specs: ``` 2023-11-05 21:49:33,522|ERROR|platypush.plugins|Unsupported type <class 'dict'> for Snapcast request: {'id': 6, 'jsonrpc': '2.0', 'method': 'Server.GetStatus'} Traceback (most recent call last): File "/usr/lib/python3.9/dist-packages/platypush/plugins/__init__.py", line 33, in _execute_action result = f(*args, **kwargs) File "/usr/lib/python3.9/dist-packages/platypush/plugins/music/snapcast/__init__.py", line 217, in status return self._status(sock) File "/usr/lib/python3.9/dist-packages/platypush/plugins/music/snapcast/__init__.py", line 104, in _status self._send(sock, request) File "/usr/lib/python3.9/dist-packages/platypush/plugins/music/snapcast/__init__.py", line 61, in _send raise RuntimeError( RuntimeError: Unsupported type <class 'dict'> for Snapcast request: {'id': 6, 'jsonrpc': '2.0', 'method': 'Server.GetStatus'} ```
blacklight added the
bug
label 2023-11-05 21:51:22 +01:00
blacklight self-assigned this 2023-11-05 21:51:22 +01:00
blacklight added this to the integrations project 2023-11-05 21:51:22 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
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: platypush/platypush#338
No description provided.