Skip to content
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

Getting error in production #9

Open
zacksiri opened this issue Apr 17, 2015 · 3 comments
Open

Getting error in production #9

zacksiri opened this issue Apr 17, 2015 · 3 comments

Comments

@zacksiri
Copy link

2015-04-17 09:35:02 +0000: Rack app error: #<ArgumentError: wrong number of arguments (0 for 1)>
/home/ubuntu/apps/connectica/shared/bundle/ruby/2.2.0/gems/activesupport-4.1.9/lib/active_support/core_ext/kernel/reporting.rb:82:in `capture'
/home/ubuntu/apps/connectica/shared/bundle/ruby/2.2.0/gems/redirector-1.0.1/lib/redirector/middleware.rb:43:in `with_optional_silencing'
/home/ubuntu/apps/connectica/shared/bundle/ruby/2.2.0/gems/redirector-1.0.1/lib/redirector/middleware.rb:36:in `matched_destination'
/home/ubuntu/apps/connectica/shared/bundle/ruby/2.2.0/gems/redirector-1.0.1/lib/redirector/middleware.rb:32:in `redirect?'
/home/ubuntu/apps/connectica/shared/bundle/ruby/2.2.0/gems/redirector-1.0.1/lib/redirector/middleware.rb:22:in `response'
/home/ubuntu/apps/connectica/shared/bundle/ruby/2.2.0/gems/redirector-1.0.1/lib/redirector/middleware.rb:10:in `call'
/home/ubuntu/apps/connectica/shared/bundle/ruby/2.2.0/gems/activesupport-4.1.9/lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
/home/ubuntu/apps/connectica/shared/bundle/ruby/2.2.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/static.rb:84:in `call'
/home/ubuntu/apps/connectica/shared/bundle/ruby/2.2.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'
/home/ubuntu/apps/connectica/shared/bundle/ruby/2.2.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in `fetch'
/home/ubuntu/apps/connectica/shared/bundle/ruby/2.2.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in `lookup'
/home/ubuntu/apps/connectica/shared/bundle/ruby/2.2.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in `call!'
/home/ubuntu/apps/connectica/shared/bundle/ruby/2.2.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'
/home/ubuntu/apps/connectica/shared/bundle/ruby/2.2.0/gems/railties-4.1.9/lib/rails/engine.rb:514:in `call'
/home/ubuntu/apps/connectica/shared/bundle/ruby/2.2.0/gems/railties-4.1.9/lib/rails/application.rb:144:in `call'
/home/ubuntu/apps/connectica/shared/bundle/ruby/2.2.0/gems/puma-2.11.1/lib/puma/configuration.rb:82:in `call'
/home/ubuntu/apps/connectica/shared/bundle/ruby/2.2.0/gems/puma-2.11.1/lib/puma/server.rb:507:in `handle_request'
/home/ubuntu/apps/connectica/shared/bundle/ruby/2.2.0/gems/puma-2.11.1/lib/puma/server.rb:375:in `process_client'
/home/ubuntu/apps/connectica/shared/bundle/ruby/2.2.0/gems/puma-2.11.1/lib/puma/server.rb:262:in `block in run'
/home/ubuntu/apps/connectica/shared/bundle/ruby/2.2.0/gems/puma-2.11.1/lib/puma/thread_pool.rb:104:in `call'
/home/ubuntu/apps/connectica/shared/bundle/ruby/2.2.0/gems/puma-2.11.1/lib/puma/thread_pool.rb:104:in `block in spawn_thread'

@zacksiri
Copy link
Author

this only happens when we add

    config.redirector.include_query_in_source = true
    config.redirector.silence_sql_logs = true

to config/application.rb

@brianjlandau
Copy link
Contributor

With Ruby 2.2.2 and Rails 4.1.9 (the environment you seem to be running in) I'm seeing passing specs: https://travis-ci.org/vigetlabs/redirector/jobs/59504214

Can you provide some more details about your setup? What do you have ActiveRecord::Base.logger set to?

@thomasgallagher
Copy link

Got a very similar error with:
ruby '2.2.1'
gem 'rails', '4.2.1'

Reproduced on OS X and Heroku.
WEBrick and Puma both produce the same results.
Everything works ok with RAILS_ENV=development

Removing config.redirector.silence_sql_logs = true from application.rb as a workaround for now.

Let me know if I can help debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants