dwilkie / chibi

Chibi
chibitxt.me
1 stars 0 forks source link

[production][phone_calls#create] ActiveRecord::RecordInvalid: Validation failed: User is invalid #210

Closed dwilkie closed 9 years ago

dwilkie commented 9 years ago

See this exception on Errbit

ActiveRecord::RecordInvalid: Validation failed: User is invalid

Summary

URL

https://www.chibitxt.me/phone_calls.xml"

Where

phone_calls#create

Occured

Jul 26 11:52am

Similar

2

Params

{
  "ApiVersion" => "adhearsion-twilio-0.0.1",
  "CallSid" => "d6793f9c-5282-49be-aa89-39f4386d090e",
  "CallStatus" => "in-progress",
  "From" => "+855189700541",
  "To" => "+855383838380",
  "action" => "create",
  "controller" => "phone_calls",
  "format" => "xml"
}

Session

{
}

Backtrace

79:  [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/validations.rb -> **raise_record_invalid**
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!**
143:  app/models/phone_call.rb -> **block in answer!**
9:  app/models/concerns/save_with_retry.rb -> **save_with_retry!**
143:  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**

Environment

rack_version: ["1", "3"]
rack_multithread: true
rack_multiprocess: false
rack_run_once: false
SCRIPT_NAME:
CONTENT_TYPE: application/x-www-form-urlencoded
QUERY_STRING:
SERVER_PROTOCOL: HTTP/1.1
SERVER_SOFTWARE: 2.11.3
GATEWAY_INTERFACE: CGI/1.2
REMOTE_ADDR: 127.0.0.1
REQUEST_METHOD: POST
REQUEST_PATH: /phone_calls.xml
REQUEST_URI: /phone_calls.xml
HTTP_VERSION: HTTP/1.0
HTTP_HOST: www.chibitxt.me
HTTP_X_FORWARDED_FOR: 54.227.33.157, 10.0.3.154
HTTP_CONNECTION: close
CONTENT_LENGTH: 142
HTTP_ACCEPT: */*
HTTP_ACCEPT_ENCODING: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
HTTP_USER_AGENT: Ruby
HTTP_X_FORWARDED_PORT: 443
HTTP_X_FORWARDED_PROTO: https
SERVER_NAME: www.chibitxt.me
SERVER_PORT: 443
PATH_INFO: /phone_calls.xml
puma_socket: #
rack_hijack?: true
rack_hijack: #
rack_url_scheme: http
rack_after_reply: []
puma_config: #
ORIGINAL_FULLPATH: /phone_calls.xml
ORIGINAL_SCRIPT_NAME:
action_dispatch_parameter_filter: ["password"]
action_dispatch_redirect_filter: []
action_dispatch_show_exceptions: true
action_dispatch_show_detailed_exceptions: false
action_dispatch_cookies_serializer: json
action_dispatch_cookies_digest:
ROUTES_69834535645380_SCRIPT_NAME:
rack_request_form_hash: {"From"=>"+855189700541", "To"=>"+855383838380", "CallSid"=>"d6793f9c-5282-49be-aa89-39f4386d090e", "CallStatus"=>"in-progress", "ApiVersion"=>"adhearsion-twilio-0.0.1"}
rack_request_form_input: []
action_dispatch_request_id: 2cb67869-57df-45a3-94d4-ae45186b1882
action_dispatch_remote_ip: 54.227.33.157
action_dispatch_request_content_type: application/x-www-form-urlencoded
action_dispatch_request_path_parameters: {"format"=>"xml", "controller"=>"phone_calls", "action"=>"create"}
action_dispatch_request_request_parameters: {"From"=>"+855189700541", "To"=>"+855383838380", "CallSid"=>"d6793f9c-5282-49be-aa89-39f4386d090e", "CallStatus"=>"in-progress", "ApiVersion"=>"adhearsion-twilio-0.0.1"}
rack_request_query_string:
rack_request_query_hash:
action_dispatch_request_query_parameters:
action_dispatch_request_parameters: {"From"=>"+855189700541", "To"=>"+855383838380", "CallSid"=>"d6793f9c-5282-49be-aa89-39f4386d090e", "CallStatus"=>"in-progress", "ApiVersion"=>"adhearsion-twilio-0.0.1", "format"=>"xml", "controller"=>"phone_calls", "action"=>"create"}
action_dispatch_request_formats: ["application/xml"]