Closed znppaed7 closed 2 months ago
I believe this is a bug with Rails. Let me take a look.
I believe this can be fixed by the latest release of protocol-http
.
Basically, Rails forced us to implement as_json
.
There was a minor follow up: https://github.com/socketry/protocol-http/pull/54
Example:
Result: ruby-3.2.1/gems/activesupport-7.0.4.2/lib/active_support/core_ext/object/instance_variables.rb:15:in `map': stack level too deep (SystemStackError)
Problem code:
in file console/terminal/logger.rb
The data in the options field contains cyclic references. The to_json method is overridden in the active_support/core_ext/object/json.rb file.
This method does not know how to resolve cyclic references. This problem exists only in the rails framework. There is no problem without rails framework.
I have no suggestion on how to solve this problem...