- [control.py:396-log_commands()]
--- Logging error ---
Traceback (most recent call last):
File "/srv/src/control.py", line 145, in run
self.process(logger, json.loads(data))
File "/usr/local/lib/python3.8/json/__init__.py", line 343, in loads
s = s.decode(detect_encoding(s), 'surrogatepass')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf6 in position 173: invalid start byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/logging/__init__.py", line 1085, in emit
msg = self.format(record)
File "/usr/local/lib/python3.8/logging/__init__.py", line 929, in format
return fmt.format(record)
File "/usr/local/lib/python3.8/logging/__init__.py", line 668, in format
record.message = record.getMessage()
File "/usr/local/lib/python3.8/logging/__init__.py", line 373, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "/usr/local/lib/python3.8/threading.py", line 890, in _bootstrap
self._bootstrap_inner()
File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/srv/src/control.py", line 148, in run
logger.error(SU.red(f'[ECI] Error while processing request: {data}'), e)
Message: '\x1b[31m[ECI] Error while processing request: b\'{ "action": "on_metadata", "data": {\\n "album": "Good Morning Susie Soho", "track": "1", "date": "2000",\\n "kind": "{audio=2;video=0;midi=0}", "year": "2000",\\n "artist": "Esbj\\xf6rn Svensson Trio", "decoder": "MAD",\\n "title": "Somewhere else before",\\n "filename": "../audio/fallback/01 Somewhere else before.mp3",\\n "temporary": "false", "source": "fallback_folder", "tracknumber": "1",\\n "initial_uri": "../audio/fallback/01 Somewhere else before.mp3",\\n "playlist_length": "13", "status": "playing",\\n "on_air": "2021/07/05 18:59:48", "rid": "1", "genre": "Noise",\\n "playlist_position": "3"\\n}, "track_duration": "335.2" }\'\x1b[0m'
Arguments: (UnicodeDecodeError('utf-8', b'{ "action": "on_metadata", "data": {\n "album": "Good Morning Susie Soho", "track": "1", "date": "2000",\n "kind": "{audio=2;video=0;midi=0}", "year": "2000",\n "artist": "Esbj\xf6rn Svensson Trio", "decoder": "MAD",\n "title": "Somewhere else before",\n "filename": "../audio/fallback/01 Somewhere else before.mp3",\n "temporary": "false", "source": "fallback_folder", "tracknumber": "1",\n "initial_uri": "../audio/fallback/01 Somewhere else before.mp3",\n "playlist_length": "13", "status": "playing",\n "on_air": "2021/07/05 18:59:48", "rid": "1", "genre": "Noise",\n "playlist_position": "3"\n}, "track_duration": "335.2" }', 173, 174, 'invalid start byte'),)
--- Logging error ---
Traceback (most recent call last):
File "/srv/src/control.py", line 145, in run
self.process(logger, json.loads(data))
File "/usr/local/lib/python3.8/json/__init__.py", line 343, in loads
s = s.decode(detect_encoding(s), 'surrogatepass')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf6 in position 173: invalid start byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/logging/__init__.py", line 1085, in emit
msg = self.format(record)
File "/usr/local/lib/python3.8/logging/__init__.py", line 929, in format
return fmt.format(record)
File "/usr/local/lib/python3.8/logging/__init__.py", line 668, in format
record.message = record.getMessage()
File "/usr/local/lib/python3.8/logging/__init__.py", line 373, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "/usr/local/lib/python3.8/threading.py", line 890, in _bootstrap
self._bootstrap_inner()
File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/srv/src/control.py", line 148, in run
logger.error(SU.red(f'[ECI] Error while processing request: {data}'), e)
Message: '\x1b[31m[ECI] Error while processing request: b\'{ "action": "on_metadata", "data": {\\n "album": "Good Morning Susie Soho", "track": "1", "date": "2000",\\n "kind": "{audio=2;video=0;midi=0}", "year": "2000",\\n "artist": "Esbj\\xf6rn Svensson Trio", "decoder": "MAD",\\n "title": "Somewhere else before",\\n "filename": "../audio/fallback/01 Somewhere else before.mp3",\\n "temporary": "false", "source": "fallback_folder", "tracknumber": "1",\\n "initial_uri": "../audio/fallback/01 Somewhere else before.mp3",\\n "playlist_length": "13", "status": "playing",\\n "on_air": "2021/07/05 18:59:48", "rid": "1", "genre": "Noise",\\n "playlist_position": "3"\\n}, "track_duration": "335.2" }\'\x1b[0m'
Arguments: (UnicodeDecodeError('utf-8', b'{ "action": "on_metadata", "data": {\n "album": "Good Morning Susie Soho", "track": "1", "date": "2000",\n "kind": "{audio=2;video=0;midi=0}", "year": "2000",\n "artist": "Esbj\xf6rn Svensson Trio", "decoder": "MAD",\n "title": "Somewhere else before",\n "filename": "../audio/fallback/01 Somewhere else before.mp3",\n "temporary": "false", "source": "fallback_folder", "tracknumber": "1",\n "initial_uri": "../audio/fallback/01 Somewhere else before.mp3",\n "playlist_length": "13", "status": "playing",\n "on_air": "2021/07/05 18:59:48", "rid": "1", "genre": "Noise",\n "playlist_position": "3"\n}, "track_duration": "335.2" }', 173, 174, 'invalid start byte'),)