. Sep 16 15:04:18 lynx webapp[18235]: response.body.length: 285
. Sep 16 15:04:18 lynx webapp[18235]: response: #, @request_query=nil, @request_absolute_uri=nil, @status_code=201, @reason_phrase="Created", @body_type=nil, @body_charset=nil, @body_date=nil, @body_encoding=#, @is_request=false, @header_item=[["Server", "CouchDB/1.6.0 (Erlang OTP/17)"], ["Location", "http://localhost:4000/tokens_580/4e6431e274181004d86085e5c320b3d947923f84d033ea89eceb2cfb0b3e1ae27576242f07f5b29385d3e54017980caff0e5766358e373a6a471ef2ecd07227b"], ["ETag", "\"2-88e26e9fda67f3d3732a364f59ea584f\""], ["Date", "Sat, 16 Sep 2017 15:04:18 GMT"], ["Content-Type", "application/json"], ["Content-Length", "191"], ["Cache-Control", "must-revalidate"]], @dumped=false>, @peer_cert=nil, @http_body=#, @previous=nil>
. Sep 16 15:04:18 lynx webapp[18235]: response.body.inspect: "{\"ok\":true,\"id\":\"4e6431e274181004d86085e5c320b3d947923f84d033ea89eceb2cfb0b3e1ae27576242f07f5b29385d3e54017980caff0e5766358e373a6a471ef2ecd07227b\",\"rev\":\"2-88e26e9fda67f3d3732a364f59ea584f\"}\n"
. Sep 16 15:04:18 lynx webapp[18235]: Processing by Api::UsersController#update as JSON
. Sep 16 15:04:18 lynx webapp[18235]: Parameters: {"version"=>"1", "id"=>"64c914a80bd9b8f1c12d2baae6f8f153"}
. Sep 16 15:04:18 lynx webapp[18235]: response: #, @request_query=nil, @request_absolute_uri=nil, @status_code=200, @reason_phrase="OK", @body_type=nil, @body_charset=nil, @body_date=nil, @body_encoding=#, @is_request=false, @header_item=[["Server", "CouchDB/1.6.0 (Erlang OTP/17)"], ["ETag", "\"1-966315986f21a50e20fd2d0ac6d9ed1b\""], ["Date", "Sat, 16 Sep 2017 15:04:18 GMT"], ["Content-Type", "application/json"], ["Content-Length", "285"], ["Cache-Control", "must-revalidate"]], @dumped=false>, @peer_cert=nil, @http_body=#, @previous=nil>
. Sep 16 15:04:18 lynx webapp[18235]: response.body.inspect: "{\"_id\":\"4e6431e274181004d86085e5c320b3d947923f84d033ea89eceb2cfb0b3e1ae27576242f07f5b29385d3e54017980caff0e5766358e373a6a471ef2ecd07227b\",\"_rev\":\"1-966315986f21a50e20fd2d0ac6d9ed1b\",\"user_id\":\"64c914a80bd9b8f1c12d2baae6f8f153\",\"last_seen_at\":\"2017-09-16T15:04:10.155Z\",\"type\":\"Token\"}\n"
. Sep 16 15:04:18 lynx webapp[18235]: response.body.length: 191
. Sep 16 15:04:18 lynx webapp[18235]: response: #, @request_query=nil, @request_absolute_uri=nil, @status_code=200, @reason_phrase="OK", @body_type=nil, @body_charset=nil, @body_date=nil, @body_encoding=#, @is_request=false, @header_item=[["Server", "CouchDB/1.6.0 (Erlang OTP/17)"], ["ETag", "\"1-f90d336b9e558e620c41130b7340702b\""], ["Date", "Sat, 16 Sep 2017 15:04:18 GMT"], ["Content-Type", "application/json"], ["Content-Length", "559"], ["Cache-Control", "must-revalidate"]], @dumped=false>, @peer_cert=nil, @http_body=#, @previous=nil>
. Sep 16 15:04:18 lynx webapp[18235]: response.body.inspect: "{\"_id\":\"64c914a80bd9b8f1c12d2baae6f8f153\",\"_rev\":\"1-f90d336b9e558e620c41130b7340702b\",\"login\":\"acpsrzslnixxvvwelwbn\",\"password_verifier\":\"c3b802f173188388652c625cd3df01c89d0c893d158bc18f96523403d2d3535dc9753707264a56793c864afdd2a40165082435c297c3bfefefb052ba608371de3406046dd6dc25bfb96c940610a20992078aea7c66151d1c9642f3b9fb8b49f74481d5ab325f5e5884d3704dee3226e49cba7a34097f79a777545e386ba07b9d\",\"password_salt\":\"cde20ff6\",\"invite_code\":\"qf3u-w3cs\",\"enabled\":true,\"updated_at\":\"2017-09-16T15:04:07.596Z\",\"created_at\":\"2017-09-16T15:04:07.596Z\",\"type\":\"User\"}\n"
. Sep 16 15:04:18 lynx webapp[18235]: response.body.length: 559
. Sep 16 15:04:18 lynx webapp[18235]: response: #, @request_query=nil, @request_absolute_uri=nil, @status_code=200, @reason_phrase="OK", @body_type=nil, @body_charset=nil, @body_date=nil, @body_encoding=#, @is_request=false, @header_item=[["Server", "CouchDB/1.6.0 (Erlang OTP/17)"], ["ETag", "\"1-f90d336b9e558e620c41130b7340702b\""], ["Date", "Sat, 16 Sep 2017 15:04:18 GMT"], ["Content-Type", "application/json"], ["Content-Length", "559"], ["Cache-Control", "must-revalidate"]], @dumped=false>, @peer_cert=nil, @http_body=#, @previous=nil>
. Sep 16 15:04:18 lynx webapp[18235]: response.body.inspect: "{\"_id\":\"64c914a80bd9b8f1c12d2baae6f8f153\",\"_rev\":\"1-f90d336b9e558e620c41130b7340702b\",\"login\":\"acpsrzslnixxvvwelwbn\",\"password_verifier\":\"c3b802f173188388652c625cd3df01c89d0c893d158bc18f96523403d2d3535dc9753707264a56793c864afdd2a40165082435c297c3bfefefb052ba608371de3406046dd6dc25bfb96c940610a20992078aea7c66151d1c9642f3b9fb8b49f74481d5ab325f5e5884d3704dee3226e49cba7a34097f79a777545e386ba07b9d\",\"password_salt\":\"cde20ff6\",\"invite_code\":\"qf3u-w3cs\",\"enabled\":true,\"updated_at\":\"2017-09-16T15:04:07.596Z\",\"created_at\":\"2017-09-16T15:04:07.596Z\",\"type\":\"User\"}\n"
. Sep 16 15:04:18 lynx webapp[18235]: response.body.length: 559
C Sep 16 15:04:18 lynx webapp[18235]: Completed 500 Internal Server Error in 42ms
. Sep 16 15:04:18 lynx webapp[18235]: NoMethodError (undefined method `[]' for nil:NilClass):#012 app/models/account.rb:61:in `update'#012 app/controllers/api/users_controller.rb:56:in `update'