Started GET "/" for ::1 at 2020-03-25 12:24:54 +0300 Processing by CompaniesController#index as HTML Redirected to http://localhost:3000/login Filter chain halted as :authorize rendered or redirected Completed 302 Found in 6ms (ActiveRecord: 0.0ms) Started GET "/login" for ::1 at 2020-03-25 12:24:54 +0300 Processing by Oauth::AuthorizationController#login as HTML Rendering oauth/authorization/login.html.erb within layouts/application Rendered oauth/authorization/login.html.erb within layouts/application (1.0ms) Rendered shared/_header.html.erb (0.3ms) Completed 200 OK in 267ms (Views: 266.3ms | ActiveRecord: 0.0ms) Started GET "/oauth" for ::1 at 2020-03-25 12:24:55 +0300 Processing by Oauth::AuthorizationController#authorize as HTML Redirected to https://app.hubspot.com/oauth/authorize?client_id=967ad59f-41cd-44c2-8384-3806f9435151&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Foauth%2Fcallback&scope=contacts& Completed 302 Found in 7ms (ActiveRecord: 0.0ms) Started GET "/oauth/callback?code=f4c9120c-785a-44e7-9b97-6e8fd40fc3b3" for ::1 at 2020-03-25 12:25:02 +0300 Processing by Oauth::AuthorizationController#callback as HTML Parameters: {"code"=>"f4c9120c-785a-44e7-9b97-6e8fd40fc3b3"} Redirected to http://localhost:3000/companies Completed 302 Found in 5258ms (ActiveRecord: 0.0ms) Started GET "/companies" for ::1 at 2020-03-25 12:25:07 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (51.8ms) Rendered shared/_header.html.erb (0.7ms) Completed 200 OK in 605ms (Views: 138.9ms | ActiveRecord: 0.0ms) Started GET "/" for ::1 at 2020-03-25 12:25:14 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (42.9ms) Rendered shared/_header.html.erb (0.8ms) Completed 200 OK in 566ms (Views: 72.0ms | ActiveRecord: 0.0ms) Started GET "/companies/2949374315" for ::1 at 2020-03-25 12:25:16 +0300 Processing by CompaniesController#show as HTML Parameters: {"id"=>"2949374315"} Rendering companies/show.html.erb within layouts/application Rendered companies/show.html.erb within layouts/application (52.6ms) Rendered shared/_header.html.erb (0.4ms) Completed 200 OK in 2218ms (Views: 125.9ms | ActiveRecord: 0.0ms) Started GET "/companies/2949374315" for ::1 at 2020-03-25 12:25:21 +0300 Processing by CompaniesController#show as HTML Parameters: {"id"=>"2949374315"} Rendering companies/show.html.erb within layouts/application Rendered companies/show.html.erb within layouts/application (3.7ms) Rendered shared/_header.html.erb (0.8ms) Completed 200 OK in 2049ms (Views: 45.7ms | ActiveRecord: 0.0ms) Started GET "/companies/2949374315" for ::1 at 2020-03-25 12:34:48 +0300 Processing by CompaniesController#show as HTML Parameters: {"id"=>"2949374315"} Rendering companies/show.html.erb within layouts/application Rendered companies/show.html.erb within layouts/application (7.6ms) Rendered shared/_header.html.erb (0.6ms) Completed 200 OK in 1163ms (Views: 95.1ms | ActiveRecord: 0.0ms) Started GET "/contacts/6441" for ::1 at 2020-04-03 21:44:40 +0300 ActionController::RoutingError (No route matches [GET] "/contacts/6441"): actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' rack (2.2.2) lib/rack/method_override.rb:24:in `call' rack (2.2.2) lib/rack/runtime.rb:22:in `call' activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' rack (2.2.2) lib/rack/sendfile.rb:110:in `call' railties (5.2.3) lib/rails/engine.rb:524:in `call' puma (4.3.1) lib/puma/configuration.rb:228:in `call' puma (4.3.1) lib/puma/server.rb:681:in `handle_request' puma (4.3.1) lib/puma/server.rb:472:in `process_client' puma (4.3.1) lib/puma/server.rb:328:in `block in run' puma (4.3.1) lib/puma/thread_pool.rb:134:in `block in spawn_thread' Started GET "/" for ::1 at 2020-04-03 21:44:41 +0300 Processing by CompaniesController#index as HTML Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.0ms) NameError (uninitialized constant Hubspot::OAuth::TokensApi): app/lib/services/authorization/tokens/refresh.rb:18:in `refresh_tokens' app/lib/services/authorization/tokens/refresh.rb:11:in `call' app/controllers/companies_controller.rb:64:in `authorize' Started GET "/" for ::1 at 2020-04-03 21:45:38 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (67.1ms) Rendered shared/_header.html.erb (0.5ms) Completed 200 OK in 1777ms (Views: 211.1ms | ActiveRecord: 0.0ms) Started GET "/oauth" for ::1 at 2020-04-03 21:45:42 +0300 Processing by Oauth::AuthorizationController#authorize as HTML Redirected to https://app.hubspot.com/oauth/authorize?client_id=967ad59f-41cd-44c2-8384-3806f9435151&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Foauth%2Fcallback&scope=contacts& Completed 302 Found in 4ms (ActiveRecord: 0.0ms) Started GET "/oauth/callback?code=1aed7273-3f8d-4ef8-bf2d-4168a4dd4987" for ::1 at 2020-04-03 21:45:50 +0300 Processing by Oauth::AuthorizationController#callback as HTML Parameters: {"code"=>"1aed7273-3f8d-4ef8-bf2d-4168a4dd4987"} Redirected to http://localhost:3000/companies Completed 302 Found in 460ms (ActiveRecord: 0.0ms) Started GET "/companies" for ::1 at 2020-04-03 21:45:50 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (83.1ms) Rendered shared/_header.html.erb (0.3ms) Completed 200 OK in 776ms (Views: 105.1ms | ActiveRecord: 0.0ms) Started GET "/companies/new" for ::1 at 2020-04-03 21:45:54 +0300 Processing by CompaniesController#new as HTML Rendering companies/new.html.erb within layouts/application Rendered companies/new.html.erb within layouts/application (13.8ms) Rendered shared/_header.html.erb (0.3ms) Completed 200 OK in 38ms (Views: 34.5ms | ActiveRecord: 0.0ms) Started POST "/companies" for ::1 at 2020-04-03 21:46:07 +0300 Processing by CompaniesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"6M0HyjpRErCr3jzjBnJcbQmfeJXK44+yLvpBg10Yp4S4sLGGGS25twMbn6/DHhSY+88oNMJqn5YL6lLyeSxUPA==", "company"=>{"name"=>"my_company", "domain"=>"my_company.com"}, "commit"=>"Save"} Redirected to http://localhost:3000/companies Completed 302 Found in 573ms (ActiveRecord: 0.0ms) Started GET "/companies" for ::1 at 2020-04-03 21:46:08 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (98.9ms) Rendered shared/_header.html.erb (0.8ms) Completed 200 OK in 717ms (Views: 119.1ms | ActiveRecord: 0.0ms) Started GET "/companies?utf8=%E2%9C%93&search=my_company" for ::1 at 2020-04-03 21:46:15 +0300 Processing by CompaniesController#index as HTML Parameters: {"utf8"=>"✓", "search"=>"my_company"} Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (6.0ms) Rendered shared/_header.html.erb (1.3ms) Completed 200 OK in 646ms (Views: 72.0ms | ActiveRecord: 0.0ms) Started GET "/companies?utf8=%E2%9C%93&search=my_company.com" for ::1 at 2020-04-03 21:46:18 +0300 Processing by CompaniesController#index as HTML Parameters: {"utf8"=>"✓", "search"=>"my_company.com"} Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (5.2ms) Rendered shared/_header.html.erb (0.7ms) Completed 200 OK in 632ms (Views: 91.6ms | ActiveRecord: 0.0ms) Started DELETE "/companies/2949374315" for ::1 at 2020-04-03 21:46:30 +0300 Processing by CompaniesController#destroy as HTML Parameters: {"authenticity_token"=>"If/AYlsbK3Cc+tPp8Qki4vgrl5c2qoPxG/vnjNvVVmpxgnYueGeAdzQ/cKU0ZWoXCnvHNj4jk9U+6/T9/+Gl0g==", "id"=>"2949374315"} Redirected to http://localhost:3000/companies Completed 302 Found in 1084ms (ActiveRecord: 0.0ms) Started GET "/companies" for ::1 at 2020-04-03 21:46:31 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (79.8ms) Rendered shared/_header.html.erb (0.4ms) Completed 200 OK in 1138ms (Views: 102.1ms | ActiveRecord: 0.0ms) Started GET "/companies" for ::1 at 2020-04-03 21:46:33 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (68.5ms) Rendered shared/_header.html.erb (0.4ms) Completed 200 OK in 747ms (Views: 109.2ms | ActiveRecord: 0.0ms) Started DELETE "/companies/2949374314" for ::1 at 2020-04-03 21:46:36 +0300 Processing by CompaniesController#destroy as HTML Parameters: {"authenticity_token"=>"qqrxsBXczqEWwcMaaa815cXXNApGTiqz9MOg39uszjL610f8NqBlpr4EYFasw30QN4dkq07HOpfR07Ou/5g9ig==", "id"=>"2949374314"} Redirected to http://localhost:3000/companies Completed 302 Found in 1382ms (ActiveRecord: 0.0ms) Started GET "/companies" for ::1 at 2020-04-03 21:46:38 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (37.0ms) Rendered shared/_header.html.erb (0.3ms) Completed 200 OK in 752ms (Views: 51.9ms | ActiveRecord: 0.0ms) Started GET "/companies?utf8=%E2%9C%93&search=my_company.com" for ::1 at 2020-04-03 21:46:42 +0300 Processing by CompaniesController#index as HTML Parameters: {"utf8"=>"✓", "search"=>"my_company.com"} Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (8.6ms) Rendered shared/_header.html.erb (0.8ms) Completed 200 OK in 524ms (Views: 64.0ms | ActiveRecord: 0.0ms) Started GET "/companies/3315404612" for ::1 at 2020-04-03 21:46:44 +0300 Processing by CompaniesController#show as HTML Parameters: {"id"=>"3315404612"} Rendering companies/show.html.erb within layouts/application Rendered companies/show.html.erb within layouts/application (4.6ms) Rendered shared/_header.html.erb (0.4ms) Completed 200 OK in 2607ms (Views: 58.0ms | ActiveRecord: 0.0ms) Started GET "/companies/3315404612/contacts" for ::1 at 2020-04-03 21:46:50 +0300 Processing by ContactsController#index as HTML Parameters: {"company_id"=>"3315404612"} Rendering contacts/index.html.erb within layouts/application Rendered contacts/index.html.erb within layouts/application (44.7ms) Rendered shared/_header.html.erb (0.4ms) Completed 200 OK in 2311ms (Views: 89.2ms | ActiveRecord: 0.0ms) Started PUT "/companies/3315404612" for ::1 at 2020-04-03 21:46:55 +0300 Processing by CompaniesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"PbSlMWb5/eWm7GuYNMvcYMARlPsTUvuz6l+HUiQVmqFtyRN9RYVW4g4pyNTxp5SVMkHEWhvb65fPT5QjACFpGQ==", "company"=>{"name"=>"my_company", "domain"=>"my_company.com"}, "commit"=>"Save", "id"=>"3315404612"} Redirected to http://localhost:3000/companies Completed 302 Found in 1432ms (ActiveRecord: 0.0ms) Started GET "/companies" for ::1 at 2020-04-03 21:46:56 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (52.4ms) Rendered shared/_header.html.erb (0.6ms) Completed 200 OK in 707ms (Views: 77.6ms | ActiveRecord: 0.0ms) Started GET "/companies/3315404612" for ::1 at 2020-04-03 21:46:58 +0300 Processing by CompaniesController#show as HTML Parameters: {"id"=>"3315404612"} Rendering companies/show.html.erb within layouts/application Rendered companies/show.html.erb within layouts/application (7.0ms) Rendered shared/_header.html.erb (1.2ms) Completed 200 OK in 2077ms (Views: 81.5ms | ActiveRecord: 0.0ms) Started GET "/companies/3315404612/contacts" for ::1 at 2020-04-03 21:47:01 +0300 Processing by ContactsController#index as HTML Parameters: {"company_id"=>"3315404612"} Rendering contacts/index.html.erb within layouts/application Rendered contacts/index.html.erb within layouts/application (38.1ms) Rendered shared/_header.html.erb (0.4ms) Completed 200 OK in 4935ms (Views: 79.3ms | ActiveRecord: 0.0ms) Started POST "/companies/3315404612/contacts/manage" for ::1 at 2020-04-03 21:47:12 +0300 Processing by ContactsController#manage as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"W7jCZ0zvfNkoYYDssSmQ46iif9qDBOE9EHbRS3Gor5cLxXQrb5PX3oCkI6B0RdgWWvIve4uN8Rk1ZsI6VZxcLw==", "contacts_ids"=>{"6441"=>"1", "6440"=>"1", "6439"=>"0", "6542"=>"0", "6541"=>"0", "6438"=>"0", "6437"=>"0", "6436"=>"0", "6435"=>"0", "6434"=>"0", "6540"=>"0", "6539"=>"0", "6538"=>"0", "6432"=>"0", "6433"=>"0", "6537"=>"0", "6536"=>"0", "6535"=>"0", "6534"=>"0", "6533"=>"0", "6431"=>"0", "6532"=>"0", "6430"=>"0", "6531"=>"0", "6530"=>"0", "6429"=>"0", "6529"=>"0", "6428"=>"0", "6528"=>"0", "6427"=>"0", "6426"=>"0", "6527"=>"0", "6425"=>"0", "6424"=>"0", "6423"=>"0", "6422"=>"0", "6526"=>"0", "6525"=>"0", "6524"=>"0", "6523"=>"0", "6522"=>"0", "6421"=>"0", "6420"=>"0", "6419"=>"0", "6418"=>"0", "6521"=>"0", "6520"=>"0", "6518"=>"0", "6519"=>"0", "6417"=>"0", "6416"=>"0", "6415"=>"0", "6517"=>"0", "6414"=>"0", "6516"=>"0", "6413"=>"0", "6412"=>"0", "6411"=>"0", "6515"=>"0", "6514"=>"0", "6410"=>"0", "6513"=>"0", "6512"=>"0", "6409"=>"0", "6511"=>"0", "6510"=>"0", "6509"=>"0", "6508"=>"0", "6507"=>"0", "6506"=>"0", "6408"=>"0", "6407"=>"0", "6406"=>"0", "6505"=>"0", "6405"=>"0", "6404"=>"0", "6504"=>"0", "6403"=>"0", "6503"=>"0", "6402"=>"0", "6502"=>"0", "6401"=>"0", "6501"=>"0", "6451"=>"0", "6351"=>"0", "6301"=>"0", "6251"=>"0", "6201"=>"0", "6151"=>"0", "6101"=>"0", "6051"=>"0", "6001"=>"0", "5801"=>"0", "5751"=>"0", "5701"=>"0", "5651"=>"0", "5601"=>"0", "151"=>"0", "51"=>"0", "1"=>"0"}, "commit"=>"Add", "company_id"=>"3315404612"} Completed 500 Internal Server Error in 420ms (ActiveRecord: 0.0ms) Hubspot::Crm::Associations::ApiError (Error message: the server returns an error HTTP status code: 400 Response headers: {"date"=>"Fri, 03 Apr 2020 18:47:12 GMT", "content-type"=>"application/json;charset=utf-8", "content-length"=>"256", "connection"=>"keep-alive", "set-cookie"=>"__cfduid=d3b4826d6b9b0045a58a30a51b016ef3f1585939632; expires=Sun, 03-May-20 18:47:12 GMT; path=/; domain=.hubapi.com; HttpOnly; SameSite=Lax", "vary"=>"Accept-Encoding", "access-control-allow-credentials"=>"false", "cf-cache-status"=>"DYNAMIC", "expect-ct"=>"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", "strict-transport-security"=>"max-age=31536000; includeSubDomains; preload", "server"=>"cloudflare", "cf-ray"=>"57e4f4ede876cc7f-WAW"} Response body: {"status":"error","message":"Invalid input JSON on line 1, column 58: Cannot build PublicAssociation, some of required attributes are not set [type]","correlationId":"3243b752-c1b0-48b1-9d7e-36bb1f084e4e","requestId":"458bf2bc-736c-4bc5-bf4a-adb4d27343fc"}): app/lib/services/hubspot/associations/create.rb:11:in `call' app/controllers/contacts_controller.rb:17:in `manage' Started POST "/companies/3315404612/contacts/manage" for ::1 at 2020-04-03 21:55:52 +0300 Processing by ContactsController#manage as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"W7jCZ0zvfNkoYYDssSmQ46iif9qDBOE9EHbRS3Gor5cLxXQrb5PX3oCkI6B0RdgWWvIve4uN8Rk1ZsI6VZxcLw==", "contacts_ids"=>{"6441"=>"1", "6440"=>"1", "6439"=>"0", "6542"=>"0", "6541"=>"0", "6438"=>"0", "6437"=>"0", "6436"=>"0", "6435"=>"0", "6434"=>"0", "6540"=>"0", "6539"=>"0", "6538"=>"0", "6432"=>"0", "6433"=>"0", "6537"=>"0", "6536"=>"0", "6535"=>"0", "6534"=>"0", "6533"=>"0", "6431"=>"0", "6532"=>"0", "6430"=>"0", "6531"=>"0", "6530"=>"0", "6429"=>"0", "6529"=>"0", "6428"=>"0", "6528"=>"0", "6427"=>"0", "6426"=>"0", "6527"=>"0", "6425"=>"0", "6424"=>"0", "6423"=>"0", "6422"=>"0", "6526"=>"0", "6525"=>"0", "6524"=>"0", "6523"=>"0", "6522"=>"0", "6421"=>"0", "6420"=>"0", "6419"=>"0", "6418"=>"0", "6521"=>"0", "6520"=>"0", "6518"=>"0", "6519"=>"0", "6417"=>"0", "6416"=>"0", "6415"=>"0", "6517"=>"0", "6414"=>"0", "6516"=>"0", "6413"=>"0", "6412"=>"0", "6411"=>"0", "6515"=>"0", "6514"=>"0", "6410"=>"0", "6513"=>"0", "6512"=>"0", "6409"=>"0", "6511"=>"0", "6510"=>"0", "6509"=>"0", "6508"=>"0", "6507"=>"0", "6506"=>"0", "6408"=>"0", "6407"=>"0", "6406"=>"0", "6505"=>"0", "6405"=>"0", "6404"=>"0", "6504"=>"0", "6403"=>"0", "6503"=>"0", "6402"=>"0", "6502"=>"0", "6401"=>"0", "6501"=>"0", "6451"=>"0", "6351"=>"0", "6301"=>"0", "6251"=>"0", "6201"=>"0", "6151"=>"0", "6101"=>"0", "6051"=>"0", "6001"=>"0", "5801"=>"0", "5751"=>"0", "5701"=>"0", "5651"=>"0", "5601"=>"0", "151"=>"0", "51"=>"0", "1"=>"0"}, "commit"=>"Add", "company_id"=>"3315404612"} Completed 500 Internal Server Error in 1514ms (ActiveRecord: 0.0ms) Hubspot::Crm::Associations::ApiError (Error message: the server returns an error HTTP status code: 400 Response headers: {"date"=>"Fri, 03 Apr 2020 18:55:53 GMT", "content-type"=>"application/json;charset=utf-8", "content-length"=>"256", "connection"=>"keep-alive", "set-cookie"=>"__cfduid=dc81f506ee9ede61e3af799fcc57ce09c1585940153; expires=Sun, 03-May-20 18:55:53 GMT; path=/; domain=.hubapi.com; HttpOnly; SameSite=Lax", "vary"=>"Accept-Encoding", "access-control-allow-credentials"=>"false", "cf-cache-status"=>"DYNAMIC", "expect-ct"=>"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", "strict-transport-security"=>"max-age=31536000; includeSubDomains; preload", "server"=>"cloudflare", "cf-ray"=>"57e501a92d95b85d-WAW"} Response body: {"status":"error","message":"Invalid input JSON on line 1, column 58: Cannot build PublicAssociation, some of required attributes are not set [type]","correlationId":"961ab634-78ae-4130-85c6-e74b4ed532bc","requestId":"ceb5dac2-9d7b-4d95-bd9d-e6d4794c86bd"}): app/lib/services/hubspot/associations/create.rb:11:in `call' app/controllers/contacts_controller.rb:17:in `manage' Started POST "/companies/3315404612/contacts/manage" for ::1 at 2020-04-03 21:57:48 +0300 Processing by ContactsController#manage as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"W7jCZ0zvfNkoYYDssSmQ46iif9qDBOE9EHbRS3Gor5cLxXQrb5PX3oCkI6B0RdgWWvIve4uN8Rk1ZsI6VZxcLw==", "contacts_ids"=>{"6441"=>"1", "6440"=>"1", "6439"=>"0", "6542"=>"0", "6541"=>"0", "6438"=>"0", "6437"=>"0", "6436"=>"0", "6435"=>"0", "6434"=>"0", "6540"=>"0", "6539"=>"0", "6538"=>"0", "6432"=>"0", "6433"=>"0", "6537"=>"0", "6536"=>"0", "6535"=>"0", "6534"=>"0", "6533"=>"0", "6431"=>"0", "6532"=>"0", "6430"=>"0", "6531"=>"0", "6530"=>"0", "6429"=>"0", "6529"=>"0", "6428"=>"0", "6528"=>"0", "6427"=>"0", "6426"=>"0", "6527"=>"0", "6425"=>"0", "6424"=>"0", "6423"=>"0", "6422"=>"0", "6526"=>"0", "6525"=>"0", "6524"=>"0", "6523"=>"0", "6522"=>"0", "6421"=>"0", "6420"=>"0", "6419"=>"0", "6418"=>"0", "6521"=>"0", "6520"=>"0", "6518"=>"0", "6519"=>"0", "6417"=>"0", "6416"=>"0", "6415"=>"0", "6517"=>"0", "6414"=>"0", "6516"=>"0", "6413"=>"0", "6412"=>"0", "6411"=>"0", "6515"=>"0", "6514"=>"0", "6410"=>"0", "6513"=>"0", "6512"=>"0", "6409"=>"0", "6511"=>"0", "6510"=>"0", "6509"=>"0", "6508"=>"0", "6507"=>"0", "6506"=>"0", "6408"=>"0", "6407"=>"0", "6406"=>"0", "6505"=>"0", "6405"=>"0", "6404"=>"0", "6504"=>"0", "6403"=>"0", "6503"=>"0", "6402"=>"0", "6502"=>"0", "6401"=>"0", "6501"=>"0", "6451"=>"0", "6351"=>"0", "6301"=>"0", "6251"=>"0", "6201"=>"0", "6151"=>"0", "6101"=>"0", "6051"=>"0", "6001"=>"0", "5801"=>"0", "5751"=>"0", "5701"=>"0", "5651"=>"0", "5601"=>"0", "151"=>"0", "51"=>"0", "1"=>"0"}, "commit"=>"Add", "company_id"=>"3315404612"} Completed 500 Internal Server Error in 264629ms (ActiveRecord: 0.0ms) Hubspot::Crm::Associations::ApiError (Error message: the server returns an error HTTP status code: 400 Response headers: {"date"=>"Fri, 03 Apr 2020 19:02:12 GMT", "content-type"=>"application/json;charset=utf-8", "content-length"=>"256", "connection"=>"keep-alive", "set-cookie"=>"__cfduid=d3154320f71831b589ada0715ed6287951585940532; expires=Sun, 03-May-20 19:02:12 GMT; path=/; domain=.hubapi.com; HttpOnly; SameSite=Lax", "vary"=>"Accept-Encoding", "access-control-allow-credentials"=>"false", "cf-cache-status"=>"DYNAMIC", "expect-ct"=>"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", "strict-transport-security"=>"max-age=31536000; includeSubDomains; preload", "server"=>"cloudflare", "cf-ray"=>"57e50ae9daa8ffd0-WAW"} Response body: {"status":"error","message":"Invalid input JSON on line 1, column 58: Cannot build PublicAssociation, some of required attributes are not set [type]","correlationId":"680a7bdb-d888-42a0-871b-a6f43cf89a01","requestId":"22f15267-b395-4d0e-bca7-040a92b73842"}): app/lib/services/hubspot/associations/create.rb:12:in `call' app/controllers/contacts_controller.rb:17:in `manage' Started POST "/companies/3315404612/contacts/manage" for ::1 at 2020-04-03 22:02:37 +0300 Processing by ContactsController#manage as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"W7jCZ0zvfNkoYYDssSmQ46iif9qDBOE9EHbRS3Gor5cLxXQrb5PX3oCkI6B0RdgWWvIve4uN8Rk1ZsI6VZxcLw==", "contacts_ids"=>{"6441"=>"1", "6440"=>"1", "6439"=>"0", "6542"=>"0", "6541"=>"0", "6438"=>"0", "6437"=>"0", "6436"=>"0", "6435"=>"0", "6434"=>"0", "6540"=>"0", "6539"=>"0", "6538"=>"0", "6432"=>"0", "6433"=>"0", "6537"=>"0", "6536"=>"0", "6535"=>"0", "6534"=>"0", "6533"=>"0", "6431"=>"0", "6532"=>"0", "6430"=>"0", "6531"=>"0", "6530"=>"0", "6429"=>"0", "6529"=>"0", "6428"=>"0", "6528"=>"0", "6427"=>"0", "6426"=>"0", "6527"=>"0", "6425"=>"0", "6424"=>"0", "6423"=>"0", "6422"=>"0", "6526"=>"0", "6525"=>"0", "6524"=>"0", "6523"=>"0", "6522"=>"0", "6421"=>"0", "6420"=>"0", "6419"=>"0", "6418"=>"0", "6521"=>"0", "6520"=>"0", "6518"=>"0", "6519"=>"0", "6417"=>"0", "6416"=>"0", "6415"=>"0", "6517"=>"0", "6414"=>"0", "6516"=>"0", "6413"=>"0", "6412"=>"0", "6411"=>"0", "6515"=>"0", "6514"=>"0", "6410"=>"0", "6513"=>"0", "6512"=>"0", "6409"=>"0", "6511"=>"0", "6510"=>"0", "6509"=>"0", "6508"=>"0", "6507"=>"0", "6506"=>"0", "6408"=>"0", "6407"=>"0", "6406"=>"0", "6505"=>"0", "6405"=>"0", "6404"=>"0", "6504"=>"0", "6403"=>"0", "6503"=>"0", "6402"=>"0", "6502"=>"0", "6401"=>"0", "6501"=>"0", "6451"=>"0", "6351"=>"0", "6301"=>"0", "6251"=>"0", "6201"=>"0", "6151"=>"0", "6101"=>"0", "6051"=>"0", "6001"=>"0", "5801"=>"0", "5751"=>"0", "5701"=>"0", "5651"=>"0", "5601"=>"0", "151"=>"0", "51"=>"0", "1"=>"0"}, "commit"=>"Add", "company_id"=>"3315404612"} Redirected to http://localhost:3000/companies/3315404612 Completed 302 Found in 526ms (ActiveRecord: 0.0ms) Started GET "/companies/3315404612" for ::1 at 2020-04-03 22:02:37 +0300 Processing by CompaniesController#show as HTML Parameters: {"id"=>"3315404612"} Rendering companies/show.html.erb within layouts/application Rendered companies/show.html.erb within layouts/application (3.1ms) Rendered shared/_header.html.erb (0.3ms) Completed 200 OK in 2647ms (Views: 46.6ms | ActiveRecord: 0.0ms) Started GET "/companies/3315404612/contacts" for ::1 at 2020-04-03 22:02:45 +0300 Processing by ContactsController#index as HTML Parameters: {"company_id"=>"3315404612"} Rendering contacts/index.html.erb within layouts/application Rendered contacts/index.html.erb within layouts/application (50.7ms) Rendered shared/_header.html.erb (0.2ms) Completed 200 OK in 2909ms (Views: 102.1ms | ActiveRecord: 0.0ms) Started POST "/companies/3315404612/contacts/manage" for ::1 at 2020-04-03 22:03:03 +0300 Processing by ContactsController#manage as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"C84gHPB2LK/ucRGLSs4cW+q4+sSISf530kWHg8nVgdxbs5ZQ0wqHqEa0ssePolSuGOiqZYDA7lP3VZTy7eFyZA==", "contacts_ids"=>{"6441"=>"1", "6440"=>"1", "6439"=>"0", "6542"=>"0", "6541"=>"0", "6438"=>"0", "6437"=>"0", "6436"=>"0", "6435"=>"0", "6434"=>"0", "6540"=>"0", "6539"=>"0", "6538"=>"0", "6432"=>"0", "6433"=>"0", "6537"=>"0", "6536"=>"0", "6535"=>"0", "6534"=>"0", "6533"=>"0", "6431"=>"0", "6532"=>"0", "6430"=>"0", "6531"=>"0", "6530"=>"0", "6429"=>"0", "6529"=>"0", "6428"=>"0", "6528"=>"0", "6427"=>"0", "6426"=>"0", "6527"=>"0", "6425"=>"0", "6424"=>"0", "6423"=>"0", "6422"=>"0", "6526"=>"0", "6525"=>"0", "6524"=>"0", "6523"=>"0", "6522"=>"0", "6421"=>"0", "6420"=>"0", "6419"=>"0", "6418"=>"0", "6521"=>"0", "6520"=>"0", "6518"=>"0", "6519"=>"0", "6417"=>"0", "6416"=>"0", "6415"=>"0", "6517"=>"0", "6414"=>"0", "6516"=>"0", "6413"=>"0", "6412"=>"0", "6411"=>"0", "6515"=>"0", "6514"=>"0", "6410"=>"0", "6513"=>"0", "6512"=>"0", "6409"=>"0", "6511"=>"0", "6510"=>"0", "6509"=>"0", "6508"=>"0", "6507"=>"0", "6506"=>"0", "6408"=>"0", "6407"=>"0", "6406"=>"0", "6505"=>"0", "6405"=>"0", "6404"=>"0", "6504"=>"0", "6403"=>"0", "6503"=>"0", "6402"=>"0", "6502"=>"0", "6401"=>"0", "6501"=>"0", "6451"=>"0", "6351"=>"0", "6301"=>"0", "6251"=>"0", "6201"=>"0", "6151"=>"0", "6101"=>"0", "6051"=>"0", "6001"=>"0", "5801"=>"0", "5751"=>"0", "5701"=>"0", "5651"=>"0", "5601"=>"0", "151"=>"0", "51"=>"0", "1"=>"0"}, "commit"=>"Add", "company_id"=>"3315404612"} Redirected to http://localhost:3000/companies/3315404612 Completed 302 Found in 442ms (ActiveRecord: 0.0ms) Started GET "/companies/3315404612" for ::1 at 2020-04-03 22:03:03 +0300 Processing by CompaniesController#show as HTML Parameters: {"id"=>"3315404612"} Rendering companies/show.html.erb within layouts/application Rendered companies/show.html.erb within layouts/application (14.0ms) Rendered shared/_header.html.erb (0.3ms) Completed 200 OK in 2102ms (Views: 88.3ms | ActiveRecord: 0.0ms) Started PUT "/companies/3315404612" for ::1 at 2020-04-03 22:03:51 +0300 Processing by CompaniesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"IeCowkrU4odEmiFhXWOQYmIqqBN/BwmJAydZYZWwrJZxnR6OaahJgOxfgi2YD9iXkHr4sneOGa0mN0oQsYRfLg==", "company"=>{"name"=>"my_company", "domain"=>"my_company.com"}, "commit"=>"Save", "id"=>"3315404612"} Redirected to http://localhost:3000/companies Completed 302 Found in 1296ms (ActiveRecord: 0.0ms) Started GET "/companies" for ::1 at 2020-04-03 22:03:52 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (39.1ms) Rendered shared/_header.html.erb (0.5ms) Completed 200 OK in 969ms (Views: 55.5ms | ActiveRecord: 0.0ms) Started GET "/companies/2949374313" for ::1 at 2020-04-03 22:03:55 +0300 Processing by CompaniesController#show as HTML Parameters: {"id"=>"2949374313"} Rendering companies/show.html.erb within layouts/application Rendered companies/show.html.erb within layouts/application (4.6ms) Rendered shared/_header.html.erb (0.6ms) Completed 200 OK in 1893ms (Views: 47.1ms | ActiveRecord: 0.0ms) Started GET "/companies/2949374313" for ::1 at 2020-04-03 22:03:59 +0300 Processing by CompaniesController#show as HTML Parameters: {"id"=>"2949374313"} Rendering companies/show.html.erb within layouts/application Rendered companies/show.html.erb within layouts/application (6.1ms) Rendered shared/_header.html.erb (0.4ms) Completed 200 OK in 1990ms (Views: 53.2ms | ActiveRecord: 0.0ms) Started GET "/companies/2949374313/contacts" for ::1 at 2020-04-03 22:04:03 +0300 Processing by ContactsController#index as HTML Parameters: {"company_id"=>"2949374313"} Rendering contacts/index.html.erb within layouts/application Rendered contacts/index.html.erb within layouts/application (24.2ms) Rendered shared/_header.html.erb (0.3ms) Completed 200 OK in 2390ms (Views: 48.9ms | ActiveRecord: 0.0ms) Started POST "/companies/2949374313/contacts/manage" for ::1 at 2020-04-03 22:04:17 +0300 Processing by ContactsController#manage as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"NHujOQ60p7VgKthx42fYmKNiKsglPVYomkF2jWaF+khkBhV1LcgMssjvez0mC5BtUTJ6aS20Rgy/UWX8QrEJ8A==", "contacts_ids"=>{"6441"=>"0", "6440"=>"0", "6439"=>"0", "6542"=>"1", "6541"=>"1", "6438"=>"0", "6437"=>"0", "6436"=>"0", "6435"=>"0", "6434"=>"0", "6540"=>"0", "6539"=>"0", "6538"=>"0", "6432"=>"0", "6433"=>"0", "6537"=>"0", "6536"=>"0", "6535"=>"0", "6534"=>"0", "6533"=>"0", "6431"=>"0", "6532"=>"0", "6430"=>"0", "6531"=>"0", "6530"=>"0", "6429"=>"0", "6529"=>"0", "6428"=>"0", "6528"=>"0", "6427"=>"0", "6426"=>"0", "6527"=>"0", "6425"=>"0", "6424"=>"0", "6423"=>"0", "6422"=>"0", "6526"=>"0", "6525"=>"0", "6524"=>"0", "6523"=>"0", "6522"=>"0", "6421"=>"0", "6420"=>"0", "6419"=>"0", "6418"=>"0", "6521"=>"0", "6520"=>"0", "6518"=>"0", "6519"=>"0", "6417"=>"0", "6416"=>"0", "6415"=>"0", "6517"=>"0", "6414"=>"0", "6516"=>"0", "6413"=>"0", "6412"=>"0", "6411"=>"0", "6515"=>"0", "6514"=>"0", "6410"=>"0", "6513"=>"0", "6512"=>"0", "6409"=>"0", "6511"=>"0", "6510"=>"0", "6509"=>"0", "6508"=>"0", "6507"=>"0", "6506"=>"0", "6408"=>"0", "6407"=>"0", "6406"=>"0", "6505"=>"0", "6405"=>"0", "6404"=>"0", "6504"=>"0", "6403"=>"0", "6503"=>"0", "6402"=>"0", "6502"=>"0", "6401"=>"0", "6501"=>"0", "6451"=>"0", "6351"=>"0", "6301"=>"0", "6251"=>"0", "6201"=>"0", "6151"=>"0", "6101"=>"0", "6051"=>"0", "6001"=>"0", "5801"=>"0", "5751"=>"0", "5701"=>"0", "5651"=>"0", "5601"=>"0", "151"=>"0", "51"=>"0", "1"=>"0"}, "commit"=>"Add", "company_id"=>"2949374313"} Redirected to http://localhost:3000/companies/2949374313 Completed 302 Found in 392ms (ActiveRecord: 0.0ms) Started GET "/companies/2949374313" for ::1 at 2020-04-03 22:04:17 +0300 Processing by CompaniesController#show as HTML Parameters: {"id"=>"2949374313"} Rendering companies/show.html.erb within layouts/application Rendered companies/show.html.erb within layouts/application (5.6ms) Rendered shared/_header.html.erb (0.4ms) Completed 200 OK in 2564ms (Views: 36.0ms | ActiveRecord: 0.0ms) Started GET "/" for ::1 at 2020-04-03 22:04:29 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (54.7ms) Rendered shared/_header.html.erb (0.3ms) Completed 200 OK in 1713ms (Views: 77.7ms | ActiveRecord: 0.0ms) Started GET "/companies/2949374313" for ::1 at 2020-04-03 22:12:42 +0300 Processing by CompaniesController#show as HTML Parameters: {"id"=>"2949374313"} Rendering companies/show.html.erb within layouts/application Rendered companies/show.html.erb within layouts/application (9.4ms) Rendered shared/_header.html.erb (0.7ms) Completed 200 OK in 2281ms (Views: 84.7ms | ActiveRecord: 0.0ms) Started GET "/companies/2949374313/contacts" for ::1 at 2020-04-03 22:12:45 +0300 Processing by ContactsController#index as HTML Parameters: {"company_id"=>"2949374313"} Rendering contacts/index.html.erb within layouts/application Rendered contacts/index.html.erb within layouts/application (29.2ms) Rendered shared/_header.html.erb (0.5ms) Completed 200 OK in 2458ms (Views: 49.1ms | ActiveRecord: 0.0ms) Started POST "/companies/2949374313/contacts/manage" for ::1 at 2020-04-03 22:12:53 +0300 Processing by ContactsController#manage as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"faehicEqUxt5w90b6KIL34rO1Qx4lmcpeVP3mW9oZFct2hfF4lb4HNEGflctzkMqeJ6FrXAfdw1cQ+ToS1yX7w==", "contacts_ids"=>{"6441"=>"1", "6440"=>"1", "6439"=>"0", "6542"=>"0", "6541"=>"0", "6438"=>"0", "6437"=>"0", "6436"=>"0", "6435"=>"0", "6434"=>"0", "6540"=>"0", "6539"=>"0", "6538"=>"0", "6432"=>"0", "6433"=>"0", "6537"=>"0", "6536"=>"0", "6535"=>"0", "6534"=>"0", "6533"=>"0", "6431"=>"0", "6532"=>"0", "6430"=>"0", "6531"=>"0", "6530"=>"0", "6429"=>"0", "6529"=>"0", "6428"=>"0", "6528"=>"0", "6427"=>"0", "6426"=>"0", "6527"=>"0", "6425"=>"0", "6424"=>"0", "6423"=>"0", "6422"=>"0", "6526"=>"0", "6525"=>"0", "6524"=>"0", "6523"=>"0", "6522"=>"0", "6421"=>"0", "6420"=>"0", "6419"=>"0", "6418"=>"0", "6521"=>"0", "6520"=>"0", "6518"=>"0", "6519"=>"0", "6417"=>"0", "6416"=>"0", "6415"=>"0", "6517"=>"0", "6414"=>"0", "6516"=>"0", "6413"=>"0", "6412"=>"0", "6411"=>"0", "6515"=>"0", "6514"=>"0", "6410"=>"0", "6513"=>"0", "6512"=>"0", "6409"=>"0", "6511"=>"0", "6510"=>"0", "6509"=>"0", "6508"=>"0", "6507"=>"0", "6506"=>"0", "6408"=>"0", "6407"=>"0", "6406"=>"0", "6505"=>"0", "6405"=>"0", "6404"=>"0", "6504"=>"0", "6403"=>"0", "6503"=>"0", "6402"=>"0", "6502"=>"0", "6401"=>"0", "6501"=>"0", "6451"=>"0", "6351"=>"0", "6301"=>"0", "6251"=>"0", "6201"=>"0", "6151"=>"0", "6101"=>"0", "6051"=>"0", "6001"=>"0", "5801"=>"0", "5751"=>"0", "5701"=>"0", "5651"=>"0", "5601"=>"0", "151"=>"0", "51"=>"0", "1"=>"0"}, "commit"=>"Add", "company_id"=>"2949374313"} Redirected to http://localhost:3000/companies/2949374313 Completed 302 Found in 690ms (ActiveRecord: 0.0ms) Started GET "/companies/2949374313" for ::1 at 2020-04-03 22:12:53 +0300 Processing by CompaniesController#show as HTML Parameters: {"id"=>"2949374313"} Rendering companies/show.html.erb within layouts/application Rendered companies/show.html.erb within layouts/application (8.2ms) Rendered shared/_header.html.erb (0.5ms) Completed 200 OK in 3285ms (Views: 76.4ms | ActiveRecord: 0.0ms) Started GET "/companies/2949374313/contacts" for ::1 at 2020-04-03 22:12:59 +0300 Processing by ContactsController#index as HTML Parameters: {"company_id"=>"2949374313"} Rendering contacts/index.html.erb within layouts/application Rendered contacts/index.html.erb within layouts/application (24.7ms) Rendered shared/_header.html.erb (0.4ms) Completed 200 OK in 3247ms (Views: 45.7ms | ActiveRecord: 0.0ms) Started POST "/companies/2949374313/contacts/manage" for ::1 at 2020-04-03 22:13:07 +0300 Processing by ContactsController#manage as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"vUyLLDtntESeVHXPNOLn2gKsgkUquPEpviM3JZ1xfKTtMT1gGBsfQzaR1oPxjq8v8PzS5CIx4Q2bMyRUuUWPHA==", "contacts_ids"=>{"6441"=>"1", "6440"=>"0", "6439"=>"0", "6542"=>"0", "6541"=>"0", "6438"=>"0", "6437"=>"0", "6436"=>"0", "6435"=>"0", "6434"=>"0", "6540"=>"0", "6539"=>"0", "6538"=>"0", "6432"=>"0", "6433"=>"0", "6537"=>"0", "6536"=>"0", "6535"=>"0", "6534"=>"0", "6533"=>"0", "6431"=>"0", "6532"=>"0", "6430"=>"0", "6531"=>"0", "6530"=>"0", "6429"=>"0", "6529"=>"0", "6428"=>"0", "6528"=>"0", "6427"=>"0", "6426"=>"0", "6527"=>"0", "6425"=>"0", "6424"=>"0", "6423"=>"0", "6422"=>"0", "6526"=>"0", "6525"=>"0", "6524"=>"0", "6523"=>"0", "6522"=>"0", "6421"=>"0", "6420"=>"0", "6419"=>"0", "6418"=>"0", "6521"=>"0", "6520"=>"0", "6518"=>"0", "6519"=>"0", "6417"=>"0", "6416"=>"0", "6415"=>"0", "6517"=>"0", "6414"=>"0", "6516"=>"0", "6413"=>"0", "6412"=>"0", "6411"=>"0", "6515"=>"0", "6514"=>"0", "6410"=>"0", "6513"=>"0", "6512"=>"0", "6409"=>"0", "6511"=>"0", "6510"=>"0", "6509"=>"0", "6508"=>"0", "6507"=>"0", "6506"=>"0", "6408"=>"0", "6407"=>"0", "6406"=>"0", "6505"=>"0", "6405"=>"0", "6404"=>"0", "6504"=>"0", "6403"=>"0", "6503"=>"0", "6402"=>"0", "6502"=>"0", "6401"=>"0", "6501"=>"0", "6451"=>"0", "6351"=>"0", "6301"=>"0", "6251"=>"0", "6201"=>"0", "6151"=>"0", "6101"=>"0", "6051"=>"0", "6001"=>"0", "5801"=>"0", "5751"=>"0", "5701"=>"0", "5651"=>"0", "5601"=>"0", "151"=>"0", "51"=>"0", "1"=>"0"}, "commit"=>"Delete", "company_id"=>"2949374313"} Completed 500 Internal Server Error in 348ms (ActiveRecord: 0.0ms) Hubspot::Crm::Associations::ApiError (Error message: the server returns an error HTTP status code: 400 Response headers: {"date"=>"Fri, 03 Apr 2020 19:13:07 GMT", "content-type"=>"application/json;charset=utf-8", "content-length"=>"256", "connection"=>"keep-alive", "set-cookie"=>"__cfduid=d6deeb9f79aab482762f9253fc7365fa91585941187; expires=Sun, 03-May-20 19:13:07 GMT; path=/; domain=.hubapi.com; HttpOnly; SameSite=Lax", "vary"=>"Accept-Encoding", "access-control-allow-credentials"=>"false", "cf-cache-status"=>"DYNAMIC", "expect-ct"=>"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", "strict-transport-security"=>"max-age=31536000; includeSubDomains; preload", "server"=>"cloudflare", "cf-ray"=>"57e51ae78efaf28c-WAW"} Response body: {"status":"error","message":"Invalid input JSON on line 1, column 58: Cannot build PublicAssociation, some of required attributes are not set [type]","correlationId":"8309765b-6ed7-45fe-85b6-aadfd4168f42","requestId":"e47efdfc-5158-4a04-a7c4-b27920683001"}): app/lib/services/hubspot/associations/delete.rb:11:in `call' app/controllers/contacts_controller.rb:19:in `manage' Started POST "/companies/2949374313/contacts/manage" for ::1 at 2020-04-03 22:13:38 +0300 Processing by ContactsController#manage as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"vUyLLDtntESeVHXPNOLn2gKsgkUquPEpviM3JZ1xfKTtMT1gGBsfQzaR1oPxjq8v8PzS5CIx4Q2bMyRUuUWPHA==", "contacts_ids"=>{"6441"=>"1", "6440"=>"0", "6439"=>"0", "6542"=>"0", "6541"=>"0", "6438"=>"0", "6437"=>"0", "6436"=>"0", "6435"=>"0", "6434"=>"0", "6540"=>"0", "6539"=>"0", "6538"=>"0", "6432"=>"0", "6433"=>"0", "6537"=>"0", "6536"=>"0", "6535"=>"0", "6534"=>"0", "6533"=>"0", "6431"=>"0", "6532"=>"0", "6430"=>"0", "6531"=>"0", "6530"=>"0", "6429"=>"0", "6529"=>"0", "6428"=>"0", "6528"=>"0", "6427"=>"0", "6426"=>"0", "6527"=>"0", "6425"=>"0", "6424"=>"0", "6423"=>"0", "6422"=>"0", "6526"=>"0", "6525"=>"0", "6524"=>"0", "6523"=>"0", "6522"=>"0", "6421"=>"0", "6420"=>"0", "6419"=>"0", "6418"=>"0", "6521"=>"0", "6520"=>"0", "6518"=>"0", "6519"=>"0", "6417"=>"0", "6416"=>"0", "6415"=>"0", "6517"=>"0", "6414"=>"0", "6516"=>"0", "6413"=>"0", "6412"=>"0", "6411"=>"0", "6515"=>"0", "6514"=>"0", "6410"=>"0", "6513"=>"0", "6512"=>"0", "6409"=>"0", "6511"=>"0", "6510"=>"0", "6509"=>"0", "6508"=>"0", "6507"=>"0", "6506"=>"0", "6408"=>"0", "6407"=>"0", "6406"=>"0", "6505"=>"0", "6405"=>"0", "6404"=>"0", "6504"=>"0", "6403"=>"0", "6503"=>"0", "6402"=>"0", "6502"=>"0", "6401"=>"0", "6501"=>"0", "6451"=>"0", "6351"=>"0", "6301"=>"0", "6251"=>"0", "6201"=>"0", "6151"=>"0", "6101"=>"0", "6051"=>"0", "6001"=>"0", "5801"=>"0", "5751"=>"0", "5701"=>"0", "5651"=>"0", "5601"=>"0", "151"=>"0", "51"=>"0", "1"=>"0"}, "commit"=>"Delete", "company_id"=>"2949374313"} Redirected to http://localhost:3000/companies/2949374313 Completed 302 Found in 604ms (ActiveRecord: 0.0ms) Started GET "/companies/2949374313" for ::1 at 2020-04-03 22:13:39 +0300 Processing by CompaniesController#show as HTML Parameters: {"id"=>"2949374313"} Rendering companies/show.html.erb within layouts/application Rendered companies/show.html.erb within layouts/application (7.0ms) Rendered shared/_header.html.erb (0.3ms) Completed 200 OK in 3801ms (Views: 38.5ms | ActiveRecord: 0.0ms) Started GET "/companies/2949374313/contacts" for ::1 at 2020-04-03 22:15:12 +0300 Processing by ContactsController#index as HTML Parameters: {"company_id"=>"2949374313"} Rendering contacts/index.html.erb within layouts/application Rendered contacts/index.html.erb within layouts/application (37.7ms) Rendered shared/_header.html.erb (0.4ms) Completed 200 OK in 3312ms (Views: 70.7ms | ActiveRecord: 0.0ms) Started GET "/" for ::1 at 2020-04-03 22:15:19 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (57.7ms) Rendered shared/_header.html.erb (0.4ms) Completed 200 OK in 1266ms (Views: 84.5ms | ActiveRecord: 0.0ms) Started GET "/contacts" for ::1 at 2020-04-16 15:17:42 +0300 ActionController::RoutingError (No route matches [GET] "/contacts"): actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' rack (2.2.2) lib/rack/method_override.rb:24:in `call' rack (2.2.2) lib/rack/runtime.rb:22:in `call' activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' rack (2.2.2) lib/rack/sendfile.rb:110:in `call' railties (5.2.3) lib/rails/engine.rb:524:in `call' puma (4.3.1) lib/puma/configuration.rb:228:in `call' puma (4.3.1) lib/puma/server.rb:681:in `handle_request' puma (4.3.1) lib/puma/server.rb:472:in `process_client' puma (4.3.1) lib/puma/server.rb:328:in `block in run' puma (4.3.1) lib/puma/thread_pool.rb:134:in `block in spawn_thread' Started GET "/" for ::1 at 2020-04-16 15:17:45 +0300 Processing by CompaniesController#index as HTML Redirected to http://localhost:3000/login Filter chain halted as :authorize rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms) Started GET "/login" for ::1 at 2020-04-16 15:17:45 +0300 Processing by Oauth::AuthorizationController#login as HTML Rendering oauth/authorization/login.html.erb within layouts/application Rendered oauth/authorization/login.html.erb within layouts/application (0.4ms) Rendered shared/_header.html.erb (0.3ms) Completed 200 OK in 222ms (Views: 208.1ms | ActiveRecord: 0.0ms) Started GET "/oauth" for ::1 at 2020-04-16 15:17:46 +0300 Processing by Oauth::AuthorizationController#authorize as HTML Redirected to https://app.hubspot.com/oauth/authorize?client_id=967ad59f-41cd-44c2-8384-3806f9435151&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Foauth%2Fcallback&scope=contacts& Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/oauth/callback?code=01cd590b-038a-4c85-9024-cbb2ab45d70f" for ::1 at 2020-04-16 15:17:49 +0300 Processing by Oauth::AuthorizationController#callback as HTML Parameters: {"code"=>"01cd590b-038a-4c85-9024-cbb2ab45d70f"} Redirected to http://localhost:3000/companies Completed 302 Found in 391ms (ActiveRecord: 0.0ms) Started GET "/companies" for ::1 at 2020-04-16 15:17:50 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (22.7ms) Rendered shared/_header.html.erb (0.4ms) Completed 200 OK in 754ms (Views: 38.8ms | ActiveRecord: 0.0ms) Started DELETE "/companies/2949374313" for ::1 at 2020-04-16 15:17:57 +0300 Processing by CompaniesController#destroy as HTML Parameters: {"authenticity_token"=>"Qlo8KkPaDjxGJ+dcfhL769RuNByrKqacIW9pYATwUsVz/IUvbql2ZCqfCx6CPPsqVtDKbS9hImMKmflJZlCOIg==", "id"=>"2949374313"} Redirected to http://localhost:3000/companies Completed 302 Found in 601ms (ActiveRecord: 0.0ms) Started GET "/companies" for ::1 at 2020-04-16 15:17:58 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (17.6ms) Rendered shared/_header.html.erb (0.3ms) Completed 200 OK in 962ms (Views: 29.5ms | ActiveRecord: 0.0ms) Started DELETE "/companies/2949374312" for ::1 at 2020-04-16 15:18:00 +0300 Processing by CompaniesController#destroy as HTML Parameters: {"authenticity_token"=>"bt12cia3e4dgTGUlIARp38BOIiJjWZ4JKbJ5HD4uTUpfe893C8QD3wz0iWfcKmkeQvDcU+cSGvYCROk1XI6RrQ==", "id"=>"2949374312"} Redirected to http://localhost:3000/companies Completed 302 Found in 713ms (ActiveRecord: 0.0ms) Started GET "/companies" for ::1 at 2020-04-16 15:18:00 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (19.0ms) Rendered shared/_header.html.erb (0.4ms) Completed 200 OK in 548ms (Views: 30.3ms | ActiveRecord: 0.0ms) Started DELETE "/companies/2949374311" for ::1 at 2020-04-16 15:18:02 +0300 Processing by CompaniesController#destroy as HTML Parameters: {"authenticity_token"=>"XwRal2nNsMEUFU1m3l/hMi+OuFUldhkxkXjK0ZXP7hZuouOSRL7ImXitoSQiceHzrTBGJKE9nc66jlr4928y8Q==", "id"=>"2949374311"} Redirected to http://localhost:3000/companies Completed 302 Found in 1210ms (ActiveRecord: 0.0ms) Started GET "/companies" for ::1 at 2020-04-16 15:18:03 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (15.9ms) Rendered shared/_header.html.erb (0.2ms) Completed 200 OK in 679ms (Views: 34.6ms | ActiveRecord: 0.0ms) Started DELETE "/companies/2949374310" for ::1 at 2020-04-16 15:18:04 +0300 Processing by CompaniesController#destroy as HTML Parameters: {"authenticity_token"=>"LObcBEoD31dT2x2NjuzDuH/eglazU12HqHKp0U5BdqwdQGUBZ3CnDz9j8c9ywsN5/WB8JzcY2XiDhDn4LOGqSw==", "id"=>"2949374310"} Redirected to http://localhost:3000/companies Completed 302 Found in 829ms (ActiveRecord: 0.0ms) Started GET "/companies" for ::1 at 2020-04-16 15:18:05 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (17.5ms) Rendered shared/_header.html.erb (0.3ms) Completed 200 OK in 962ms (Views: 29.4ms | ActiveRecord: 0.0ms) Started DELETE "/companies/2949374309" for ::1 at 2020-04-16 15:18:07 +0300 Processing by CompaniesController#destroy as HTML Parameters: {"authenticity_token"=>"B2Bbcl8KNM0n8AKSdZBT3VsYOO2WVhZQynMyxBCN1702xuJ3cnlMlUtI7tCJvlMc2abGnBIdkq/hhaLtci0LWg==", "id"=>"2949374309"} Redirected to http://localhost:3000/companies Completed 302 Found in 891ms (ActiveRecord: 0.0ms) Started GET "/companies" for ::1 at 2020-04-16 15:18:08 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (16.0ms) Rendered shared/_header.html.erb (0.2ms) Completed 200 OK in 858ms (Views: 43.3ms | ActiveRecord: 0.0ms) Started DELETE "/companies/2949374308" for ::1 at 2020-04-16 15:18:09 +0300 Processing by CompaniesController#destroy as HTML Parameters: {"authenticity_token"=>"m3/yXMVex5agyRCLfXnuSGnJr0oGI51uUuki/hnnr8yq2UtZ6C2/zsxx/MmBV+6J63dRO4JoGZF5H7LXe0dzKw==", "id"=>"2949374308"} Redirected to http://localhost:3000/companies Completed 302 Found in 764ms (ActiveRecord: 0.0ms) Started GET "/companies" for ::1 at 2020-04-16 15:18:10 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (45.2ms) Rendered shared/_header.html.erb (0.3ms) Completed 200 OK in 593ms (Views: 67.8ms | ActiveRecord: 0.0ms) Started DELETE "/companies/2949374307" for ::1 at 2020-04-16 15:18:13 +0300 Processing by CompaniesController#destroy as HTML Parameters: {"authenticity_token"=>"c6U+5/MGN2N17kK2adm/u4l4vjbWyt6dHPwv6tPXlKdCA4fi3nVPOxlWrvSV9796C8ZAR1KBWmI3Cr/DsXdIQA==", "id"=>"2949374307"} Redirected to http://localhost:3000/companies Completed 302 Found in 1067ms (ActiveRecord: 0.0ms) Started GET "/companies" for ::1 at 2020-04-16 15:18:14 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (22.1ms) Rendered shared/_header.html.erb (0.2ms) Completed 200 OK in 601ms (Views: 39.3ms | ActiveRecord: 0.0ms) Started GET "/companies" for ::1 at 2020-04-16 15:23:40 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (17.8ms) Rendered shared/_header.html.erb (0.3ms) Completed 200 OK in 81161ms (Views: 31.5ms | ActiveRecord: 0.0ms) Started GET "/companies" for ::1 at 2020-04-16 15:25:03 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (18.6ms) Rendered shared/_header.html.erb (0.3ms) Completed 200 OK in 11861ms (Views: 33.6ms | ActiveRecord: 0.0ms) Started GET "/companies" for ::1 at 2020-04-16 15:25:19 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (27.6ms) Rendered shared/_header.html.erb (0.3ms) Completed 200 OK in 8871ms (Views: 67.6ms | ActiveRecord: 0.0ms) Started GET "/companies" for ::1 at 2020-04-16 15:25:32 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (23.0ms) Rendered shared/_header.html.erb (0.2ms) Completed 200 OK in 8615ms (Views: 39.4ms | ActiveRecord: 0.0ms) Started GET "/companies" for ::1 at 2020-04-16 15:26:25 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (46.9ms) Rendered shared/_header.html.erb (0.3ms) Completed 200 OK in 10510ms (Views: 64.8ms | ActiveRecord: 0.0ms) Started GET "/companies" for ::1 at 2020-04-16 15:26:54 +0300 Processing by CompaniesController#index as HTML Completed 500 Internal Server Error in 61664ms (ActiveRecord: 0.0ms) Hubspot::Crm::Companies::ApiError (Error message: the server returns an error HTTP status code: 404 Response headers: {"date"=>"Thu, 16 Apr 2020 12:27:56 GMT", "transfer-encoding"=>"chunked", "connection"=>"keep-alive", "set-cookie"=>"__cfduid=dd46cf6399bfe160106845dc4f28e74851587040076; expires=Sat, 16-May-20 12:27:56 GMT; path=/; domain=.hubapi.com; HttpOnly; SameSite=Lax", "x-trace"=>"2B7BF7DE41BFD5B10AA08E372F054992FAF107EE37000000000000000000", "x-hubspot-notfound"=>"true", "cache-control"=>"must-revalidate,no-cache,no-store", "access-control-allow-credentials"=>"false", "cf-cache-status"=>"DYNAMIC", "expect-ct"=>"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", "strict-transport-security"=>"max-age=31536000; includeSubDomains; preload", "server"=>"cloudflare", "cf-ray"=>"584de73d3aa6f2b4-WAW", "cf-request-id"=>"02248eda3f0000f2b43aa5e200000001"} Response body: ): app/lib/services/hubspot/companies/get_by_id.rb:11:in `call' app/controllers/companies_controller.rb:16:in `block in index' app/controllers/companies_controller.rb:15:in `each' app/controllers/companies_controller.rb:15:in `index' Started GET "/companies" for ::1 at 2020-04-16 15:28:05 +0300 Processing by CompaniesController#index as HTML Completed 500 Internal Server Error in 32982ms (ActiveRecord: 0.0ms) Hubspot::Crm::Companies::ApiError (Error message: the server returns an error HTTP status code: 404 Response headers: {"date"=>"Thu, 16 Apr 2020 12:28:38 GMT", "transfer-encoding"=>"chunked", "connection"=>"keep-alive", "set-cookie"=>"__cfduid=d72996e1051dad5e61d34e5f3faf558d41587040118; expires=Sat, 16-May-20 12:28:38 GMT; path=/; domain=.hubapi.com; HttpOnly; SameSite=Lax", "x-trace"=>"2BC68E9E45D6B5B1432B2FC9F3EF95A2EC9FB2D78CC279B608D2DF9EA201", "x-hubspot-notfound"=>"true", "cache-control"=>"must-revalidate,no-cache,no-store", "access-control-allow-credentials"=>"false", "cf-cache-status"=>"DYNAMIC", "expect-ct"=>"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", "strict-transport-security"=>"max-age=31536000; includeSubDomains; preload", "server"=>"cloudflare", "cf-ray"=>"584de8430bd6ffc4-WAW", "cf-request-id"=>"02248f7de50000ffc471231200000001"} Response body: ): app/lib/services/hubspot/companies/get_by_id.rb:11:in `call' app/controllers/companies_controller.rb:16:in `block in index' app/controllers/companies_controller.rb:15:in `each' app/controllers/companies_controller.rb:15:in `index' Started GET "/companies" for ::1 at 2020-04-16 15:29:42 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (1.1ms) Rendered shared/_header.html.erb (1.4ms) Completed 200 OK in 682ms (Views: 27.3ms | ActiveRecord: 0.0ms) Started GET "/companies" for ::1 at 2020-04-16 15:35:53 +0300 Processing by CompaniesController#index as HTML Completed 500 Internal Server Error in 473ms (ActiveRecord: 0.0ms) Hubspot::Crm::Companies::ApiError (Error message: the server returns an error HTTP status code: 401 Response headers: {"date"=>"Thu, 16 Apr 2020 12:35:53 GMT", "content-type"=>"application/json;charset=utf-8", "content-length"=>"331", "connection"=>"keep-alive", "set-cookie"=>"__cfduid=dc335a9092b20fb7f91899b91af7f9e781587040553; expires=Sat, 16-May-20 12:35:53 GMT; path=/; domain=.hubapi.com; HttpOnly; SameSite=Lax", "x-trace"=>"2BC6EBD646AD1E1504E6F36E255A8832B271705F27000000000000000000", "vary"=>"Accept-Encoding", "access-control-allow-credentials"=>"false", "cf-cache-status"=>"DYNAMIC", "expect-ct"=>"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", "strict-transport-security"=>"max-age=31536000; includeSubDomains; preload", "server"=>"cloudflare", "cf-ray"=>"584df2e2a944f2c8-WAW", "cf-request-id"=>"02249621a80000f2c80b2ac200000001"} Response body: {"status":"error","message":"The API key provided is invalid. View or manage your API key here: https://app.hubspot.com/l/api-key/","correlationId":"d9556c14-08ff-4956-ad7b-eed5fe6b4a6c","category":"INVALID_AUTHENTICATION","links":{"api key":"https://app.hubspot.com/l/api-key/"},"requestId":"d8fda0ae-7037-4b10-806f-dff200d374e0"}): app/controllers/companies_controller.rb:11:in `index' Started GET "/companies" for ::1 at 2020-04-16 15:36:11 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (1.0ms) Rendered shared/_header.html.erb (0.4ms) Completed 200 OK in 533ms (Views: 12.3ms | ActiveRecord: 0.0ms) Started GET "/companies" for ::1 at 2020-04-16 15:45:38 +0300 Processing by CompaniesController#index as HTML Completed 500 Internal Server Error in 459ms (ActiveRecord: 0.0ms) NoMethodError (undefined method `results' for []:Array): app/lib/services/hubspot/companies/get_all.rb:11:in `call' app/controllers/companies_controller.rb:11:in `index' Started GET "/companies" for ::1 at 2020-04-16 15:46:43 +0300 Processing by CompaniesController#index as HTML Completed 500 Internal Server Error in 1083ms (ActiveRecord: 0.0ms) NoMethodError (undefined method `results' for []:Array): app/lib/services/hubspot/companies/get_all.rb:11:in `call' app/controllers/companies_controller.rb:11:in `index' Started GET "/companies" for ::1 at 2020-04-16 15:46:51 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (1.1ms) Rendered shared/_header.html.erb (0.4ms) Completed 200 OK in 711ms (Views: 11.8ms | ActiveRecord: 0.0ms) Started GET "/companies" for ::1 at 2020-04-16 15:49:28 +0300 Processing by CompaniesController#index as HTML Rendering companies/index.html.erb within layouts/application Rendered companies/index.html.erb within layouts/application (1.4ms) Rendered shared/_header.html.erb (0.4ms) Completed 200 OK in 349ms (Views: 18.6ms | ActiveRecord: 0.0ms)