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

TypeError: can't cast ActionDispatch::Http::UploadedFile to string #14

Open
maxgronlund opened this issue Jul 27, 2014 · 0 comments
Open
Labels

Comments

@maxgronlund
Copy link
Owner

Check full details on Airbrake: #410215538

Backtrace:

[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/connection_adapters/abstract/quoting.rb:76:in type_cast
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/connection_adapters/postgresql/quoting.rb:136:in type_cast
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/connection_adapters/postgresql_adapter.rb:828:in block in exec_cache
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/connection_adapters/postgresql_adapter.rb:827:in map
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/connection_adapters/postgresql_adapter.rb:827:in exec_cache
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:155:in exec_delete
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:101:in update
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in update
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/relation.rb:77:in _update_record
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/persistence.rb:493:in _update_record
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/locking/optimistic.rb:70:in _update_record
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/attribute_methods/dirty.rb:83:in _update_record
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/callbacks.rb:310:in block in _update_record
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:113:in call
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:113:in call
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:215:in block in halting_and_conditional
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:86:in call
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:86:in run_callbacks
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/callbacks.rb:310:in _update_record
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/timestamp.rb:70:in _update_record
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/persistence.rb:482:in create_or_update
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/callbacks.rb:302:in block in create_or_update
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:113:in call
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:113:in call
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:166:in block in halting
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:166:in call
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:166:in block in halting
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:215:in call
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:215:in block in halting_and_conditional
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:86:in call
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:86:in run_callbacks
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/callbacks.rb:302:in create_or_update
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/persistence.rb:103:in save
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/validations.rb:51:in save
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/attribute_methods/dirty.rb:21:in save
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/transactions.rb:268:in block (2 levels) in save
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/transactions.rb:329:in block in with_transaction_returning_status
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:199:in transaction
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/transactions.rb:208:in transaction
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/transactions.rb:326:in with_transaction_returning_status
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/transactions.rb:268:in block in save
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/transactions.rb:283:in rollback_active_record_state!
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/transactions.rb:267:in save
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/persistence.rb:232:in block in update
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/transactions.rb:329:in block in with_transaction_returning_status
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in block in transaction
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in within_new_transaction
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in transaction
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/transactions.rb:208:in transaction
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/transactions.rb:326:in with_transaction_returning_status
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/persistence.rb:230:in update
[PROJECT_ROOT]/app/controllers/account/music_requests_controller.rb:149:in update
[GEM_ROOT]/gems/actionpack-4.1.4/lib/action_controller/metal/implicit_render.rb:4:in send_action
[GEM_ROOT]/gems/actionpack-4.1.4/lib/abstract_controller/base.rb:189:in process_action
[GEM_ROOT]/gems/actionpack-4.1.4/lib/action_controller/metal/rendering.rb:10:in process_action
[GEM_ROOT]/gems/actionpack-4.1.4/lib/abstract_controller/callbacks.rb:20:in block in process_action
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:113:in call
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:113:in call
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:166:in block in halting
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:166:in call
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:166:in block in halting
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:149:in call
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:149:in block in halting_and_conditional
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:229:in call
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:229:in block in halting
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:229:in call
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:229:in block in halting
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:166:in call
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:166:in block in halting
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:166:in call
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:166:in block in halting
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:166:in call
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:166:in block in halting
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:86:in call
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:86:in run_callbacks
[GEM_ROOT]/gems/actionpack-4.1.4/lib/abstract_controller/callbacks.rb:19:in process_action
[GEM_ROOT]/gems/actionpack-4.1.4/lib/action_controller/metal/rescue.rb:29:in process_action
[GEM_ROOT]/gems/actionpack-4.1.4/lib/action_controller/metal/instrumentation.rb:31:in block in process_action
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/notifications.rb:159:in block in instrument
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/notifications/instrumenter.rb:20:in instrument
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/notifications.rb:159:in instrument
[GEM_ROOT]/gems/actionpack-4.1.4/lib/action_controller/metal/instrumentation.rb:30:in process_action
[GEM_ROOT]/gems/actionpack-4.1.4/lib/action_controller/metal/params_wrapper.rb:250:in process_action
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/railties/controller_runtime.rb:18:in process_action
[GEM_ROOT]/gems/actionpack-4.1.4/lib/abstract_controller/base.rb:136:in process
[GEM_ROOT]/gems/actionview-4.1.4/lib/action_view/rendering.rb:30:in process
[GEM_ROOT]/gems/actionpack-4.1.4/lib/action_controller/metal.rb:196:in dispatch
[GEM_ROOT]/gems/actionpack-4.1.4/lib/action_controller/metal/rack_delegation.rb:13:in dispatch
[GEM_ROOT]/gems/actionpack-4.1.4/lib/action_controller/metal.rb:232:in block in action
[GEM_ROOT]/gems/actionpack-4.1.4/lib/action_dispatch/routing/route_set.rb:82:in call
[GEM_ROOT]/gems/actionpack-4.1.4/lib/action_dispatch/routing/route_set.rb:82:in dispatch
[GEM_ROOT]/gems/actionpack-4.1.4/lib/action_dispatch/routing/route_set.rb:50:in call
[GEM_ROOT]/gems/actionpack-4.1.4/lib/action_dispatch/journey/router.rb:71:in block in call
[GEM_ROOT]/gems/actionpack-4.1.4/lib/action_dispatch/journey/router.rb:59:in each
[GEM_ROOT]/gems/actionpack-4.1.4/lib/action_dispatch/journey/router.rb:59:in call
[GEM_ROOT]/gems/actionpack-4.1.4/lib/action_dispatch/routing/route_set.rb:678:in call
[GEM_ROOT]/gems/rack-1.5.2/lib/rack/etag.rb:23:in call
[GEM_ROOT]/gems/rack-1.5.2/lib/rack/conditionalget.rb:35:in call
[GEM_ROOT]/gems/rack-1.5.2/lib/rack/head.rb:11:in call
[GEM_ROOT]/gems/actionpack-4.1.4/lib/action_dispatch/middleware/params_parser.rb:27:in call
[GEM_ROOT]/gems/actionpack-4.1.4/lib/action_dispatch/middleware/flash.rb:254:in call
[GEM_ROOT]/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:225:in context
[GEM_ROOT]/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220:in call
[GEM_ROOT]/gems/actionpack-4.1.4/lib/action_dispatch/middleware/cookies.rb:560:in call
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/query_cache.rb:36:in call
[GEM_ROOT]/gems/activerecord-4.1.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in call
[GEM_ROOT]/gems/actionpack-4.1.4/lib/action_dispatch/middleware/callbacks.rb:29:in block in call
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:82:in run_callbacks
[GEM_ROOT]/gems/actionpack-4.1.4/lib/action_dispatch/middleware/callbacks.rb:27:in call
[GEM_ROOT]/gems/actionpack-4.1.4/lib/action_dispatch/middleware/remote_ip.rb:76:in call
[GEM_ROOT]/gems/actionpack-4.1.4/lib/action_dispatch/middleware/debug_exceptions.rb:17:in call
[GEM_ROOT]/gems/actionpack-4.1.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in call
[GEM_ROOT]/gems/railties-4.1.4/lib/rails/rack/logger.rb:38:in call_app
[GEM_ROOT]/gems/railties-4.1.4/lib/rails/rack/logger.rb:20:in block in call
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/tagged_logging.rb:68:in block in tagged
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/tagged_logging.rb:26:in tagged
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/tagged_logging.rb:68:in tagged
[GEM_ROOT]/gems/railties-4.1.4/lib/rails/rack/logger.rb:20:in call
[GEM_ROOT]/gems/actionpack-4.1.4/lib/action_dispatch/middleware/request_id.rb:21:in call
[GEM_ROOT]/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in call
[GEM_ROOT]/gems/rack-1.5.2/lib/rack/runtime.rb:17:in call
[GEM_ROOT]/gems/activesupport-4.1.4/lib/active_support/cache/strategy/local_cache_middleware.rb:26:in call
[GEM_ROOT]/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in call
[GEM_ROOT]/gems/railties-4.1.4/lib/rails/engine.rb:514:in call
[GEM_ROOT]/gems/railties-4.1.4/lib/rails/application.rb:144:in call
[GEM_ROOT]/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:576:in process_client
[GEM_ROOT]/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:670:in worker_loop
[GEM_ROOT]/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:525:in spawn_missing_workers
[GEM_ROOT]/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:140:in start
[GEM_ROOT]/gems/unicorn-4.8.3/bin/unicorn:126:in <top (required)>
[GEM_ROOT]/bin/unicorn:23:in load
[GEM_ROOT]/bin/unicorn:23:in <main>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant