Bug #78235
as-tech: TypeError: Object of type bytes is not JSON serializable
Status:
Nouveau
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
07 June 2023
Due date:
% Done:
0%
Estimated time:
Patch proposed:
No
Planning:
No
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/111340/
APIError: AS-TECH response: 403 Forbidden (3 additional frame(s) were not displayed) ... File "passerelle/apps/astech/models.py", line 269, in company company = self.call( File "passerelle/apps/astech/models.py", line 214, in call authorization = self.get_authorization() File "passerelle/apps/astech/models.py", line 196, in get_authorization connection = self.get_connections()['connection'] File "passerelle/apps/astech/models.py", line 181, in get_connections connections = self.call_json('get', url) File "passerelle/apps/astech/models.py", line 163, in call_json raise APIError( TypeError: Object of type bytes is not JSON serializable (13 additional frame(s) were not displayed) ... File "json/encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "json/encoder.py", line 257, in iterencode return _iterencode(o, 0) File "passerelle/utils/jsonresponse.py", line 43, in default return super().default(o) File "django/core/serializers/json.py", line 105, in default return super().default(o) File "json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} '
History
Updated by Serghei Mihai over 1 year ago
- Project changed from Suivi des traces to Passerelle
- Subject changed from TypeError: Object of type bytes is not JSON serializable to as-tech: TypeError: Object of type bytes is not JSON serializable