Validation errors disappearing after Avo upgrade #3700
-
So we're way behind the curve, but finally upgrading from Avo 2 -> 3. I've got most of the changes done, but one problem is driving me nuts: ActiveRecord validation errors "disappear" and no longer displayed in the UI. From the browser devtools + Rails logs, the ValidationError is thrown, a 422 response is given, and then the page reloads itself -- so the error never actually becomes visible (and the previous state of the record in question is reloaded in the view). This happens across all of our resources. Any ideas of something I might have missed in the upgrade process? Or config settings I might have screwed up (in Avo or Rails)? I'm... stuck. Rails 7.2 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 18 replies
-
Hey Brad. Do you have any custom JS? My bet is that Turbo is failing somehow. |
Beta Was this translation helpful? Give feedback.
Finally closing the loop here -- I found the bug in our Logger. We had some... less than perfect code for concatting messages that was accidentally being called on
error
as well, and barfed when passed anError
instance (apparently we've never actually passed the fullError
object to the logger...).So this whole thing was our fault. Thank you again for your time here and the breadcrumbs.