Bug #76078
datasource: get_structured_items, erreur sur ds de type jsonvalue (TypeError: the JSON object must be str, bytes or bytearray, not NoneType)
Start date:
31 March 2023
Due date:
% Done:
0%
Estimated time:
Patch proposed:
No
Planning:
No
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/109446/
TypeError: the JSON object must be str, bytes or bytearray, not NoneType (14 additional frame(s) were not displayed) ... File "wcs/fields.py", line 2329, in perform_more_widget_changes items = data_sources.get_items(self.data_source, include_disabled=self.display_disabled_items) File "wcs/data_sources.py", line 238, in get_items structured_items = get_structured_items(data_source, mode=mode, include_disabled=include_disabled) File "wcs/data_sources.py", line 384, in get_structured_items items = _get_structured_items(data_source, mode=mode, raise_on_error=raise_on_error) File "wcs/data_sources.py", line 417, in _get_structured_items value = json.loads(data_source.get('value')) File "__init__.py", line 339, in loads raise TypeError(f'the JSON object must be str, bytes or bytearray, '
History
Updated by Lauréline Guérin 2 months ago
- Project changed from Suivi des traces to w.c.s.
la datasource ne contient que:
{type: 'jsonvalue'}
Updated by Robot Gitea 2 months ago
- Status changed from Nouveau to Solution proposée
- Assignee set to Lauréline Guérin
Lauréline Guérin (lguerin) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/217
- Titre : datasource: fix empty jsonvalue (#76078)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/217/files
Updated by Robot Gitea 2 months ago
- Status changed from Solution proposée to Solution validée
Frédéric Péters (fpeters) a approuvé une pull request sur Gitea concernant cette demande :
Updated by Robot Gitea 2 months ago
- Status changed from Solution validée to Résolu (à déployer)
Lauréline Guérin (lguerin) a mergé une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/217
- Titre : datasource: fix empty jsonvalue (#76078)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/217/files
Updated by Transition automatique 2 months ago
- Status changed from Résolu (à déployer) to Solution déployée