Closed dwilkie closed 9 years ago
See this exception on Errbit
DETAIL: Key (mobile_number)=(85516441385) already exists. #
https://www.chibitxt.me/phone_calls.xml"
phone_calls#create
Jul 14 7:35pm
0
{ "ApiVersion" => "adhearsion-twilio-0.0.1", "CallSid" => "ed778c77-af51-4c44-aeeb-c58c4d56a9e8", "CallStatus" => "in-progress", "From" => "+85516441385", "To" => "+2441", "action" => "create", "controller" => "phone_calls", "format" => "xml" }
{ }
606: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb -> **exec_prepared** 606: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb -> **block in exec_cache** 473: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract_adapter.rb -> **block in log** 20: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/notifications/instrumenter.rb -> **instrument** 467: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract_adapter.rb -> **log** 605: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb -> **exec_cache** 589: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb -> **execute_and_clear** 160: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/connection_adapters/postgresql/database_statements.rb -> **exec_query** 192: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/connection_adapters/postgresql/database_statements.rb -> **exec_insert** 108: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb -> **insert** 14: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract/query_cache.rb -> **insert** 64: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/relation.rb -> **insert** 524: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/persistence.rb -> **_create_record** 139: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/counter_cache.rb -> **_create_record** 75: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/locking/optimistic.rb -> **_create_record** 132: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/attribute_methods/dirty.rb -> **_create_record** 306: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/callbacks.rb -> **block in _create_record** 115: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **call** 115: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **call** 553: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **block (2 levels) in compile** 503: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **call** 503: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **call** 88: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **run_callbacks** 306: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/callbacks.rb -> **_create_record** 57: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/timestamp.rb -> **_create_record** 504: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/persistence.rb -> **create_or_update** 302: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/callbacks.rb -> **block in create_or_update** 115: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **call** 115: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **call** 553: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **block (2 levels) in compile** 503: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **call** 503: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **call** 88: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **run_callbacks** 302: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/callbacks.rb -> **create_or_update** 120: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/persistence.rb -> **save** 37: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/validations.rb -> **save** 21: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/attribute_methods/dirty.rb -> **save** 286: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/transactions.rb -> **block (2 levels) in save** 351: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/transactions.rb -> **block in with_transaction_returning_status** 211: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb -> **transaction** 220: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/transactions.rb -> **transaction** 348: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/transactions.rb -> **with_transaction_returning_status** 286: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/transactions.rb -> **block in save** 301: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/transactions.rb -> **rollback_active_record_state!** 285: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/transactions.rb -> **save** 441: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/autosave_association.rb -> **save_belongs_to_association** 201: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/autosave_association.rb -> **block in add_autosave_association_callbacks** 157: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/autosave_association.rb -> **instance_eval** 157: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/autosave_association.rb -> **block in define_non_cyclic_method** 430: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **block in make_lambda** 162: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **call** 162: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **block in halting** 502: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **call** 502: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **block in call** 502: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **each** 502: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **call** 88: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **run_callbacks** 302: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/callbacks.rb -> **create_or_update** 142: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/persistence.rb -> **save!** 43: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/validations.rb -> **save!** 29: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/attribute_methods/dirty.rb -> **save!** 291: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/transactions.rb -> **block in save!** 351: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/transactions.rb -> **block in with_transaction_returning_status** 213: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb -> **block in transaction** 184: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract/transaction.rb -> **within_new_transaction** 213: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb -> **transaction** 220: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/transactions.rb -> **transaction** 348: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/transactions.rb -> **with_transaction_returning_status** 291: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/transactions.rb -> **save!** 142: app/models/phone_call.rb -> **answer!** 7: app/controllers/phone_calls_controller.rb -> **create** 4: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_controller/metal/implicit_render.rb -> **send_action** 198: [GEM_ROOT]/gems/actionpack-4.2.3/lib/abstract_controller/base.rb -> **process_action** 10: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_controller/metal/rendering.rb -> **process_action** 20: [GEM_ROOT]/gems/actionpack-4.2.3/lib/abstract_controller/callbacks.rb -> **block in process_action** 115: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **call** 115: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **call** 553: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **block (2 levels) in compile** 503: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **call** 503: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **call** 88: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **run_callbacks** 19: [GEM_ROOT]/gems/actionpack-4.2.3/lib/abstract_controller/callbacks.rb -> **process_action** 29: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_controller/metal/rescue.rb -> **process_action** 32: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_controller/metal/instrumentation.rb -> **block in process_action** 164: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/notifications.rb -> **block in instrument** 20: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/notifications/instrumenter.rb -> **instrument** 164: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/notifications.rb -> **instrument** 30: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_controller/metal/instrumentation.rb -> **process_action** 250: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_controller/metal/params_wrapper.rb -> **process_action** 18: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/railties/controller_runtime.rb -> **process_action** 137: [GEM_ROOT]/gems/actionpack-4.2.3/lib/abstract_controller/base.rb -> **process** 30: [GEM_ROOT]/gems/actionview-4.2.3/lib/action_view/rendering.rb -> **process** 196: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_controller/metal.rb -> **dispatch** 13: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_controller/metal/rack_delegation.rb -> **dispatch** 237: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_controller/metal.rb -> **block in action** 76: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb -> **call** 76: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb -> **dispatch** 45: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb -> **serve** 43: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/journey/router.rb -> **block in serve** 30: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/journey/router.rb -> **each** 30: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/journey/router.rb -> **serve** 821: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb -> **call** 24: [GEM_ROOT]/gems/rack-1.6.4/lib/rack/etag.rb -> **call** 38: [GEM_ROOT]/gems/rack-1.6.4/lib/rack/conditionalget.rb -> **call** 13: [GEM_ROOT]/gems/rack-1.6.4/lib/rack/head.rb -> **call** 27: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/middleware/params_parser.rb -> **call** 260: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/middleware/flash.rb -> **call** 225: [GEM_ROOT]/gems/rack-1.6.4/lib/rack/session/abstract/id.rb -> **context** 220: [GEM_ROOT]/gems/rack-1.6.4/lib/rack/session/abstract/id.rb -> **call** 560: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/middleware/cookies.rb -> **call** 36: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/query_cache.rb -> **call** 653: [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb -> **call** 29: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/middleware/callbacks.rb -> **block in call** 84: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **run_callbacks** 27: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/middleware/callbacks.rb -> **call** 78: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/middleware/remote_ip.rb -> **call** 17: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/middleware/debug_exceptions.rb -> **call** 30: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/middleware/show_exceptions.rb -> **call** 38: [GEM_ROOT]/gems/railties-4.2.3/lib/rails/rack/logger.rb -> **call_app** 20: [GEM_ROOT]/gems/railties-4.2.3/lib/rails/rack/logger.rb -> **block in call** 68: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/tagged_logging.rb -> **block in tagged** 26: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/tagged_logging.rb -> **tagged** 68: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/tagged_logging.rb -> **tagged** 20: [GEM_ROOT]/gems/railties-4.2.3/lib/rails/rack/logger.rb -> **call** 21: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/middleware/request_id.rb -> **call** 22: [GEM_ROOT]/gems/rack-1.6.4/lib/rack/methodoverride.rb -> **call** 18: [GEM_ROOT]/gems/rack-1.6.4/lib/rack/runtime.rb -> **call** 28: [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/cache/strategy/local_cache_middleware.rb -> **call** 116: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/middleware/static.rb -> **call** 113: [GEM_ROOT]/gems/rack-1.6.4/lib/rack/sendfile.rb -> **call** 24: [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/middleware/ssl.rb -> **call** 518: [GEM_ROOT]/gems/railties-4.2.3/lib/rails/engine.rb -> **call** 165: [GEM_ROOT]/gems/railties-4.2.3/lib/rails/application.rb -> **call** 51: [GEM_ROOT]/gems/puma-2.11.3/lib/puma/configuration.rb -> **call** 507: [GEM_ROOT]/gems/puma-2.11.3/lib/puma/server.rb -> **handle_request** 375: [GEM_ROOT]/gems/puma-2.11.3/lib/puma/server.rb -> **process_client** 262: [GEM_ROOT]/gems/puma-2.11.3/lib/puma/server.rb -> **block in run** 104: [GEM_ROOT]/gems/puma-2.11.3/lib/puma/thread_pool.rb -> **call** 104: [GEM_ROOT]/gems/puma-2.11.3/lib/puma/thread_pool.rb -> **block in spawn_thread**
See this exception on Errbit
PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_users_on_mobile_number"
DETAIL: Key (mobile_number)=(85516441385) already exists. #
Summary
URL
https://www.chibitxt.me/phone_calls.xml"
Where
phone_calls#create
Occured
Jul 14 7:35pm
Similar
0
Params
Session
Backtrace
Environment