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
can't modify frozen Array #751
Comments
This looks similar to #668. |
I would first try restarting spring and trying again.
|
Doesn't make any difference; I already tried that. |
This doesn't appear to be an issue with OmniAuth but rather with the way in which the middleware is being adding. Check out this GH issue for more information: smartinez87/exception_notification#165 Feel free to open this back up if you're still having issues. |
I don't see anything in that other issue which explains what I'm doing wrong or what I could change to avoid this. Please can you elaborate? Like I said, I'm invoking |
By the way, I don't have permission to reopen the issue. |
TL;DR: This probably means that one of your providers is misconfigured. Check for missing I just ran into this issue. In my case, I had forgotten to require the provider gem that I was trying to configure. In the case issue above #668 the problem was that the wrong provider name was used. It appears that something is swallowing exceptions from the OmniAuth builder, leaving the system in an invalid state which eventually leads to the unhelpful and misleading In the Omniauth Builder, it raises a See: https://github.com/intridea/omniauth/blob/master/lib/omniauth/builder.rb#L50 |
@aspiers I have the same error with Omniauth. But It happens when I tried register middleware when it has been already registered. > Rails.application.config.middleware
=> #<ActionDispatch::MiddlewareStack:0x0000000c18fhw3 @middlewares=[ ... OmniAuth::Builder]>
> Rails.application.config.middleware.use OmniAuth::Builder
RuntimeError: can't modify frozen Array
from /home/vagrant/.rvm/gems/ruby-2.1.2/gems/actionpack-4.0.0/lib/action_dispatch/middleware/stack.rb:112:in `push'
> Rails.application.config.middleware.middlewares.frozen?
=> true Array is frozen and you can't modify it |
I have the same error. I moved it to application.rb like so, and it worked: (adapted for your code)
Just a thought. |
☝️ 👍 Re-open if need be. |
The error Im getting is: |
I had the same problem in production but found that it goes away when setting It's fine for the demo site I'm building, but it comes at a performance cost according to the note in
|
I have the following
config/initializers/omniauth.rb
:but then this happens:
The text was updated successfully, but these errors were encountered: