-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[APP SUBMITTED]: TypeError: Object of type bytes is not JSON serializable #8245
Comments
@medariox shouldn't we make sure that hash is always stored utf-8 encoded? Else can you take a look at this? |
INFOPython Version: ERROR2020-07-24 06:02:33 ERROR SNATCHQUEUE-SNATCH-368862 :: [d9c31da] Transmission: Failed Sending Torrent Traceback (most recent call last): File "/opt/medusa/medusa/clients/torrent/generic.py", line 270, in send_torrent if not self._set_torrent_ratio(result): File "/opt/medusa/medusa/clients/torrent/transmission.py", line 149, in _set_torrent_ratio post_data = json.dumps({ File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps return _default_encoder.encode(obj) File "/usr/lib/python3.8/json/encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode return _iterencode(o, 0) File "/usr/lib/python3.8/json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of type bytes is not JSON serializable STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
Fixed in develop branch |
INFOPython Version: ERROR2020-07-24 06:56:22 ERROR SNATCHQUEUE-SNATCH-267435 :: [d9c31da] Transmission: Failed Sending Torrent Traceback (most recent call last): File "/opt/medusa/medusa/clients/torrent/generic.py", line 270, in send_torrent if not self._set_torrent_ratio(result): File "/opt/medusa/medusa/clients/torrent/transmission.py", line 149, in _set_torrent_ratio post_data = json.dumps({ File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps return _default_encoder.encode(obj) File "/usr/lib/python3.8/json/encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode return _iterencode(o, 0) File "/usr/lib/python3.8/json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of type bytes is not JSON serializable STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFOPython Version: ERROR2020-07-30 17:48:11 ERROR SNATCHQUEUE-SNATCH-267435 :: [d9c31da] Transmission: Failed Sending Torrent Traceback (most recent call last): File "/opt/medusa/medusa/clients/torrent/generic.py", line 270, in send_torrent if not self._set_torrent_ratio(result): File "/opt/medusa/medusa/clients/torrent/transmission.py", line 149, in _set_torrent_ratio post_data = json.dumps({ File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps return _default_encoder.encode(obj) File "/usr/lib/python3.8/json/encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode return _iterencode(o, 0) File "/usr/lib/python3.8/json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of type bytes is not JSON serializable STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFOPython Version: ERROR2020-07-31 19:10:10 ERROR SNATCHQUEUE-SNATCH-380654 :: [d9c31da] Transmission: Failed Sending Torrent Traceback (most recent call last): File "/opt/medusa/medusa/clients/torrent/generic.py", line 270, in send_torrent if not self._set_torrent_ratio(result): File "/opt/medusa/medusa/clients/torrent/transmission.py", line 149, in _set_torrent_ratio post_data = json.dumps({ File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps return _default_encoder.encode(obj) File "/usr/lib/python3.8/json/encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode return _iterencode(o, 0) File "/usr/lib/python3.8/json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of type bytes is not JSON serializable STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFOPython Version: ERROR2020-08-02 03:33:42 ERROR SNATCHQUEUE-SNATCH-369048 :: [d9c31da] Transmission: Failed Sending Torrent Traceback (most recent call last): File "/opt/medusa/medusa/clients/torrent/generic.py", line 270, in send_torrent if not self._set_torrent_ratio(result): File "/opt/medusa/medusa/clients/torrent/transmission.py", line 149, in _set_torrent_ratio post_data = json.dumps({ File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps return _default_encoder.encode(obj) File "/usr/lib/python3.8/json/encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode return _iterencode(o, 0) File "/usr/lib/python3.8/json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of type bytes is not JSON serializable STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFOPython Version: ERROR2020-09-18 18:51:29 ERROR SNATCHQUEUE-SNATCH-380654 :: [b352bb6] Transmission: Failed Sending Torrent Traceback (most recent call last): File "/opt/medusa/medusa/clients/torrent/generic.py", line 270, in send_torrent if not self._set_torrent_ratio(result): File "/opt/medusa/medusa/clients/torrent/transmission.py", line 149, in _set_torrent_ratio post_data = json.dumps({ File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps return _default_encoder.encode(obj) File "/usr/lib/python3.8/json/encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode return _iterencode(o, 0) File "/usr/lib/python3.8/json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of type bytes is not JSON serializable STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFOPython Version: ERROR2020-10-01 08:02:16 ERROR SNATCHQUEUE-SNATCH-81831 :: [b352bb6] Transmission: Failed Sending Torrent Traceback (most recent call last): File "/opt/medusa/medusa/clients/torrent/generic.py", line 270, in send_torrent if not self._set_torrent_ratio(result): File "/opt/medusa/medusa/clients/torrent/transmission.py", line 149, in _set_torrent_ratio post_data = json.dumps({ File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps return _default_encoder.encode(obj) File "/usr/lib/python3.8/json/encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode return _iterencode(o, 0) File "/usr/lib/python3.8/json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of type bytes is not JSON serializable STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
@sharkykh should be fixed right? |
Should be really fixed this time. Tnx @sharkykh |
INFOPython Version: ERROR2020-10-17 17:41:12 ERROR SNATCHQUEUE-SNATCH-278329 :: [b352bb6] Transmission: Failed Sending Torrent Traceback (most recent call last): File "/opt/medusa/medusa/clients/torrent/generic.py", line 270, in send_torrent if not self._set_torrent_ratio(result): File "/opt/medusa/medusa/clients/torrent/transmission.py", line 149, in _set_torrent_ratio post_data = json.dumps({ File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps return _default_encoder.encode(obj) File "/usr/lib/python3.8/json/encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode return _iterencode(o, 0) File "/usr/lib/python3.8/json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of type bytes is not JSON serializable STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFOPython Version: ERROR2020-10-23 19:51:39 ERROR POSTPROCESSOR :: [b352bb6] Exception generated: Object of type bytes is not JSON serializable Traceback (most recent call last): File "/usr/local/medusa/medusa/scheduler.py", line 78, in run self.action.run(self.force) File "/usr/local/medusa/medusa/process_tv.py", line 65, in run return ProcessResult(path, process_method).process(force=force, **kwargs) File "/usr/local/medusa/medusa/process_tv.py", line 215, in process if self.move_torrent(info_hash, release_names): File "/usr/local/medusa/medusa/process_tv.py", line 713, in move_torrent torrent_moved = client.move_torrent(info_hash) File "/usr/local/medusa/medusa/clients/torrent/transmission.py", line 245, in move_torrent 'method': 'torrent-set-location', File "/usr/local/lib/python3.7/json/__init__.py", line 231, in dumps return _default_encoder.encode(obj) File "/usr/local/lib/python3.7/json/encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "/usr/local/lib/python3.7/json/encoder.py", line 257, in iterencode return _iterencode(o, 0) File "/usr/local/lib/python3.7/json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of type bytes is not JSON serializable STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFOPython Version: ERROR2020-10-23 19:45:21 ERROR SNATCHQUEUE-SNATCH-289882 :: [b352bb6] Transmission: Failed Sending Torrent Traceback (most recent call last): File "/usr/local/medusa/medusa/clients/torrent/generic.py", line 270, in send_torrent if not self._set_torrent_ratio(result): File "/usr/local/medusa/medusa/clients/torrent/transmission.py", line 151, in _set_torrent_ratio 'method': 'torrent-set', File "/usr/local/lib/python3.7/json/__init__.py", line 231, in dumps return _default_encoder.encode(obj) File "/usr/local/lib/python3.7/json/encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "/usr/local/lib/python3.7/json/encoder.py", line 257, in iterencode return _iterencode(o, 0) File "/usr/local/lib/python3.7/json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of type bytes is not JSON serializable STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFO
Python Version:
3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0]
Operating System:
Linux-5.4.0-40-generic-x86_64-with-glibc2.29
Locale:
UTF-8
Branch: master
Database:
44.15
Commit: d9c31da
Link to Log: https://gist.github.com/4d5bbc00a6705968144841b2e05c9a28
ERROR
STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators
The text was updated successfully, but these errors were encountered: