You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inspired by @abrom in #203:
"I've been doing some digging and have found the cause of the SystemStackError being raised when trying to using meta_request with Rails 7.1.x
In short it comes down to a change in the instrumentation mechanism to include locals:
rails/rails@b451ff0#diff-c92c886291bac7b41bab2a3a884a476ff8edfe2827da7db5ee0bf78c9ad8a17fR250
The problem being that meta_request tries to serialise the render payload to JSON, however the template property of the ActionView objects (if passed through the locals when rendering a template) has cyclic child dependencies (the routes) which can not be serialised.
The simple fix would be to exclude that key (locals) in the serialisation to revert the behaviour to pre-Rails 7.1.x as such: payload.except(:locals)"
0 commit comments