rdv-service-public icon indicating copy to clipboard operation
rdv-service-public copied to clipboard

Corriger l’erreur 500 à la première utilisation des review apps

Open n-b opened this issue 3 years ago • 6 comments

À la première pose de Rdv sur une review app, on obtient une erreur 500. En redémarrant le container web sur scalingo, ça se met à fonctionner. C’est systématique ou presque; il ne semble pas y avoir d’autre problème de ce type sur d’autres vues; et ça fonctionne aussi systématiquement après un redémarrage.

Sur sentry.

Les logs:

2022-02-09 18:41:10.368699520 +0100 CET [web-1] I, [2022-02-09T17:41:10.368120 #16] INFO -- : [7302470a-0fd5-4c39-97b8-e849350bf6f9] Started GET "/admin/organisations/1/rdv_wizard_step/new?starts_at=2022-02-10T09%3A30%3A00%2B01%3A00&agent_ids%5B%5D=1&plage_ouverture_location=126+Avenue+Simon+Bolivar%2C+75019%2C+Paris" for 93.2.146.155 at 2022-02-09 17:41:10 +0000
2022-02-09 18:41:10.377421469 +0100 CET [web-1] I, [2022-02-09T17:41:10.376907 #16] INFO -- : [7302470a-0fd5-4c39-97b8-e849350bf6f9] Processing by Admin::RdvWizardStepsController#new as HTML
2022-02-09 18:41:10.377428563 +0100 CET [web-1] I, [2022-02-09T17:41:10.377009 #16] INFO -- : [7302470a-0fd5-4c39-97b8-e849350bf6f9] Parameters: {"starts_at"=>"2022-02-10T09:30:00+01:00", "agent_ids"=>["1"], "plage_ouverture_location"=>"126 Avenue Simon Bolivar, 75019, Paris", "organisation_id"=>"1"}
2022-02-09 18:41:10.399650816 +0100 CET [web-1] I, [2022-02-09T17:41:10.399147 #16] INFO -- : [7302470a-0fd5-4c39-97b8-e849350bf6f9] Completed 500 Internal Server Error in 22ms (ActiveRecord: 3.2ms | Allocations: 6041)
2022-02-09 18:41:10.401826991 +0100 CET [web-1] F, [2022-02-09T17:41:10.401436 #16] FATAL -- : [7302470a-0fd5-4c39-97b8-e849350bf6f9]
2022-02-09 18:41:10.401834759 +0100 CET [web-1] [7302470a-0fd5-4c39-97b8-e849350bf6f9] NoMethodError (super: no superclass method `starts_at=' for #<Rdv >):
2022-02-09 18:41:10.401835812 +0100 CET [web-1] [7302470a-0fd5-4c39-97b8-e849350bf6f9]
2022-02-09 18:41:10.401836831 +0100 CET [web-1] [7302470a-0fd5-4c39-97b8-e849350bf6f9] app/models/rdv.rb:97:in `starts_at='
2022-02-09 18:41:10.401853442 +0100 CET [web-1] [7302470a-0fd5-4c39-97b8-e849350bf6f9] app/form_models/concerns/admin/rdv_wizard_form_concern.rb:30:in `initialize'
2022-02-09 18:41:10.401856546 +0100 CET [web-1] [7302470a-0fd5-4c39-97b8-e849350bf6f9] app/controllers/admin/rdv_wizard_steps_controller.rb:49:in `new'
2022-02-09 18:41:10.401857396 +0100 CET [web-1] [7302470a-0fd5-4c39-97b8-e849350bf6f9] app/controllers/admin/rdv_wizard_steps_controller.rb:49:in `rdv_wizard_for'
2022-02-09 18:41:10.401858070 +0100 CET [web-1] [7302470a-0fd5-4c39-97b8-e849350bf6f9] app/controllers/admin/rdv_wizard_steps_controller.rb:13:in `new'

n-b avatar Feb 09 '22 17:02 n-b