Development #83552
Ne pas tenter d'uploader les rendez-vous dont le numéro de pré-demande ne valide pas le pattern
Début:
15 novembre 2023
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
Réponse à ces warnings dans les logs
nov. 15 17:21:13 hub-ants /usr/lib/ants-hub/manage.py[1411299]: WARNING ants_hub.api.ants unable to push rdv(2023-11-20 10:00:00+00:00 / 64s0b4u4n2) of lieu Mairie de Saint-Lo / Pl. Général de Gaulle / Saint-Lô: ANTSError('422 Client Error: Unprocessable Entity for url: https://api-coordination.rendezvouspasseport.ants.gouv.fr/api/appointments?application_id=64s0b4u4n2&management_url=&meeting_point=Mairie+de+Saint-Lo&meeting_point_id=32&appointment_date=2023-11-20+11%3A00%3A00')
Un rejeu en console donne l'explication :
~/wd/eo/ants-hub$ http POST 'https://api-coordination.rendezvouspasseport.ants.gouv.fr/api/appointments?application_id=64s0b4u4n2&management_url=&meeting_point=Mairie+de+Saint-Lo&meeting_point_id=32&appointment_date=2023-11-20+11%3A00%3A00' x-rdv-opt-auth-token:xyz HTTP/1.1 422 Unprocessable Entity Connection: keep-alive Content-Length: 168 Content-Type: application/json Date: Wed, 15 Nov 2023 16:20:01 GMT Strict-Transport-Security: max-age=31536000 X-Request-ID: 26a87032-42d6-4f49-a76a-bbbaea824971 { "detail": [ { "ctx": { "pattern": "^[A-Z0-9]{10}$" }, "loc": [ "query", "application_id" ], "msg": "string does not match regex \"^[A-Z0-9]{10}$\"", "type": "value_error.str.regex" } ] }
D'abord mettre le numéro en majuscule, après vérifier si il matche ou pas la regexp.
Historique
Mis à jour par Robot Gitea il y a 6 mois
- Statut changé de Nouveau à Solution proposée
Benjamin Dauvergne (bdauvergne) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/ants-hub/pulls/9
- Titre : api/ants: prevent too long transactions when pushing rdvs (#83552)
- Modifications : https://git.entrouvert.org/entrouvert/ants-hub/pulls/9/files
Mis à jour par Robot Gitea il y a 6 mois
Benjamin Dauvergne (bdauvergne) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/ants-hub/pulls/10
- Titre : Ne pas tenter d'uploader les rendez-vous dont le numéro de pré-demande ne valide pas le pattern
- Modifications : https://git.entrouvert.org/entrouvert/ants-hub/pulls/10/files
Mis à jour par Robot Gitea il y a 6 mois
- Statut changé de Solution proposée à Solution validée
Nicolas Roche (nroche) a approuvé une pull request sur Gitea concernant cette demande :
Mis à jour par Robot Gitea il y a 6 mois
- Statut changé de Solution validée à Résolu (à déployer)
Benjamin Dauvergne (bdauvergne) a mergé une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/ants-hub/pulls/10
- Titre : Ne pas tenter d'uploader les rendez-vous dont le numéro de pré-demande ne valide pas le pattern
- Modifications : https://git.entrouvert.org/entrouvert/ants-hub/pulls/10/files
Mis à jour par Benjamin Dauvergne il y a 4 mois
- Statut changé de Résolu (à déployer) à Solution déployée