sample-apps/companies-app/log/development.log in hubspot-api-client-2.3.1 vs sample-apps/companies-app/log/development.log in hubspot-api-client-2.3.2

- old
+ new

@@ -516,5 +516,311 @@ 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) + +