Bug #65261
AttributeError: 'str' object has no attribute 'get' (suite à montée vers debian 11)
Status:
Fermé
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
14 May 2022
Due date:
% Done:
0%
Estimated time:
Patch proposed:
No
Planning:
No
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/58171/
AttributeError: 'str' object has no attribute 'get' (8 additional frame(s) were not displayed) ... File "rest_framework/views.py", line 480, in raise_uncaught_exception raise exc File "rest_framework/views.py", line 506, in dispatch response = handler(request, *args, **kwargs) File "bijoe/visualization/views.py", line 337, in get all_visualizations = Visualization.from_json(instance.parameters) File "bijoe/visualization/utils.py", line 108, in from_json cube = cls.get_cube(d) File "bijoe/visualization/utils.py", line 93, in get_cube if warehouse.slug and d.get('warehouse_slug'):
Related issues
Associated revisions
History
Updated by Frédéric Péters 15 days ago
- Project changed from Suivi des traces to BiJoe
- Subject changed from AttributeError: 'str' object has no attribute 'get' to AttributeError: 'str' object has no attribute 'get' (suite à montée vers debian 11)
d: '{"drilldown_y": "category", "drilldown_x": "", "cube": "all_formdata", "filters": {"category": [10, 9, 4, 12, 15, 1, 2]}, "measure": "avg_endpoint_delay", "warehouse": "demarches_nancy_test_entrouvert_org", "representation": "table", "loop": ""}'
Suite à la montée de version django-jsonfield 1.0.1-2 → 1.4.0-2 (?), il y a une chaine là où c'est un dictionnaie qui est attendu.
Updated by Frédéric Péters 15 days ago
- Related to Development #64294: autoriser django-jsonfield 1.4 added
Updated by Frédéric Péters 14 days ago
- Status changed from Nouveau to Fermé
Intégré dans la branche de #64294.
general: ensure json columns are of jsonb type (#65261)