Project

General

Profile

Bug #76078

datasource: get_structured_items, erreur sur ds de type jsonvalue (TypeError: the JSON object must be str, bytes or bytearray, not NoneType)

Added by Sentry Io over 1 year ago. Updated over 1 year ago.

Status:
Fermé
Priority:
Normal
Target version:
-
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, '

Associated revisions

Revision 6d355739 (diff)
Added by Lauréline Guérin over 1 year ago

datasource: fix empty jsonvalue (#76078)

History

#1

Updated by Lauréline Guérin over 1 year ago

  • Project changed from Suivi des traces to w.c.s.

la datasource ne contient que:

{type: 'jsonvalue'}

#2

Updated by Robot Gitea over 1 year 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 :

#3

Updated by Robot Gitea over 1 year 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 :

#4

Updated by Robot Gitea over 1 year 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 :

#5

Updated by Transition automatique over 1 year ago

  • Status changed from Résolu (à déployer) to Solution déployée
#6

Updated by Transition automatique about 1 year ago

Automatic expiration

Also available in: Atom PDF