Project

General

Profile

Development #49797

crash quand un compte FC n'a pas d'infos associée

Added by Frédéric Péters 10 months ago. Updated 7 months ago.

Status:
En cours
Priority:
Normal
Target version:
-
Start date:
01 Jan 2021
Due date:
% Done:

0%

Estimated time:
Hors marché:
No
Patch proposed:
Yes
Planning:
No

Description

Internal Server Error: /api/users/
...
File "/usr/lib/python3/dist-packages/rest_framework/serializers.py" in to_representation
  527.                 ret[field.field_name] = field.to_representation(attribute)

File "/usr/lib/python3/dist-packages/rest_framework/fields.py" in to_representation
  1893.         return method(value)

File "/usr/lib/python3/dist-packages/authentic2_cut/apps.py" in get_address_fc
  301.                     return obj.fc_accounts.all()[0].get_user_info().get('address')

File "/usr/lib/python3/dist-packages/authentic2_auth_fc/models.py" in get_user_info
  115.         return json.loads(self.user_info)

File "/usr/lib/python3.7/json/__init__.py" in loads
  341.             raise TypeError(f'the JSON object must be str, bytes or bytearray, '

Exception Type: TypeError at /api/users/
Exception Value: the JSON object must be str, bytes or bytearray, not NoneType

(appel via un hook de authentic2-cut mais correction a priori à poser dans authentic2-auth-fc.


Files


Related issues

Related to Plugin FS FranceConnect - Bug #52929: AttributeError: 'NoneType' object has no attribute 'fc_accounts'Solution déployée10 Apr 2021

Actions

History

#1

Updated by Benjamin Dauvergne 7 months ago

  • Assignee set to Benjamin Dauvergne
#2

Updated by Benjamin Dauvergne 7 months ago

#3

Updated by Benjamin Dauvergne 7 months ago

  • Status changed from Solution proposée to En cours

Je vais tout traiter dans #52929.

#4

Updated by Benjamin Dauvergne 7 months ago

  • Related to Bug #52929: AttributeError: 'NoneType' object has no attribute 'fc_accounts' added

Also available in: Atom PDF