-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API only, multi DB. Undefined method `id' for {}:Hash #50398
Comments
Can you create a sample app that reproduces the issue? |
We ran into this as well, but ended up finding that it wasn't an issue with Rails itself, but rather an incompatibility between Rails / Rack and WebMock's |
In order to isolate the problem to either Rails or RSpec. Please create a reproducible test case using this template: https://github.com/rails/rails/blob/main/guides/bug_report_templates/action_controller.rb if this is not applicable, use the genertic template: https://github.com/rails/rails/blob/main/guides/bug_report_templates/generic.rb |
Did you do this in
|
@maxrosecollins we patched module WebMock
class RackResponse < Response
def session
nil
end
def session_options
nil
end
end
end |
It looks like it is the same issue then. |
This looks like it's resolved, and the problem was a third party. Please re-open if you have new information or open a new bug. 🙇 |
For anyone else coming here via Google, looks like this is related to |
I am upgrading to 7.1.2 from 7.0.7.
It is api_only.
I am using multi db.
I am pretty sure it is related to adding session management back into an api only app and using multi db but I don't know the root cause.
After upgrading, to 7.1.2 I get errors on all request specs.
The text was updated successfully, but these errors were encountered: