Projet

Général

Profil

Bug #39313

clicrdv: erreur d'attribution des champs d'une fiche

Ajouté par Serghei Mihai il y a environ 4 ans. Mis à jour il y a environ 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
27 janvier 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Nouvelle erreur suite au déploiement du hotfix en prod:

KeyError at /clicrdv/clicrdv-encombrants/create

'fiche'
Request Method: POST
Request URL: https://passerelle-vincennes.entrouvert.com/clicrdv/clicrdv-encombrants/create?orig=demarches.vincennes.fr&algo=sha256&timestamp=2020-01-27T17%3A42%3A49Z&nonce=cf53c8e904dbf7d6d5fa59b38be8c07a&signature=m0NTSZuZnCKEphQJ4dm2nY2fqXlGoo9TbRMpnR3AQcc%3D
Django Version: 1.11.20
Exception Type: KeyError
Exception Value:'fiche'
Exception Location: /usr/lib/python2.7/dist-packages/passerelle/apps/clicrdv/models.py in create_appointment, line 187
Python Executable: /usr/bin/uwsgi-core
Python Version: 2.7.13
Python Path:['.',
 '',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages']
Server time: lun, 27 Jan 2020 18:42:49 +0100

Traceback

•  /usr/lib/python2.7/dist-packages/passerelle/utils/jsonresponse.py in api
• 
            resp = f(*args, **kwargs)

Local Vars

Variable Value
args(<passerelle.apps.clicrdv.views.CreateAppointmentView object at 0x7f4600f23a10>,
 <WSGIRequest: POST '/clicrdv/clicrdv-encombrants/create?orig=demarches.vincennes.fr&algo=sha256&timestamp=2020-01-27T17%3A42%3A49Z&nonce=cf53c8e904dbf7d6d5fa59b38be8c07a&signature=m0NTSZuZnCKEphQJ4dm2nY2fqXlGoo9TbRMpnR3AQcc%3D'>)
eKeyError('fiche',)
extras{'body': '\'{"clicrdv_fiche_str10": "Test", "clicrdv_datetime_raw": "2020-02-01-07:00:00", "clicrdv_lastname": "VIGNAUD", "clicrdv_firstname": "Camille", "str0": "Test", "clicrdv_comments": "254-22436", "clicrdv_intervention_raw": "2713011", "clicrdv_email": "aufra23@gmail.com", "clicrdv_firstphone": "0615620872"}\'',
 'exception': u"'fiche'",
 'method': 'POST',
 'request': <WSGIRequest: POST '/clicrdv/clicrdv-encombrants/create?orig=demarches.vincennes.fr&algo=sha256&timestamp=2020-01-27T17%3A42%3A49Z&nonce=cf53c8e904dbf7d6d5fa59b38be8c07a&signature=m0NTSZuZnCKEphQJ4dm2nY2fqXlGoo9TbRMpnR3AQcc%3D'>}
f<function post at 0x7f46016d9410>
kwargs{'connector': 'clicrdv', 'slug': u'clicrdv-encombrants'}
logger<celery.utils.log.ProcessAwareLogger object at 0x7f4600f59610>
max_size5000
req<WSGIRequest: POST '/clicrdv/clicrdv-encombrants/create?orig=demarches.vincennes.fr&algo=sha256&timestamp=2020-01-27T17%3A42%3A49Z&nonce=cf53c8e904dbf7d6d5fa59b38be8c07a&signature=m0NTSZuZnCKEphQJ4dm2nY2fqXlGoo9TbRMpnR3AQcc%3D'>
self<passerelle.utils.jsonresponse.to_json object at 0x7f46016c8590>

•  /usr/lib/python2.7/dist-packages/passerelle/apps/clicrdv/views.py in post
• 
                data)}

Local Vars

Variable Value
args()
data{u'clicrdv_comments': u'254-22436',
 u'clicrdv_datetime_raw': u'2020-02-01-07:00:00',
 u'clicrdv_email': u'aufra23@gmail.com',
 u'clicrdv_fiche_str10': u'Test',
 u'clicrdv_firstname': u'Camille',
 u'clicrdv_firstphone': u'0615620872',
 u'clicrdv_intervention_raw': u'2713011',
 u'clicrdv_lastname': u'VIGNAUD',
 u'str0': u'Test'}
intervention_idNone
kwargs{'connector': 'clicrdv', 'slug': u'clicrdv-encombrants'}
request<WSGIRequest: POST '/clicrdv/clicrdv-encombrants/create?orig=demarches.vincennes.fr&algo=sha256&timestamp=2020-01-27T17%3A42%3A49Z&nonce=cf53c8e904dbf7d6d5fa59b38be8c07a&signature=m0NTSZuZnCKEphQJ4dm2nY2fqXlGoo9TbRMpnR3AQcc%3D'>
self<passerelle.apps.clicrdv.views.CreateAppointmentView object at 0x7f4600f23a10>

•  /usr/lib/python2.7/dist-packages/passerelle/apps/clicrdv/models.py in create_appointment
• 
                appointment['fiche'][fieldname[14:]] = get_data(fieldname) or ''


Fichiers

Révisions associées

Révision 36e88bc0 (diff)
Ajouté par Serghei Mihai il y a environ 4 ans

clicrdv: fix fiche attribution (#39313)

Révision f1a89c5c (diff)
Ajouté par Serghei Mihai il y a environ 4 ans

clicrdv: fix fiche attribution (#39313)

Historique

#1

Mis à jour par Serghei Mihai il y a environ 4 ans

#2

Mis à jour par Frédéric Péters il y a environ 4 ans

  • Statut changé de Solution proposée à Solution validée
#3

Mis à jour par Frédéric Péters il y a environ 4 ans

  • Statut changé de Solution validée à Résolu (à déployer)

Et poussé, et je vais gérer l'hotfix,

commit 36e88bc0292cfb95868f4de1b64012a98b11f0e6
Author: Serghei Mihai <smihai@entrouvert.com>
Date:   Mon Jan 27 18:54:39 2020 +0100

    clicrdv: fix fiche attribution (#39313)
#4

Mis à jour par Frédéric Péters il y a environ 4 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF