spec/dummy/log/development.log in bookingsync-engine-3.0.2 vs spec/dummy/log/development.log in bookingsync-engine-4.0.0

- old
+ new

@@ -1,20 +1,7427 @@ -  (0.3ms) DROP DATABASE IF EXISTS "test" -  (263.2ms) CREATE DATABASE "test" ENCODING = 'utf8' -  (0.4ms) DROP TABLE IF EXISTS "accounts" CASCADE -  (5.1ms) CREATE TABLE "accounts" ("id" bigserial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying) -  (1.6ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" USING btree ("synced_id") -  (3.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) -  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC -  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20140522110454) -  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES +  (321.2ms) CREATE DATABASE "development" ENCODING = 'unicode' +  (320.5ms) CREATE DATABASE "test" ENCODING = 'unicode' +  (7.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) +  (5.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.8ms) SELECT pg_try_advisory_lock(6643483464595264770) +  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to CreateAccounts (20140522110326) +  (1.2ms) SELECT pg_advisory_unlock(6643483464595264770) +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (1.0ms) DROP TABLE IF EXISTS "accounts" CASCADE +  (8.8ms) CREATE TABLE "accounts" ("id" bigserial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying) +  (4.2ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" USING btree ("synced_id") +  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES (20140522110454) +  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20140522110326);  -  (4.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) - ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] -  (0.5ms) BEGIN - SQL (0.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-11-29 18:27:09.450134"], ["updated_at", "2017-11-29 18:27:09.450134"]] -  (1.0ms) COMMIT - ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ActiveRecord::InternalMetadata Load (2.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (1.6ms) BEGIN + ActiveRecord::InternalMetadata Create (1.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2019-02-11 12:32:38.153760"], ["updated_at", "2019-02-11 12:32:38.153760"]] +  (2.1ms) COMMIT + ActiveRecord::InternalMetadata Load (1.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (0.9ms) BEGIN +  (1.3ms) COMMIT +  (0.8ms) DROP TABLE IF EXISTS "accounts" CASCADE +  (9.4ms) CREATE TABLE "accounts" ("id" bigserial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying) +  (3.4ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" USING btree ("synced_id") +  (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) +  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES (20140522110454) +  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES +(20140522110326); + + +  (10.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (1.0ms) BEGIN + ActiveRecord::InternalMetadata Create (1.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2019-02-11 12:32:38.245435"], ["updated_at", "2019-02-11 12:32:38.245435"]] +  (1.7ms) COMMIT + ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (0.7ms) BEGIN + ActiveRecord::InternalMetadata Update (1.0ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2019-02-11 12:32:38.252766"], ["key", "environment"]] +  (1.4ms) COMMIT +Started GET "/" for ::1 at 2019-02-14 15:05:32 +0800 +  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by HomeController#index as HTML +Completed 406 Not Acceptable in 119ms (ActiveRecord: 0.0ms) + + + +ActionController::UnknownFormat (HomeController#index is missing a template for this request format and variant. + +request.formats: ["text/html"] +request.variant: [] + +NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.): + +actionpack (5.2.2) lib/action_controller/metal/implicit_render.rb:55:in `default_render' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `tap' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:194:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:42:in `block in process_action' +activesupport (5.2.2) lib/active_support/callbacks.rb:132:in `run_callbacks' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:41:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rescue.rb:22:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `block in instrument' +activesupport (5.2.2) lib/active_support/notifications/instrumenter.rb:23:in `instrument' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `instrument' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:32:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/params_wrapper.rb:256:in `process_action' +activerecord (5.2.2) lib/active_record/railties/controller_runtime.rb:24:in `process_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:134:in `process' +actionview (5.2.2) lib/action_view/rendering.rb:32:in `process' +actionpack (5.2.2) lib/action_controller/metal.rb:191:in `dispatch' +actionpack (5.2.2) lib/action_controller/metal.rb:252:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:52:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:34:in `serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:52:in `block in serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `each' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `serve' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:840:in `call' +omniauth (1.9.0) lib/omniauth/strategy.rb:192:in `call!' +omniauth (1.9.0) lib/omniauth/strategy.rb:169:in `call' +omniauth (1.9.0) lib/omniauth/builder.rb:64:in `call' +rack (2.0.6) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.6) lib/rack/etag.rb:25:in `call' +rack (2.0.6) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.6) lib/rack/head.rb:12:in `call' +actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.6) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.6) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.2) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +rack (2.0.6) lib/rack/handler/webrick.rb:86:in `service' +/Users/marc/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/webrick/httpserver.rb:140:in `service' +/Users/marc/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/webrick/httpserver.rb:96:in `run' +/Users/marc/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/webrick/server.rb:290:in `block in start_thread' +Started GET "/authenticated" for ::1 at 2019-02-14 15:06:30 +0800 +Processing by AuthenticatedController#index as */* + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-02-14 15:08:03 +0800 +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-02-14 15:08:27 +0800 +Started GET "/auth/bookingsync/?account_id=42" for ::1 at 2019-02-14 15:08:42 +0800 +Started GET "/auth/bookingsync/?account_id=9379" for ::1 at 2019-02-14 15:09:17 +0800 +Started GET "/auth/bookingsync/?account_id=9379&client_id=c06ec36a2dfcea4dc75e829e6ed660153e86175de32584811140ec6b3d74279e" for ::1 at 2019-02-14 15:17:23 +0800 +  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Started GET "/auth/bookingsync/?account_id=9379" for ::1 at 2019-02-14 15:17:59 +0800 +Started GET "/auth/bookingsync/?account_id=9379" for ::1 at 2019-02-14 15:18:36 +0800 +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-02-14 15:19:38 +0800 +Started GET "/auth/bookingsync/" for ::1 at 2019-02-14 15:21:00 +0800 +  (0.6ms) SELECT pg_try_advisory_lock(6643483464595264770) +  (3.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to CreateRemoteAccounts (20190313080010) +  (1.0ms) BEGIN +  (45.5ms) CREATE TABLE "remote_accounts" ("id" bigserial primary key, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ActiveRecord::SchemaMigration Create (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190313080010"]] +  (1.9ms) COMMIT +Migrating to CreateDoorkeeperTables (20190313095223) +  (0.9ms) BEGIN +  (6.2ms) CREATE TABLE "oauth_applications" ("id" bigserial primary key, "name" character varying NOT NULL, "uid" character varying NOT NULL, "secret" character varying NOT NULL, "redirect_uri" text NOT NULL, "scopes" character varying DEFAULT '' NOT NULL, "confidential" boolean DEFAULT TRUE NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (7.7ms) CREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid") +  (17.7ms) CREATE TABLE "oauth_access_grants" ("id" bigserial primary key, "remote_account_id" bigint NOT NULL, "application_id" bigint NOT NULL, "token" character varying NOT NULL, "expires_in" integer NOT NULL, "redirect_uri" text NOT NULL, "created_at" timestamp NOT NULL, "revoked_at" timestamp, "scopes" character varying) +  (5.8ms) CREATE INDEX "index_oauth_access_grants_on_remote_account_id" ON "oauth_access_grants" ("remote_account_id") +  (7.3ms) CREATE INDEX "index_oauth_access_grants_on_application_id" ON "oauth_access_grants" ("application_id") +  (9.6ms) CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token") +  (10.5ms) ALTER TABLE "oauth_access_grants" ADD CONSTRAINT "fk_rails_b4b53e07b8" +FOREIGN KEY ("application_id") + REFERENCES "oauth_applications" ("id") + +  (8.5ms) CREATE TABLE "oauth_access_tokens" ("id" bigserial primary key, "remote_account_id" bigint, "application_id" bigint, "token" character varying NOT NULL, "refresh_token" character varying, "expires_in" integer, "revoked_at" timestamp, "created_at" timestamp NOT NULL, "scopes" character varying, "previous_refresh_token" character varying DEFAULT '' NOT NULL) +  (2.8ms) CREATE INDEX "index_oauth_access_tokens_on_remote_account_id" ON "oauth_access_tokens" ("remote_account_id") +  (2.8ms) CREATE INDEX "index_oauth_access_tokens_on_application_id" ON "oauth_access_tokens" ("application_id") +  (3.3ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token") +  (2.9ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token") +  (2.1ms) ALTER TABLE "oauth_access_tokens" ADD CONSTRAINT "fk_rails_732cb83ab7" +FOREIGN KEY ("application_id") + REFERENCES "oauth_applications" ("id") + + ActiveRecord::SchemaMigration Create (2.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190313095223"]] +  (3.3ms) COMMIT + ActiveRecord::InternalMetadata Load (3.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (1.4ms) BEGIN +  (1.1ms) COMMIT +  (1.5ms) SELECT pg_advisory_unlock(6643483464595264770) +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.5ms) SELECT pg_try_advisory_lock(6643483464595264770) +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to CreateDoorkeeperTables (20190313095223)  (0.6ms) BEGIN -  (0.6ms) COMMIT +  (13.0ms) ALTER TABLE "oauth_access_tokens" DROP CONSTRAINT "fk_rails_732cb83ab7" +  (3.2ms) DROP INDEX "index_oauth_access_tokens_on_refresh_token" +  (1.1ms) DROP INDEX "index_oauth_access_tokens_on_token" +  (12.3ms) DROP TABLE "oauth_access_tokens" +  (4.0ms) ALTER TABLE "oauth_access_grants" DROP CONSTRAINT "fk_rails_b4b53e07b8" +  (1.1ms) DROP INDEX "index_oauth_access_grants_on_token" +  (7.3ms) DROP TABLE "oauth_access_grants" +  (1.0ms) DROP INDEX "index_oauth_applications_on_uid" +  (2.4ms) DROP TABLE "oauth_applications" + ActiveRecord::SchemaMigration Destroy (3.9ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20190313095223"]] +  (5.6ms) COMMIT +  (1.2ms) SELECT pg_advisory_unlock(6643483464595264770) +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.6ms) SELECT pg_try_advisory_lock(6643483464595264770) +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to CreateDoorkeeperTables (20190313095223) +  (0.7ms) BEGIN +  (20.8ms) CREATE TABLE "oauth_applications" ("id" bigserial primary key, "name" character varying NOT NULL, "uid" character varying NOT NULL, "secret" character varying NOT NULL, "redirect_uri" text NOT NULL, "scopes" character varying DEFAULT '' NOT NULL, "confidential" boolean DEFAULT TRUE NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (3.2ms) CREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid") +  (13.7ms) CREATE TABLE "oauth_access_grants" ("id" bigserial primary key, "remote_account_id" bigint NOT NULL, "application_id" bigint NOT NULL, "token" character varying NOT NULL, "expires_in" integer NOT NULL, "redirect_uri" text NOT NULL, "created_at" timestamp NOT NULL, "revoked_at" timestamp, "scopes" character varying) +  (4.2ms) CREATE INDEX "index_oauth_access_grants_on_remote_account_id" ON "oauth_access_grants" ("remote_account_id") +  (3.3ms) CREATE INDEX "index_oauth_access_grants_on_application_id" ON "oauth_access_grants" ("application_id") +  (2.5ms) CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token") +  (11.1ms) ALTER TABLE "oauth_access_grants" ADD CONSTRAINT "fk_rails_b4b53e07b8" +FOREIGN KEY ("application_id") + REFERENCES "oauth_applications" ("id") + +  (2.7ms) ALTER TABLE "oauth_access_grants" ADD CONSTRAINT "fk_rails_ed98b6520b" +FOREIGN KEY ("remote_account_id") + REFERENCES "remote_accounts" ("id") + +  (14.6ms) CREATE TABLE "oauth_access_tokens" ("id" bigserial primary key, "remote_account_id" bigint, "application_id" bigint, "token" character varying NOT NULL, "refresh_token" character varying, "expires_in" integer, "revoked_at" timestamp, "created_at" timestamp NOT NULL, "scopes" character varying, "previous_refresh_token" character varying DEFAULT '' NOT NULL) +  (3.3ms) CREATE INDEX "index_oauth_access_tokens_on_remote_account_id" ON "oauth_access_tokens" ("remote_account_id") +  (3.5ms) CREATE INDEX "index_oauth_access_tokens_on_application_id" ON "oauth_access_tokens" ("application_id") +  (4.4ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token") +  (4.0ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token") +  (2.8ms) ALTER TABLE "oauth_access_tokens" ADD CONSTRAINT "fk_rails_732cb83ab7" +FOREIGN KEY ("application_id") + REFERENCES "oauth_applications" ("id") + +  (3.7ms) ALTER TABLE "oauth_access_tokens" ADD CONSTRAINT "fk_rails_c566447382" +FOREIGN KEY ("remote_account_id") + REFERENCES "remote_accounts" ("id") + + ActiveRecord::SchemaMigration Create (1.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190313095223"]] +  (3.9ms) COMMIT + ActiveRecord::InternalMetadata Load (3.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (1.3ms) BEGIN +  (0.9ms) COMMIT +  (0.9ms) SELECT pg_advisory_unlock(6643483464595264770) +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.6ms) SELECT pg_try_advisory_lock(6643483464595264770) +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to CreateDoorkeeperTables (20190313095223) +  (0.7ms) BEGIN +  (1.2ms) ALTER TABLE "oauth_access_tokens" DROP CONSTRAINT "fk_rails_c566447382" +  (1.1ms) ALTER TABLE "oauth_access_tokens" DROP CONSTRAINT "fk_rails_732cb83ab7" +  (0.8ms) DROP INDEX "index_oauth_access_tokens_on_refresh_token" +  (1.3ms) DROP INDEX "index_oauth_access_tokens_on_token" +  (2.0ms) DROP TABLE "oauth_access_tokens" +  (1.2ms) ALTER TABLE "oauth_access_grants" DROP CONSTRAINT "fk_rails_ed98b6520b" +  (1.3ms) ALTER TABLE "oauth_access_grants" DROP CONSTRAINT "fk_rails_b4b53e07b8" +  (0.7ms) DROP INDEX "index_oauth_access_grants_on_token" +  (1.5ms) DROP TABLE "oauth_access_grants" +  (0.9ms) DROP INDEX "index_oauth_applications_on_uid" +  (3.4ms) DROP TABLE "oauth_applications" + ActiveRecord::SchemaMigration Destroy (1.7ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20190313095223"]] +  (3.2ms) COMMIT +  (1.2ms) SELECT pg_advisory_unlock(6643483464595264770) +  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.6ms) SELECT pg_try_advisory_lock(6643483464595264770) +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to CreateDoorkeeperTables (20190313095223) +  (0.8ms) BEGIN +  (5.9ms) CREATE TABLE "oauth_applications" ("id" bigserial primary key, "name" character varying NOT NULL, "uid" character varying NOT NULL, "secret" character varying NOT NULL, "redirect_uri" text NOT NULL, "scopes" character varying DEFAULT '' NOT NULL, "confidential" boolean DEFAULT TRUE NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (2.3ms) CREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid") +  (5.5ms) CREATE TABLE "oauth_access_grants" ("id" bigserial primary key, "resource_owner_id" bigint NOT NULL, "application_id" bigint NOT NULL, "token" character varying NOT NULL, "expires_in" integer NOT NULL, "redirect_uri" text NOT NULL, "created_at" timestamp NOT NULL, "revoked_at" timestamp, "scopes" character varying) +  (2.8ms) CREATE INDEX "index_oauth_access_grants_on_resource_owner_id" ON "oauth_access_grants" ("resource_owner_id") +  (3.2ms) CREATE INDEX "index_oauth_access_grants_on_application_id" ON "oauth_access_grants" ("application_id") +  (5.3ms) CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token") +  (3.7ms) ALTER TABLE "oauth_access_grants" ADD CONSTRAINT "fk_rails_b4b53e07b8" +FOREIGN KEY ("application_id") + REFERENCES "oauth_applications" ("id") + +  (1.9ms) ALTER TABLE "oauth_access_grants" ADD CONSTRAINT "fk_rails_330c32d8d9" +FOREIGN KEY ("resource_owner_id") + REFERENCES "remote_accounts" ("id") + +  (7.2ms) CREATE TABLE "oauth_access_tokens" ("id" bigserial primary key, "resource_owner_id" bigint, "application_id" bigint, "token" character varying NOT NULL, "refresh_token" character varying, "expires_in" integer, "revoked_at" timestamp, "created_at" timestamp NOT NULL, "scopes" character varying, "previous_refresh_token" character varying DEFAULT '' NOT NULL) +  (3.8ms) CREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id") +  (3.3ms) CREATE INDEX "index_oauth_access_tokens_on_application_id" ON "oauth_access_tokens" ("application_id") +  (2.8ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token") +  (3.0ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token") +  (2.1ms) ALTER TABLE "oauth_access_tokens" ADD CONSTRAINT "fk_rails_732cb83ab7" +FOREIGN KEY ("application_id") + REFERENCES "oauth_applications" ("id") + +  (3.1ms) ALTER TABLE "oauth_access_tokens" ADD CONSTRAINT "fk_rails_ee63f25419" +FOREIGN KEY ("resource_owner_id") + REFERENCES "remote_accounts" ("id") + + ActiveRecord::SchemaMigration Create (1.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190313095223"]] +  (2.4ms) COMMIT + ActiveRecord::InternalMetadata Load (1.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (1.2ms) BEGIN +  (0.7ms) COMMIT +  (0.9ms) SELECT pg_advisory_unlock(6643483464595264770) +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.7ms) SELECT pg_try_advisory_lock(6643483464595264770) +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to CreateDoorkeeperTables (20190313095223) +  (0.6ms) BEGIN +  (1.1ms) ALTER TABLE "oauth_access_tokens" DROP CONSTRAINT "fk_rails_ee63f25419" +  (1.0ms) ALTER TABLE "oauth_access_tokens" DROP CONSTRAINT "fk_rails_732cb83ab7" +  (0.6ms) DROP INDEX "index_oauth_access_tokens_on_refresh_token" +  (1.3ms) DROP INDEX "index_oauth_access_tokens_on_token" +  (1.5ms) DROP TABLE "oauth_access_tokens" +  (1.5ms) ALTER TABLE "oauth_access_grants" DROP CONSTRAINT "fk_rails_330c32d8d9" +  (1.2ms) ALTER TABLE "oauth_access_grants" DROP CONSTRAINT "fk_rails_b4b53e07b8" +  (0.9ms) DROP INDEX "index_oauth_access_grants_on_token" +  (1.3ms) DROP TABLE "oauth_access_grants" +  (1.0ms) DROP INDEX "index_oauth_applications_on_uid" +  (1.5ms) DROP TABLE "oauth_applications" + ActiveRecord::SchemaMigration Destroy (1.0ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20190313095223"]] +  (4.4ms) COMMIT +  (0.9ms) SELECT pg_advisory_unlock(6643483464595264770) +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.6ms) SELECT pg_try_advisory_lock(6643483464595264770) +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to CreateDoorkeeperTables (20190313095223) +  (0.7ms) BEGIN +  (13.7ms) CREATE TABLE "oauth_applications" ("id" bigserial primary key, "name" character varying NOT NULL, "uid" character varying NOT NULL, "secret" character varying NOT NULL, "redirect_uri" text NOT NULL, "scopes" character varying DEFAULT '' NOT NULL, "confidential" boolean DEFAULT TRUE NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (3.8ms) CREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid") +  (5.6ms) CREATE TABLE "oauth_access_grants" ("id" bigserial primary key, "resource_owner_id" bigint NOT NULL, "application_id" bigint NOT NULL, "token" character varying NOT NULL, "expires_in" integer NOT NULL, "redirect_uri" text NOT NULL, "created_at" timestamp NOT NULL, "revoked_at" timestamp, "scopes" character varying) +  (3.2ms) CREATE INDEX "index_oauth_access_grants_on_resource_owner_id" ON "oauth_access_grants" ("resource_owner_id") +  (2.8ms) CREATE INDEX "index_oauth_access_grants_on_application_id" ON "oauth_access_grants" ("application_id") +  (2.6ms) CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token") +  (1.6ms) ALTER TABLE "oauth_access_grants" ADD CONSTRAINT "fk_rails_b4b53e07b8" +FOREIGN KEY ("application_id") + REFERENCES "oauth_applications" ("id") + +  (10.5ms) CREATE TABLE "oauth_access_tokens" ("id" bigserial primary key, "resource_owner_id" bigint, "application_id" bigint, "token" character varying NOT NULL, "refresh_token" character varying, "expires_in" integer, "revoked_at" timestamp, "created_at" timestamp NOT NULL, "scopes" character varying, "previous_refresh_token" character varying DEFAULT '' NOT NULL) +  (3.4ms) CREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id") +  (3.0ms) CREATE INDEX "index_oauth_access_tokens_on_application_id" ON "oauth_access_tokens" ("application_id") +  (2.7ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token") +  (3.4ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token") +  (3.6ms) ALTER TABLE "oauth_access_tokens" ADD CONSTRAINT "fk_rails_732cb83ab7" +FOREIGN KEY ("application_id") + REFERENCES "oauth_applications" ("id") + + ActiveRecord::SchemaMigration Create (1.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190313095223"]] +  (2.5ms) COMMIT + ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (1.2ms) BEGIN +  (0.8ms) COMMIT +  (0.9ms) SELECT pg_advisory_unlock(6643483464595264770) +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.7ms) SELECT pg_try_advisory_lock(6643483464595264770) +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to CreateDoorkeeperTables (20190313095223) +  (0.6ms) BEGIN +  (1.1ms) ALTER TABLE "oauth_access_tokens" DROP CONSTRAINT "fk_rails_732cb83ab7" +  (0.6ms) DROP INDEX "index_oauth_access_tokens_on_refresh_token" +  (0.6ms) DROP INDEX "index_oauth_access_tokens_on_token" +  (1.9ms) DROP TABLE "oauth_access_tokens" +  (1.3ms) ALTER TABLE "oauth_access_grants" DROP CONSTRAINT "fk_rails_b4b53e07b8" +  (0.6ms) DROP INDEX "index_oauth_access_grants_on_token" +  (1.1ms) DROP TABLE "oauth_access_grants" +  (0.6ms) DROP INDEX "index_oauth_applications_on_uid" +  (1.0ms) DROP TABLE "oauth_applications" + ActiveRecord::SchemaMigration Destroy (0.8ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20190313095223"]] +  (3.6ms) COMMIT +  (0.8ms) SELECT pg_advisory_unlock(6643483464595264770) +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.5ms) SELECT pg_try_advisory_lock(6643483464595264770) +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to CreateDoorkeeperTables (20190313095223) +  (0.9ms) BEGIN +  (13.3ms) CREATE TABLE "oauth_applications" ("id" bigserial primary key, "name" character varying NOT NULL, "uid" character varying NOT NULL, "secret" character varying NOT NULL, "redirect_uri" text NOT NULL, "scopes" character varying DEFAULT '' NOT NULL, "confidential" boolean DEFAULT TRUE NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (3.3ms) CREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid") +  (5.7ms) CREATE TABLE "oauth_access_grants" ("id" bigserial primary key, "resource_owner_id" bigint NOT NULL, "application_id" bigint NOT NULL, "token" character varying NOT NULL, "expires_in" integer NOT NULL, "redirect_uri" text NOT NULL, "created_at" timestamp NOT NULL, "revoked_at" timestamp, "scopes" character varying) +  (2.1ms) CREATE INDEX "index_oauth_access_grants_on_resource_owner_id" ON "oauth_access_grants" ("resource_owner_id") +  (2.4ms) CREATE INDEX "index_oauth_access_grants_on_application_id" ON "oauth_access_grants" ("application_id") +  (2.0ms) CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token") +  (1.3ms) ALTER TABLE "oauth_access_grants" ADD CONSTRAINT "fk_rails_b4b53e07b8" +FOREIGN KEY ("application_id") + REFERENCES "oauth_applications" ("id") + +  (1.0ms) ALTER TABLE "oauth_access_grants" ADD CONSTRAINT "fk_rails_330c32d8d9" +FOREIGN KEY ("resource_owner_id") + REFERENCES "remote_accounts" ("id") + +  (4.6ms) CREATE TABLE "oauth_access_tokens" ("id" bigserial primary key, "resource_owner_id" bigint, "application_id" bigint, "token" character varying NOT NULL, "refresh_token" character varying, "expires_in" integer, "revoked_at" timestamp, "created_at" timestamp NOT NULL, "scopes" character varying, "previous_refresh_token" character varying DEFAULT '' NOT NULL) +  (3.6ms) CREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id") +  (4.3ms) CREATE INDEX "index_oauth_access_tokens_on_application_id" ON "oauth_access_tokens" ("application_id") +  (3.4ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token") +  (2.9ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token") +  (1.2ms) ALTER TABLE "oauth_access_tokens" ADD CONSTRAINT "fk_rails_732cb83ab7" +FOREIGN KEY ("application_id") + REFERENCES "oauth_applications" ("id") + +  (1.1ms) ALTER TABLE "oauth_access_tokens" ADD CONSTRAINT "fk_rails_ee63f25419" +FOREIGN KEY ("resource_owner_id") + REFERENCES "remote_accounts" ("id") + + ActiveRecord::SchemaMigration Create (1.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190313095223"]] +  (4.4ms) COMMIT + ActiveRecord::InternalMetadata Load (1.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (1.3ms) BEGIN +  (1.0ms) COMMIT +  (1.0ms) SELECT pg_advisory_unlock(6643483464595264770) +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Started GET "/" for ::1 at 2019-03-14 14:14:06 +0800 +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by HomeController#index as HTML +Completed 406 Not Acceptable in 186ms (ActiveRecord: 0.0ms) + + + +ActionController::UnknownFormat (HomeController#index is missing a template for this request format and variant. + +request.formats: ["text/html"] +request.variant: [] + +NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.): + +actionpack (5.2.2) lib/action_controller/metal/implicit_render.rb:55:in `default_render' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `tap' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:194:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:42:in `block in process_action' +activesupport (5.2.2) lib/active_support/callbacks.rb:132:in `run_callbacks' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:41:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rescue.rb:22:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `block in instrument' +activesupport (5.2.2) lib/active_support/notifications/instrumenter.rb:23:in `instrument' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `instrument' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:32:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/params_wrapper.rb:256:in `process_action' +activerecord (5.2.2) lib/active_record/railties/controller_runtime.rb:24:in `process_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:134:in `process' +actionview (5.2.2) lib/action_view/rendering.rb:32:in `process' +actionpack (5.2.2) lib/action_controller/metal.rb:191:in `dispatch' +actionpack (5.2.2) lib/action_controller/metal.rb:252:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:52:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:34:in `serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:52:in `block in serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `each' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `serve' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:840:in `call' +omniauth (1.9.0) lib/omniauth/strategy.rb:192:in `call!' +omniauth (1.9.0) lib/omniauth/strategy.rb:169:in `call' +omniauth (1.9.0) lib/omniauth/builder.rb:64:in `call' +rack (2.0.6) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.6) lib/rack/etag.rb:25:in `call' +rack (2.0.6) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.6) lib/rack/head.rb:12:in `call' +actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.6) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.6) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.2) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/autheticated" for ::1 at 2019-03-14 14:14:18 +0800 + +ActionController::RoutingError (No route matches [GET] "/autheticated"): + +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/authenticated" for ::1 at 2019-03-14 14:14:24 +0800 +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-14 14:14:24 +0800 +Started GET "/authenticated" for ::1 at 2019-03-14 14:17:36 +0800 +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-14 14:17:36 +0800 +Started GET "/authenticated" for ::1 at 2019-03-14 14:29:37 +0800 +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-14 14:29:37 +0800 +Started GET "/authenticated" for ::1 at 2019-03-14 14:29:59 +0800 +  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-14 14:29:59 +0800 +Started GET "/authenticated" for ::1 at 2019-03-14 14:30:31 +0800 +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.1ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-14 14:30:32 +0800 +Started GET "/" for ::1 at 2019-03-14 14:30:47 +0800 +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by HomeController#index as HTML +Completed 406 Not Acceptable in 178ms (ActiveRecord: 0.0ms) + + + +ActionController::UnknownFormat (HomeController#index is missing a template for this request format and variant. + +request.formats: ["text/html"] +request.variant: [] + +NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.): + +actionpack (5.2.2) lib/action_controller/metal/implicit_render.rb:55:in `default_render' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `tap' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:194:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:42:in `block in process_action' +activesupport (5.2.2) lib/active_support/callbacks.rb:132:in `run_callbacks' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:41:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rescue.rb:22:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `block in instrument' +activesupport (5.2.2) lib/active_support/notifications/instrumenter.rb:23:in `instrument' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `instrument' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:32:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/params_wrapper.rb:256:in `process_action' +activerecord (5.2.2) lib/active_record/railties/controller_runtime.rb:24:in `process_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:134:in `process' +actionview (5.2.2) lib/action_view/rendering.rb:32:in `process' +actionpack (5.2.2) lib/action_controller/metal.rb:191:in `dispatch' +actionpack (5.2.2) lib/action_controller/metal.rb:252:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:52:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:34:in `serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:52:in `block in serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `each' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `serve' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:840:in `call' +omniauth (1.9.0) lib/omniauth/strategy.rb:192:in `call!' +omniauth (1.9.0) lib/omniauth/strategy.rb:169:in `call' +omniauth (1.9.0) lib/omniauth/builder.rb:64:in `call' +rack (2.0.6) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.6) lib/rack/etag.rb:25:in `call' +rack (2.0.6) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.6) lib/rack/head.rb:12:in `call' +actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.6) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.6) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.2) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/authenticated" for ::1 at 2019-03-14 14:30:52 +0800 +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-14 14:30:52 +0800 +Started GET "/authenticated" for ::1 at 2019-03-14 14:34:12 +0800 +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + +ActionController::RoutingError (undefined method `before' for AuthenticatedController:Class): + +app/controllers/authenticated_controller.rb:2:in `<class:AuthenticatedController>' +app/controllers/authenticated_controller.rb:1:in `<top (required)>' +Started GET "/authenticated" for ::1 at 2019-03-14 14:34:24 +0800 +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-14 14:34:24 +0800 +Started GET "/authenticated" for ::1 at 2019-03-14 14:45:11 +0800 +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-14 14:45:11 +0800 +Started GET "/" for ::1 at 2019-03-14 14:49:17 +0800 +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by HomeController#index as HTML +Completed 406 Not Acceptable in 182ms (ActiveRecord: 0.0ms) + + + +ActionController::UnknownFormat (HomeController#index is missing a template for this request format and variant. + +request.formats: ["text/html"] +request.variant: [] + +NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.): + +actionpack (5.2.2) lib/action_controller/metal/implicit_render.rb:55:in `default_render' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `tap' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:194:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:42:in `block in process_action' +activesupport (5.2.2) lib/active_support/callbacks.rb:132:in `run_callbacks' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:41:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rescue.rb:22:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `block in instrument' +activesupport (5.2.2) lib/active_support/notifications/instrumenter.rb:23:in `instrument' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `instrument' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:32:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/params_wrapper.rb:256:in `process_action' +activerecord (5.2.2) lib/active_record/railties/controller_runtime.rb:24:in `process_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:134:in `process' +actionview (5.2.2) lib/action_view/rendering.rb:32:in `process' +actionpack (5.2.2) lib/action_controller/metal.rb:191:in `dispatch' +actionpack (5.2.2) lib/action_controller/metal.rb:252:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:52:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:34:in `serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:52:in `block in serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `each' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `serve' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:840:in `call' +omniauth (1.9.0) lib/omniauth/strategy.rb:192:in `call!' +omniauth (1.9.0) lib/omniauth/strategy.rb:169:in `call' +omniauth (1.9.0) lib/omniauth/builder.rb:64:in `call' +rack (2.0.6) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.6) lib/rack/etag.rb:25:in `call' +rack (2.0.6) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.6) lib/rack/head.rb:12:in `call' +actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.6) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.6) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.2) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/authenticated" for ::1 at 2019-03-14 14:49:23 +0800 +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-14 14:49:23 +0800 +Started GET "/oauth/authorize?client_id=app_id&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fbookingsync%2Fcallback&response_type=code&state=44b90cd604317801e3c72310a1e64ce35ca4ae326955466a" for ::1 at 2019-03-14 14:49:23 +0800 +Processing by Doorkeeper::AuthorizationsController#new as HTML + Parameters: {"client_id"=>"app_id", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback", "response_type"=>"code", "state"=>"44b90cd604317801e3c72310a1e64ce35ca4ae326955466a"} + RemoteAccount Load (1.3ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + Doorkeeper::Application Load (0.9ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] + Rendering /Users/marc/.rvm/gems/ruby-2.4.1/gems/doorkeeper-5.0.2/app/views/doorkeeper/authorizations/error.html.erb within layouts/doorkeeper/application + Rendered /Users/marc/.rvm/gems/ruby-2.4.1/gems/doorkeeper-5.0.2/app/views/doorkeeper/authorizations/error.html.erb within layouts/doorkeeper/application (12.5ms) +Completed 200 OK in 263ms (Views: 245.2ms | ActiveRecord: 7.8ms) + + +Started GET "/assets/doorkeeper/bootstrap.min.self-82aff163d0fc4b0f834a017c3912126536e0ed24de2744cf42d6f748a42b2d75.css?body=1" for ::1 at 2019-03-14 14:49:23 +0800 +Started GET "/assets/doorkeeper/application.self-0d3ff3857ecea10dad6f6ab33f534a4df52875a35e5d24bfb4873cbf0b342362.css?body=1" for ::1 at 2019-03-14 14:49:23 +0800 +Started GET "/assets/doorkeeper/admin/application.self-b390084e429567f550cf465629fbad67d41670909b2f42dd68b7ffec5bddb1af.css?body=1" for ::1 at 2019-03-14 14:49:23 +0800 +  (1.0ms) BEGIN + Doorkeeper::Application Exists (1.7ms) SELECT 1 AS one FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] +  (1.1ms) ROLLBACK +  (0.9ms) BEGIN + Doorkeeper::Application Exists (1.5ms) SELECT 1 AS one FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] + Doorkeeper::Application Create (2.6ms) INSERT INTO "oauth_applications" ("name", "uid", "secret", "redirect_uri", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "TestApp"], ["uid", "app_id"], ["secret", "app_secret"], ["redirect_uri", "http://localhost:3000/auth/bookingsync/callback"], ["created_at", "2019-03-15 09:01:19.090264"], ["updated_at", "2019-03-15 09:01:19.090264"]] +  (7.1ms) COMMIT +Started GET "/authenticated" for ::1 at 2019-03-15 17:01:50 +0800 +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-15 17:01:50 +0800 +Started GET "/authenticated" for ::1 at 2019-03-15 17:06:16 +0800 +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 8ms (Views: 3.7ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-15 17:06:16 +0800 +Started GET "/authenticated" for ::1 at 2019-03-15 17:09:35 +0800 +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 8ms (Views: 4.4ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-15 17:09:35 +0800 +Started GET "/authenticated" for ::1 at 2019-03-15 17:42:50 +0800 +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.1ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-15 17:42:50 +0800 +Started GET "/oauth/authorize?client_id=app_id&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fbookingsync%2Fcallback&response_type=code&state=392546ed9774ccf00c0381b5eadf16cced5c16ea3db49040" for ::1 at 2019-03-15 17:42:50 +0800 +Processing by Doorkeeper::AuthorizationsController#new as HTML + Parameters: {"client_id"=>"app_id", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback", "response_type"=>"code", "state"=>"392546ed9774ccf00c0381b5eadf16cced5c16ea3db49040"} + RemoteAccount Load (1.5ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + Doorkeeper::Application Load (1.8ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."id" IS NULL LIMIT $1 [["LIMIT", 1]] +Completed 500 Internal Server Error in 33ms (ActiveRecord: 13.8ms) + + + +NoMethodError (undefined method `id' for nil:NilClass): + +doorkeeper (5.0.2) app/controllers/doorkeeper/authorizations_controller.rb:48:in `matching_token?' +doorkeeper (5.0.2) app/controllers/doorkeeper/authorizations_controller.rb:27:in `render_success' +doorkeeper (5.0.2) app/controllers/doorkeeper/authorizations_controller.rb:9:in `new' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:194:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:42:in `block in process_action' +activesupport (5.2.2) lib/active_support/callbacks.rb:132:in `run_callbacks' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:41:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rescue.rb:22:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `block in instrument' +activesupport (5.2.2) lib/active_support/notifications/instrumenter.rb:23:in `instrument' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `instrument' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:32:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/params_wrapper.rb:256:in `process_action' +activerecord (5.2.2) lib/active_record/railties/controller_runtime.rb:24:in `process_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:134:in `process' +actionview (5.2.2) lib/action_view/rendering.rb:32:in `process' +actionpack (5.2.2) lib/action_controller/metal.rb:191:in `dispatch' +actionpack (5.2.2) lib/action_controller/metal.rb:252:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:52:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:34:in `serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:52:in `block in serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `each' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `serve' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:840:in `call' +omniauth (1.9.0) lib/omniauth/strategy.rb:192:in `call!' +omniauth (1.9.0) lib/omniauth/strategy.rb:169:in `call' +omniauth (1.9.0) lib/omniauth/builder.rb:64:in `call' +rack (2.0.6) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.6) lib/rack/etag.rb:25:in `call' +rack (2.0.6) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.6) lib/rack/head.rb:12:in `call' +actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.6) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.6) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.2) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/authenticated" for ::1 at 2019-03-15 18:02:01 +0800 +  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 7ms (Views: 3.2ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-15 18:02:01 +0800 +Started GET "/oauth/authorize?client_id=app_id&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fbookingsync%2Fcallback&response_type=code&state=a5d4e2dfcb1b81f18b49f79b7f88acb33e448765b4f482a1" for ::1 at 2019-03-15 18:02:01 +0800 +Processing by Doorkeeper::AuthorizationsController#new as HTML + Parameters: {"client_id"=>"app_id", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback", "response_type"=>"code", "state"=>"a5d4e2dfcb1b81f18b49f79b7f88acb33e448765b4f482a1"} + RemoteAccount Load (2.3ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + Doorkeeper::Application Load (1.3ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."id" IS NULL LIMIT $1 [["LIMIT", 1]] +Completed 500 Internal Server Error in 37ms (ActiveRecord: 14.5ms) + + + +NoMethodError (undefined method `id' for nil:NilClass): + +doorkeeper (5.0.2) app/controllers/doorkeeper/authorizations_controller.rb:48:in `matching_token?' +doorkeeper (5.0.2) app/controllers/doorkeeper/authorizations_controller.rb:27:in `render_success' +doorkeeper (5.0.2) app/controllers/doorkeeper/authorizations_controller.rb:9:in `new' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:194:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:42:in `block in process_action' +activesupport (5.2.2) lib/active_support/callbacks.rb:132:in `run_callbacks' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:41:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rescue.rb:22:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `block in instrument' +activesupport (5.2.2) lib/active_support/notifications/instrumenter.rb:23:in `instrument' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `instrument' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:32:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/params_wrapper.rb:256:in `process_action' +activerecord (5.2.2) lib/active_record/railties/controller_runtime.rb:24:in `process_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:134:in `process' +actionview (5.2.2) lib/action_view/rendering.rb:32:in `process' +actionpack (5.2.2) lib/action_controller/metal.rb:191:in `dispatch' +actionpack (5.2.2) lib/action_controller/metal.rb:252:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:52:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:34:in `serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:52:in `block in serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `each' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `serve' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:840:in `call' +omniauth (1.9.0) lib/omniauth/strategy.rb:192:in `call!' +omniauth (1.9.0) lib/omniauth/strategy.rb:169:in `call' +omniauth (1.9.0) lib/omniauth/builder.rb:64:in `call' +rack (2.0.6) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.6) lib/rack/etag.rb:25:in `call' +rack (2.0.6) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.6) lib/rack/head.rb:12:in `call' +actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.6) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.6) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.2) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/authenticated" for ::1 at 2019-03-15 18:02:41 +0800 +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 8ms (Views: 3.5ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-15 18:02:41 +0800 +Started GET "/oauth/authorize?client_id=app_id&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fbookingsync%2Fcallback&response_type=code&state=746e24eaa84ca2fc5d81281f9610bade38a5deb5a0ec7f38" for ::1 at 2019-03-15 18:02:41 +0800 +Processing by Doorkeeper::AuthorizationsController#new as HTML + Parameters: {"client_id"=>"app_id", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback", "response_type"=>"code", "state"=>"746e24eaa84ca2fc5d81281f9610bade38a5deb5a0ec7f38"} + RemoteAccount Load (1.8ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + Doorkeeper::Application Load (1.5ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."id" IS NULL LIMIT $1 [["LIMIT", 1]] +Completed 500 Internal Server Error in 268ms (ActiveRecord: 16.3ms) + + + +NoMethodError (undefined method `id' for nil:NilClass): + +doorkeeper (5.0.2) app/controllers/doorkeeper/authorizations_controller.rb:48:in `matching_token?' +doorkeeper (5.0.2) app/controllers/doorkeeper/authorizations_controller.rb:27:in `render_success' +doorkeeper (5.0.2) app/controllers/doorkeeper/authorizations_controller.rb:9:in `new' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:194:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:42:in `block in process_action' +activesupport (5.2.2) lib/active_support/callbacks.rb:132:in `run_callbacks' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:41:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rescue.rb:22:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `block in instrument' +activesupport (5.2.2) lib/active_support/notifications/instrumenter.rb:23:in `instrument' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `instrument' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:32:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/params_wrapper.rb:256:in `process_action' +activerecord (5.2.2) lib/active_record/railties/controller_runtime.rb:24:in `process_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:134:in `process' +actionview (5.2.2) lib/action_view/rendering.rb:32:in `process' +actionpack (5.2.2) lib/action_controller/metal.rb:191:in `dispatch' +actionpack (5.2.2) lib/action_controller/metal.rb:252:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:52:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:34:in `serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:52:in `block in serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `each' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `serve' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:840:in `call' +omniauth (1.9.0) lib/omniauth/strategy.rb:192:in `call!' +omniauth (1.9.0) lib/omniauth/strategy.rb:169:in `call' +omniauth (1.9.0) lib/omniauth/builder.rb:64:in `call' +rack (2.0.6) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.6) lib/rack/etag.rb:25:in `call' +rack (2.0.6) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.6) lib/rack/head.rb:12:in `call' +actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.6) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.6) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.2) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/authenticated" for ::1 at 2019-03-15 18:05:47 +0800 +  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-15 18:05:47 +0800 +Started GET "/oauth/authorize?client_id=app_id&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fbookingsync%2Fcallback&response_type=code&state=e74523b9cbad9f9e1b7cd4d5a7cb1cfe02a6049a0e071467" for ::1 at 2019-03-15 18:05:47 +0800 +Processing by Doorkeeper::AuthorizationsController#new as HTML + Parameters: {"client_id"=>"app_id", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback", "response_type"=>"code", "state"=>"e74523b9cbad9f9e1b7cd4d5a7cb1cfe02a6049a0e071467"} + RemoteAccount Load (1.3ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + Doorkeeper::Application Load (2.2ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."id" IS NULL LIMIT $1 [["LIMIT", 1]] +Completed 500 Internal Server Error in 35ms (ActiveRecord: 16.7ms) + + + +NoMethodError (undefined method `id' for nil:NilClass): + +doorkeeper (5.0.2) app/controllers/doorkeeper/authorizations_controller.rb:48:in `matching_token?' +doorkeeper (5.0.2) app/controllers/doorkeeper/authorizations_controller.rb:27:in `render_success' +doorkeeper (5.0.2) app/controllers/doorkeeper/authorizations_controller.rb:9:in `new' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:194:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:42:in `block in process_action' +activesupport (5.2.2) lib/active_support/callbacks.rb:132:in `run_callbacks' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:41:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rescue.rb:22:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `block in instrument' +activesupport (5.2.2) lib/active_support/notifications/instrumenter.rb:23:in `instrument' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `instrument' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:32:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/params_wrapper.rb:256:in `process_action' +activerecord (5.2.2) lib/active_record/railties/controller_runtime.rb:24:in `process_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:134:in `process' +actionview (5.2.2) lib/action_view/rendering.rb:32:in `process' +actionpack (5.2.2) lib/action_controller/metal.rb:191:in `dispatch' +actionpack (5.2.2) lib/action_controller/metal.rb:252:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:52:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:34:in `serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:52:in `block in serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `each' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `serve' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:840:in `call' +omniauth (1.9.0) lib/omniauth/strategy.rb:192:in `call!' +omniauth (1.9.0) lib/omniauth/strategy.rb:169:in `call' +omniauth (1.9.0) lib/omniauth/builder.rb:64:in `call' +rack (2.0.6) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.6) lib/rack/etag.rb:25:in `call' +rack (2.0.6) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.6) lib/rack/head.rb:12:in `call' +actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.6) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.6) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.2) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/authenticated" for ::1 at 2019-03-15 18:08:00 +0800 +  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.1ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 10ms (Views: 5.5ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-15 18:08:00 +0800 +Started GET "/oauth/authorize?client_id=app_id&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fbookingsync%2Fcallback&response_type=code&state=15153b6618eaae85e6232afe296f4958bb7f599c6335474e" for ::1 at 2019-03-15 18:08:00 +0800 +Processing by Doorkeeper::AuthorizationsController#new as HTML + Parameters: {"client_id"=>"app_id", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback", "response_type"=>"code", "state"=>"15153b6618eaae85e6232afe296f4958bb7f599c6335474e"} + RemoteAccount Load (1.6ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + Doorkeeper::Application Load (0.8ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."id" IS NULL LIMIT $1 [["LIMIT", 1]] +Completed 500 Internal Server Error in 34ms (ActiveRecord: 12.8ms) + + + +NoMethodError (undefined method `id' for nil:NilClass): + +doorkeeper (5.0.2) app/controllers/doorkeeper/authorizations_controller.rb:48:in `matching_token?' +doorkeeper (5.0.2) app/controllers/doorkeeper/authorizations_controller.rb:27:in `render_success' +doorkeeper (5.0.2) app/controllers/doorkeeper/authorizations_controller.rb:9:in `new' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:194:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:42:in `block in process_action' +activesupport (5.2.2) lib/active_support/callbacks.rb:132:in `run_callbacks' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:41:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rescue.rb:22:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `block in instrument' +activesupport (5.2.2) lib/active_support/notifications/instrumenter.rb:23:in `instrument' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `instrument' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:32:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/params_wrapper.rb:256:in `process_action' +activerecord (5.2.2) lib/active_record/railties/controller_runtime.rb:24:in `process_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:134:in `process' +actionview (5.2.2) lib/action_view/rendering.rb:32:in `process' +actionpack (5.2.2) lib/action_controller/metal.rb:191:in `dispatch' +actionpack (5.2.2) lib/action_controller/metal.rb:252:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:52:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:34:in `serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:52:in `block in serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `each' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `serve' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:840:in `call' +omniauth (1.9.0) lib/omniauth/strategy.rb:192:in `call!' +omniauth (1.9.0) lib/omniauth/strategy.rb:169:in `call' +omniauth (1.9.0) lib/omniauth/builder.rb:64:in `call' +rack (2.0.6) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.6) lib/rack/etag.rb:25:in `call' +rack (2.0.6) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.6) lib/rack/head.rb:12:in `call' +actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.6) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.6) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.2) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/authenticated" for ::1 at 2019-03-15 18:09:52 +0800 +  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 8ms (Views: 4.3ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-15 18:09:52 +0800 +Started GET "/oauth/authorize?client_id=app_id&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fbookingsync%2Fcallback&response_type=code&state=71cb50ac66ec802dfc91782e57823156b9a028da8011aa6b" for ::1 at 2019-03-15 18:09:52 +0800 +Processing by Doorkeeper::AuthorizationsController#new as HTML + Parameters: {"client_id"=>"app_id", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback", "response_type"=>"code", "state"=>"71cb50ac66ec802dfc91782e57823156b9a028da8011aa6b"} + RemoteAccount Load (1.2ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + Doorkeeper::Application Load (1.0ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."id" IS NULL LIMIT $1 [["LIMIT", 1]] +Completed 500 Internal Server Error in 32ms (ActiveRecord: 11.2ms) + + + +NoMethodError (undefined method `id' for nil:NilClass): + +doorkeeper (5.0.2) app/controllers/doorkeeper/authorizations_controller.rb:48:in `matching_token?' +doorkeeper (5.0.2) app/controllers/doorkeeper/authorizations_controller.rb:27:in `render_success' +doorkeeper (5.0.2) app/controllers/doorkeeper/authorizations_controller.rb:9:in `new' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:194:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:42:in `block in process_action' +activesupport (5.2.2) lib/active_support/callbacks.rb:132:in `run_callbacks' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:41:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rescue.rb:22:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `block in instrument' +activesupport (5.2.2) lib/active_support/notifications/instrumenter.rb:23:in `instrument' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `instrument' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:32:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/params_wrapper.rb:256:in `process_action' +activerecord (5.2.2) lib/active_record/railties/controller_runtime.rb:24:in `process_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:134:in `process' +actionview (5.2.2) lib/action_view/rendering.rb:32:in `process' +actionpack (5.2.2) lib/action_controller/metal.rb:191:in `dispatch' +actionpack (5.2.2) lib/action_controller/metal.rb:252:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:52:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:34:in `serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:52:in `block in serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `each' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `serve' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:840:in `call' +omniauth (1.9.0) lib/omniauth/strategy.rb:192:in `call!' +omniauth (1.9.0) lib/omniauth/strategy.rb:169:in `call' +omniauth (1.9.0) lib/omniauth/builder.rb:64:in `call' +rack (2.0.6) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.6) lib/rack/etag.rb:25:in `call' +rack (2.0.6) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.6) lib/rack/head.rb:12:in `call' +actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.6) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.6) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.2) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/authenticated" for ::1 at 2019-03-15 18:10:44 +0800 +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-15 18:10:44 +0800 +Started GET "/oauth/authorize?client_id=app_id&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fbookingsync%2Fcallback&response_type=code&state=c9ba97809263edd1af2e3121399192cc7a12c1fcfd863e59" for ::1 at 2019-03-15 18:10:44 +0800 +Processing by Doorkeeper::AuthorizationsController#new as HTML + Parameters: {"client_id"=>"app_id", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback", "response_type"=>"code", "state"=>"c9ba97809263edd1af2e3121399192cc7a12c1fcfd863e59"} + RemoteAccount Load (1.5ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + Doorkeeper::Application Load (1.3ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."id" IS NULL LIMIT $1 [["LIMIT", 1]] +Completed 500 Internal Server Error in 30ms (ActiveRecord: 11.6ms) + + + +NoMethodError (undefined method `id' for nil:NilClass): + +doorkeeper (5.0.2) app/controllers/doorkeeper/authorizations_controller.rb:48:in `matching_token?' +doorkeeper (5.0.2) app/controllers/doorkeeper/authorizations_controller.rb:27:in `render_success' +doorkeeper (5.0.2) app/controllers/doorkeeper/authorizations_controller.rb:9:in `new' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:194:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:42:in `block in process_action' +activesupport (5.2.2) lib/active_support/callbacks.rb:132:in `run_callbacks' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:41:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rescue.rb:22:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `block in instrument' +activesupport (5.2.2) lib/active_support/notifications/instrumenter.rb:23:in `instrument' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `instrument' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:32:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/params_wrapper.rb:256:in `process_action' +activerecord (5.2.2) lib/active_record/railties/controller_runtime.rb:24:in `process_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:134:in `process' +actionview (5.2.2) lib/action_view/rendering.rb:32:in `process' +actionpack (5.2.2) lib/action_controller/metal.rb:191:in `dispatch' +actionpack (5.2.2) lib/action_controller/metal.rb:252:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:52:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:34:in `serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:52:in `block in serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `each' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `serve' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:840:in `call' +omniauth (1.9.0) lib/omniauth/strategy.rb:192:in `call!' +omniauth (1.9.0) lib/omniauth/strategy.rb:169:in `call' +omniauth (1.9.0) lib/omniauth/builder.rb:64:in `call' +rack (2.0.6) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.6) lib/rack/etag.rb:25:in `call' +rack (2.0.6) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.6) lib/rack/head.rb:12:in `call' +actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.6) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.6) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.2) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/authenticated" for ::1 at 2019-03-19 11:37:35 +0800 +  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 7ms (Views: 4.1ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-19 11:37:35 +0800 +Started GET "/oauth/authorize?client_id=app_id&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fbookingsync%2Fcallback&response_type=code&state=576ba52dd520bff98d456ebe74866f2e9024a7d49e9b699c" for ::1 at 2019-03-19 11:37:35 +0800 +Processing by Doorkeeper::AuthorizationsController#new as HTML + Parameters: {"client_id"=>"app_id", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback", "response_type"=>"code", "state"=>"576ba52dd520bff98d456ebe74866f2e9024a7d49e9b699c"} + RemoteAccount Load (1.9ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + Doorkeeper::Application Load (1.6ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."id" IS NULL LIMIT $1 [["LIMIT", 1]] +Completed 500 Internal Server Error in 39ms (ActiveRecord: 17.9ms) + + + +NoMethodError (undefined method `id' for nil:NilClass): + +doorkeeper (5.0.2) app/controllers/doorkeeper/authorizations_controller.rb:48:in `matching_token?' +doorkeeper (5.0.2) app/controllers/doorkeeper/authorizations_controller.rb:27:in `render_success' +doorkeeper (5.0.2) app/controllers/doorkeeper/authorizations_controller.rb:9:in `new' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:194:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:42:in `block in process_action' +activesupport (5.2.2) lib/active_support/callbacks.rb:132:in `run_callbacks' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:41:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rescue.rb:22:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `block in instrument' +activesupport (5.2.2) lib/active_support/notifications/instrumenter.rb:23:in `instrument' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `instrument' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:32:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/params_wrapper.rb:256:in `process_action' +activerecord (5.2.2) lib/active_record/railties/controller_runtime.rb:24:in `process_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:134:in `process' +actionview (5.2.2) lib/action_view/rendering.rb:32:in `process' +actionpack (5.2.2) lib/action_controller/metal.rb:191:in `dispatch' +actionpack (5.2.2) lib/action_controller/metal.rb:252:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:52:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:34:in `serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:52:in `block in serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `each' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `serve' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:840:in `call' +omniauth (1.9.0) lib/omniauth/strategy.rb:192:in `call!' +omniauth (1.9.0) lib/omniauth/strategy.rb:169:in `call' +omniauth (1.9.0) lib/omniauth/builder.rb:64:in `call' +rack (2.0.6) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.6) lib/rack/etag.rb:25:in `call' +rack (2.0.6) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.6) lib/rack/head.rb:12:in `call' +actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.6) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.6) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.2) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/authenticated" for ::1 at 2019-03-19 11:48:10 +0800 +  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 8ms (Views: 3.5ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-19 11:48:10 +0800 +Started GET "/oauth/authorize?client_id=app_id&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fbookingsync%2Fcallback&response_type=code&state=40daadde9333f3f959fed82778d74957c6ce538ed7c19588" for ::1 at 2019-03-19 11:48:10 +0800 +Processing by Doorkeeper::AuthorizationsController#new as HTML + Parameters: {"client_id"=>"app_id", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback", "response_type"=>"code", "state"=>"40daadde9333f3f959fed82778d74957c6ce538ed7c19588"} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +RuntimeError (Please configure doorkeeper resource_owner_authenticator block located in /Users/marc/Projects/bookingsync-engine/spec/dummy/config/initializers/doorkeeper.rb): + +config/initializers/doorkeeper.rb:11:in `block (2 levels) in <top (required)>' +Started GET "/authenticated" for ::1 at 2019-03-19 11:50:43 +0800 +  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 7ms (Views: 3.3ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-19 11:50:43 +0800 +Started GET "/oauth/authorize?client_id=app_id&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fbookingsync%2Fcallback&response_type=code&state=842db6701691091965f0cf4cbf81037aeda2d7fed8833bcf" for ::1 at 2019-03-19 11:50:43 +0800 +Processing by Doorkeeper::AuthorizationsController#new as HTML + Parameters: {"client_id"=>"app_id", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback", "response_type"=>"code", "state"=>"842db6701691091965f0cf4cbf81037aeda2d7fed8833bcf"} +Completed 404 Not Found in 13ms (ActiveRecord: 6.7ms) + + + +ActiveRecord::RecordNotFound (Couldn't find RemoteAccount without an ID): + +config/initializers/doorkeeper.rb:9:in `block (2 levels) in <top (required)>' +Started GET "/authenticated" for ::1 at 2019-03-19 11:52:43 +0800 +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.1ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-19 11:52:43 +0800 +Started GET "/oauth/authorize?client_id=app_id&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fbookingsync%2Fcallback&response_type=code&state=161cda48e5dd0904a009141ca521d801f23c263449840f07" for ::1 at 2019-03-19 11:52:43 +0800 +Processing by Doorkeeper::AuthorizationsController#new as HTML + Parameters: {"client_id"=>"app_id", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback", "response_type"=>"code", "state"=>"161cda48e5dd0904a009141ca521d801f23c263449840f07"} +Completed 404 Not Found in 13ms (ActiveRecord: 6.8ms) + + + +ActiveRecord::RecordNotFound (Couldn't find RemoteAccount without an ID): + +config/initializers/doorkeeper.rb:12:in `block (2 levels) in <top (required)>' +Started GET "/authenticated" for ::1 at 2019-03-19 11:59:40 +0800 +  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-19 11:59:41 +0800 +Started GET "/oauth/authorize?client_id=app_id&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fbookingsync%2Fcallback&response_type=code&state=709570345d048cf76c735cb6f19915ba51f718399c5b01bd" for ::1 at 2019-03-19 11:59:41 +0800 +Processing by Doorkeeper::AuthorizationsController#new as HTML + Parameters: {"client_id"=>"app_id", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback", "response_type"=>"code", "state"=>"709570345d048cf76c735cb6f19915ba51f718399c5b01bd"} +Completed 404 Not Found in 13ms (ActiveRecord: 6.6ms) + + + +ActiveRecord::RecordNotFound (Couldn't find RemoteAccount without an ID): + +config/initializers/doorkeeper.rb:12:in `block (2 levels) in <top (required)>' +Started GET "/oauth/authorize?client_id=app_id&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fbookingsync%2Fcallback&response_type=code&state=709570345d048cf76c735cb6f19915ba51f718399c5b01bd" for ::1 at 2019-03-19 12:03:01 +0800 +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by Doorkeeper::AuthorizationsController#new as HTML + Parameters: {"client_id"=>"app_id", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback", "response_type"=>"code", "state"=>"709570345d048cf76c735cb6f19915ba51f718399c5b01bd"} +Completed 500 Internal Server Error in 26ms (ActiveRecord: 0.0ms) + + + +NoMethodError (undefined method `find_or_create_by_name!' for #<Class:0x007fa235645bc0> +Did you mean? find_or_create_by! + find_or_create_by): + +config/initializers/doorkeeper.rb:9:in `block (2 levels) in <top (required)>' +Started GET "/authenticated" for ::1 at 2019-03-19 12:03:28 +0800 +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-19 12:03:28 +0800 +Started GET "/oauth/authorize?client_id=app_id&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fbookingsync%2Fcallback&response_type=code&state=a8e640f08f511920782a11075d531e1ba1a3bd5cd4895af3" for ::1 at 2019-03-19 12:03:28 +0800 +Processing by Doorkeeper::AuthorizationsController#new as HTML + Parameters: {"client_id"=>"app_id", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback", "response_type"=>"code", "state"=>"a8e640f08f511920782a11075d531e1ba1a3bd5cd4895af3"} +Completed 500 Internal Server Error in 22ms (ActiveRecord: 0.0ms) + + + +NoMethodError (undefined method `find_or_create_by_name' for #<Class:0x007ffb4dfe0c18> +Did you mean? find_or_create_by + find_or_create_by!): + +config/initializers/doorkeeper.rb:9:in `block (2 levels) in <top (required)>' +Started GET "/authenticated" for ::1 at 2019-03-19 12:03:51 +0800 +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 8ms (Views: 3.8ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-19 12:03:51 +0800 +Started GET "/oauth/authorize?client_id=app_id&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fbookingsync%2Fcallback&response_type=code&state=653993355688a6834793503919dd09cadc65f1d6c9318523" for ::1 at 2019-03-19 12:03:51 +0800 +Processing by Doorkeeper::AuthorizationsController#new as HTML + Parameters: {"client_id"=>"app_id", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback", "response_type"=>"code", "state"=>"653993355688a6834793503919dd09cadc65f1d6c9318523"} + RemoteAccount Load (1.8ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."name" = $1 LIMIT $2 [["name", "Toto"], ["LIMIT", 1]] +  (2.2ms) BEGIN + RemoteAccount Create (10.5ms) INSERT INTO "remote_accounts" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Toto"], ["created_at", "2019-03-19 04:03:51.955134"], ["updated_at", "2019-03-19 04:03:51.955134"]] +  (3.2ms) COMMIT + Doorkeeper::Application Load (1.2ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] + RemoteAccount Load (1.5ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."name" = $1 LIMIT $2 [["name", "Toto"], ["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."name" = $1 LIMIT $2 [["name", "Toto"], ["LIMIT", 1]] + Doorkeeper::AccessToken Load (4.0ms) SELECT "oauth_access_tokens".* FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."application_id" = $1 AND "oauth_access_tokens"."resource_owner_id" = $2 AND "oauth_access_tokens"."revoked_at" IS NULL ORDER BY "oauth_access_tokens"."created_at" DESC [["application_id", 1], ["resource_owner_id", 1]] + Rendering /Users/marc/.rvm/gems/ruby-2.4.1/gems/doorkeeper-5.0.2/app/views/doorkeeper/authorizations/new.html.erb within layouts/doorkeeper/application + Rendered /Users/marc/.rvm/gems/ruby-2.4.1/gems/doorkeeper-5.0.2/app/views/doorkeeper/authorizations/new.html.erb within layouts/doorkeeper/application (12.8ms) +Completed 200 OK in 259ms (Views: 190.8ms | ActiveRecord: 39.6ms) + + +Started GET "/assets/doorkeeper/bootstrap.min.self-82aff163d0fc4b0f834a017c3912126536e0ed24de2744cf42d6f748a42b2d75.css?body=1" for ::1 at 2019-03-19 12:03:52 +0800 +Started GET "/assets/doorkeeper/admin/application.self-b390084e429567f550cf465629fbad67d41670909b2f42dd68b7ffec5bddb1af.css?body=1" for ::1 at 2019-03-19 12:03:52 +0800 +Started GET "/assets/doorkeeper/application.self-0d3ff3857ecea10dad6f6ab33f534a4df52875a35e5d24bfb4873cbf0b342362.css?body=1" for ::1 at 2019-03-19 12:03:52 +0800 +Started POST "/oauth/authorize" for ::1 at 2019-03-19 12:03:58 +0800 +Processing by Doorkeeper::AuthorizationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Zn9Ya75GKYHBgFx9A52EqSeN28m8FlxQVaaF0wiyAVO68bSJevKe2iK1N10RHWxrP5GSMValW8vUmRuDc2DRFQ==", "client_id"=>"app_id", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback", "state"=>"653993355688a6834793503919dd09cadc65f1d6c9318523", "response_type"=>"code", "scope"=>"", "code_challenge"=>"", "code_challenge_method"=>"", "commit"=>"Authorize"} + RemoteAccount Load (2.6ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."name" = $1 LIMIT $2 [["name", "Toto"], ["LIMIT", 1]] + Doorkeeper::Application Load (2.1ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."name" = $1 LIMIT $2 [["name", "Toto"], ["LIMIT", 1]] +  (1.7ms) BEGIN + Doorkeeper::AccessGrant Exists (7.9ms) SELECT 1 AS one FROM "oauth_access_grants" WHERE "oauth_access_grants"."token" = $1 LIMIT $2 [["token", "7a748a5b11a246fe4240d81135bf57978ecee43d25b9c9ac8da4a61f4c1dc240"], ["LIMIT", 1]] + Doorkeeper::AccessGrant Create (9.2ms) INSERT INTO "oauth_access_grants" ("resource_owner_id", "application_id", "token", "expires_in", "redirect_uri", "created_at", "scopes") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["resource_owner_id", 1], ["application_id", 1], ["token", "7a748a5b11a246fe4240d81135bf57978ecee43d25b9c9ac8da4a61f4c1dc240"], ["expires_in", 600], ["redirect_uri", "http://localhost:3000/auth/bookingsync/callback"], ["created_at", "2019-03-19 04:03:58.946151"], ["scopes", ""]] +  (5.0ms) COMMIT +Redirected to http://localhost:3000/auth/bookingsync/callback?code=7a748a5b11a246fe4240d81135bf57978ecee43d25b9c9ac8da4a61f4c1dc240&state=653993355688a6834793503919dd09cadc65f1d6c9318523 +Completed 302 Found in 74ms (ActiveRecord: 47.7ms) + + +Started GET "/auth/bookingsync/callback?code=[FILTERED]&state=653993355688a6834793503919dd09cadc65f1d6c9318523" for ::1 at 2019-03-19 12:03:58 +0800 +Started POST "/oauth/token" for ::1 at 2019-03-19 12:03:58 +0800 + +Faraday::TimeoutError (Net::ReadTimeout): + +/Users/marc/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/net/protocol.rb:176:in `rbuf_fill' +/Users/marc/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/net/protocol.rb:154:in `readuntil' +/Users/marc/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/net/protocol.rb:164:in `readline' +/Users/marc/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/net/http/response.rb:40:in `read_status_line' +/Users/marc/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/net/http/response.rb:29:in `read_new' +/Users/marc/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/net/http.rb:1446:in `block in transport_request' +/Users/marc/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/net/http.rb:1443:in `catch' +/Users/marc/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/net/http.rb:1443:in `transport_request' +/Users/marc/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/net/http.rb:1416:in `request' +/Users/marc/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/net/http.rb:1409:in `block in request' +/Users/marc/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/net/http.rb:877:in `start' +/Users/marc/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/net/http.rb:1407:in `request' +faraday (0.11.0) lib/faraday/adapter/net_http.rb:80:in `perform_request' +faraday (0.11.0) lib/faraday/adapter/net_http.rb:38:in `block in call' +faraday (0.11.0) lib/faraday/adapter/net_http.rb:85:in `with_net_http_connection' +faraday (0.11.0) lib/faraday/adapter/net_http.rb:33:in `call' +faraday (0.11.0) lib/faraday/request/url_encoded.rb:15:in `call' +faraday (0.11.0) lib/faraday/rack_builder.rb:139:in `build_response' +faraday (0.11.0) lib/faraday/connection.rb:377:in `run_request' +oauth2 (1.3.1) lib/oauth2/client.rb:99:in `request' +oauth2 (1.3.1) lib/oauth2/client.rb:146:in `get_token' +oauth2 (1.3.1) lib/oauth2/strategy/auth_code.rb:30:in `get_token' +omniauth-oauth2 (1.4.0) lib/omniauth/strategies/oauth2.rb:89:in `build_access_token' +omniauth-oauth2 (1.4.0) lib/omniauth/strategies/oauth2.rb:73:in `callback_phase' +omniauth (1.9.0) lib/omniauth/strategy.rb:238:in `callback_call' +omniauth (1.9.0) lib/omniauth/strategy.rb:189:in `call!' +omniauth (1.9.0) lib/omniauth/strategy.rb:169:in `call' +omniauth (1.9.0) lib/omniauth/builder.rb:64:in `call' +rack (2.0.6) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.6) lib/rack/etag.rb:25:in `call' +rack (2.0.6) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.6) lib/rack/head.rb:12:in `call' +actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.6) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.6) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.2) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Processing by Doorkeeper::TokensController#create as */* + Parameters: {"client_id"=>"app_id", "client_secret"=>"[FILTERED]", "code"=>"[FILTERED]", "grant_type"=>"authorization_code", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback"} + Doorkeeper::AccessGrant Load (1.7ms) SELECT "oauth_access_grants".* FROM "oauth_access_grants" WHERE "oauth_access_grants"."token" = $1 LIMIT $2 [["token", "7a748a5b11a246fe4240d81135bf57978ecee43d25b9c9ac8da4a61f4c1dc240"], ["LIMIT", 1]] + Doorkeeper::Application Load (1.7ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] +  (1.4ms) BEGIN + Doorkeeper::AccessGrant Load (3.0ms) SELECT "oauth_access_grants".* FROM "oauth_access_grants" WHERE "oauth_access_grants"."id" = $1 LIMIT $2 FOR UPDATE [["id", 1], ["LIMIT", 1]] + Doorkeeper::AccessGrant Update (1.8ms) UPDATE "oauth_access_grants" SET "revoked_at" = $1 WHERE "oauth_access_grants"."id" = $2 [["revoked_at", "2019-03-19 04:04:59.227564"], ["id", 1]] + Doorkeeper::Application Load (1.0ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + CACHE Doorkeeper::Application Load (0.0ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + Doorkeeper::AccessToken Exists (1.8ms) SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2 [["token", "2e0007e975845d293a0f398f7b544b7197cf7bc931aa99764e7c25f8468f5523"], ["LIMIT", 1]] + Doorkeeper::AccessToken Create (3.3ms) INSERT INTO "oauth_access_tokens" ("resource_owner_id", "application_id", "token", "expires_in", "created_at", "scopes") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["resource_owner_id", 1], ["application_id", 1], ["token", "2e0007e975845d293a0f398f7b544b7197cf7bc931aa99764e7c25f8468f5523"], ["expires_in", 7200], ["created_at", "2019-03-19 04:04:59.259604"], ["scopes", ""]] +  (2.3ms) COMMIT +Completed 200 OK in 70ms + + +Started GET "/authenticated" for ::1 at 2019-03-19 12:16:42 +0800 +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 8ms (Views: 4.3ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-19 12:16:42 +0800 +Started GET "/authenticated" for ::1 at 2019-03-19 12:18:04 +0800 +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-19 12:18:05 +0800 +Started GET "/oauth/authorize?client_id=app_id&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fbookingsync%2Fcallback&response_type=code&state=d16ccfa01f2723362c124542bcf55874b87e36b2e6ff2862" for ::1 at 2019-03-19 12:18:05 +0800 +  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by Doorkeeper::AuthorizationsController#new as HTML + Parameters: {"client_id"=>"app_id", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback", "response_type"=>"code", "state"=>"d16ccfa01f2723362c124542bcf55874b87e36b2e6ff2862"} + RemoteAccount Load (1.9ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."name" = $1 LIMIT $2 [["name", "Toto"], ["LIMIT", 1]] + Doorkeeper::Application Load (1.3ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."name" = $1 LIMIT $2 [["name", "Toto"], ["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."name" = $1 LIMIT $2 [["name", "Toto"], ["LIMIT", 1]] + Doorkeeper::AccessToken Load (1.9ms) SELECT "oauth_access_tokens".* FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."application_id" = $1 AND "oauth_access_tokens"."resource_owner_id" = $2 AND "oauth_access_tokens"."revoked_at" IS NULL ORDER BY "oauth_access_tokens"."created_at" DESC [["application_id", 1], ["resource_owner_id", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."name" = $1 LIMIT $2 [["name", "Toto"], ["LIMIT", 1]] +  (1.1ms) BEGIN + Doorkeeper::AccessGrant Exists (1.2ms) SELECT 1 AS one FROM "oauth_access_grants" WHERE "oauth_access_grants"."token" = $1 LIMIT $2 [["token", "03a2706e09f99119e51006393d2bb7e185bf1a0cdc958839cc492e6b4cc1069b"], ["LIMIT", 1]] + Doorkeeper::AccessGrant Create (2.6ms) INSERT INTO "oauth_access_grants" ("resource_owner_id", "application_id", "token", "expires_in", "redirect_uri", "created_at", "scopes") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["resource_owner_id", 1], ["application_id", 1], ["token", "03a2706e09f99119e51006393d2bb7e185bf1a0cdc958839cc492e6b4cc1069b"], ["expires_in", 600], ["redirect_uri", "http://localhost:3000/auth/bookingsync/callback"], ["created_at", "2019-03-19 04:18:05.474677"], ["scopes", ""]] +  (5.3ms) COMMIT +Redirected to http://localhost:3000/auth/bookingsync/callback?code=03a2706e09f99119e51006393d2bb7e185bf1a0cdc958839cc492e6b4cc1069b&state=d16ccfa01f2723362c124542bcf55874b87e36b2e6ff2862 +Completed 302 Found in 84ms (ActiveRecord: 39.7ms) + + +Started GET "/auth/bookingsync/callback?code=[FILTERED]&state=d16ccfa01f2723362c124542bcf55874b87e36b2e6ff2862" for ::1 at 2019-03-19 12:18:05 +0800 +Started POST "/oauth/token" for ::1 at 2019-03-19 12:18:05 +0800 +Processing by Doorkeeper::TokensController#create as */* + Parameters: {"client_id"=>"app_id", "client_secret"=>"[FILTERED]", "code"=>"[FILTERED]", "grant_type"=>"authorization_code", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback"} + Doorkeeper::AccessGrant Load (1.2ms) SELECT "oauth_access_grants".* FROM "oauth_access_grants" WHERE "oauth_access_grants"."token" = $1 LIMIT $2 [["token", "03a2706e09f99119e51006393d2bb7e185bf1a0cdc958839cc492e6b4cc1069b"], ["LIMIT", 1]] + Doorkeeper::Application Load (0.8ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] +  (1.0ms) BEGIN + Doorkeeper::AccessGrant Load (1.4ms) SELECT "oauth_access_grants".* FROM "oauth_access_grants" WHERE "oauth_access_grants"."id" = $1 LIMIT $2 FOR UPDATE [["id", 2], ["LIMIT", 1]] + Doorkeeper::AccessGrant Update (1.2ms) UPDATE "oauth_access_grants" SET "revoked_at" = $1 WHERE "oauth_access_grants"."id" = $2 [["revoked_at", "2019-03-19 04:18:05.517150"], ["id", 2]] + Doorkeeper::Application Load (1.0ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + CACHE Doorkeeper::Application Load (0.0ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + Doorkeeper::AccessToken Exists (1.2ms) SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2 [["token", "2494fef8ec31636fbd983821c225c99ab3fba754b0069b1d6dad2e68e69e14f8"], ["LIMIT", 1]] + Doorkeeper::AccessToken Create (1.7ms) INSERT INTO "oauth_access_tokens" ("resource_owner_id", "application_id", "token", "expires_in", "created_at", "scopes") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["resource_owner_id", 1], ["application_id", 1], ["token", "2494fef8ec31636fbd983821c225c99ab3fba754b0069b1d6dad2e68e69e14f8"], ["expires_in", 7200], ["created_at", "2019-03-19 04:18:05.538065"], ["scopes", ""]] +  (2.0ms) COMMIT +Completed 200 OK in 38ms + + +Started GET "/api/v3/accounts" for ::1 at 2019-03-19 12:18:05 +0800 + +ActionController::RoutingError (No route matches [GET] "/api/v3/accounts"): + +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' + +OAuth2::Error (<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="utf-8" /> + <title>Action Controller: Exception caught</title> + <style> + body { + background-color: #FAFAFA; + color: #333; + margin: 0px; + } + + body, p, ol, ul, td { + font-family: helvetica, verdana, arial, sans-serif; + font-size: 13px; + line-height: 18px; + } + + pre { + font-size: 11px; + white-space: pre-wrap; + } + + pre.box { + border: 1px solid #EEE; + padding: 10px; + margin: 0px; + width: 958px; + } + + header { + color: #F0F0F0; + background: #C52F24; + padding: 0.5em 1.5em; + } + + h1 { + margin: 0.2em 0; + line-height: 1.1em; + font-size: 2em; + } + + h2 { + color: #C52F24; + line-height: 25px; + } + + .details { + border: 1px solid #D0D0D0; + border-radius: 4px; + margin: 1em 0px; + display: block; + width: 978px; + } + + .summary { + padding: 8px 15px; + border-bottom: 1px solid #D0D0D0; + display: block; + } + + .details pre { + margin: 5px; + border: none; + } + + #container { + box-sizing: border-box; + width: 100%; + padding: 0 1.5em; + } + + .source * { + margin: 0px; + padding: 0px; + } + + .source { + border: 1px solid #D9D9D9; + background: #ECECEC; + width: 978px; + } + + .source pre { + padding: 10px 0px; + border: none; + } + + .source .data { + font-size: 80%; + overflow: auto; + background-color: #FFF; + } + + .info { + padding: 0.5em; + } + + .source .data .line_numbers { + background-color: #ECECEC; + color: #AAA; + padding: 1em .5em; + border-right: 1px solid #DDD; + text-align: right; + } + + .line { + padding-left: 10px; + white-space: pre; + } + + .line:hover { + background-color: #F6F6F6; + } + + .line.active { + background-color: #FFCCCC; + } + + .hidden { + display: none; + } + + a { color: #980905; } + a:visited { color: #666; } + a.trace-frames { color: #666; } + a:hover { color: #C52F24; } + a.trace-frames.selected { color: #C52F24 } + + #route_table { + margin: 0; + border-collapse: collapse; + } + + #route_table thead tr { + border-bottom: 2px solid #ddd; + } + + #route_table thead tr.bottom { + border-bottom: none; + } + + #route_table thead tr.bottom th { + padding: 10px 0; + line-height: 15px; + } + + #route_table thead tr.bottom th input#search { + -webkit-appearance: textfield; + } + + #route_table tbody tr { + border-bottom: 1px solid #ddd; + } + + #route_table tbody tr:nth-child(odd) { + background: #f2f2f2; + } + + #route_table tbody.exact_matches, + #route_table tbody.fuzzy_matches { + background-color: LightGoldenRodYellow; + border-bottom: solid 2px SlateGrey; + } + + #route_table tbody.exact_matches tr, + #route_table tbody.fuzzy_matches tr { + background: none; + border-bottom: none; + } + + #route_table td { + padding: 4px 30px; + } + + #path_search { + width: 80%; + font-size: inherit; + } + + </style> + + <script> + var toggle = function(id) { + var s = document.getElementById(id).style; + s.display = s.display == 'none' ? 'block' : 'none'; + return false; + } + var show = function(id) { + document.getElementById(id).style.display = 'block'; + } + var hide = function(id) { + document.getElementById(id).style.display = 'none'; + } + var toggleTrace = function() { + return toggle('blame_trace'); + } + var toggleSessionDump = function() { + return toggle('session_dump'); + } + var toggleEnvDump = function() { + return toggle('env_dump'); + } + </script> +</head> +<body> + +<header> + <h1>Routing Error</h1> +</header> +<div id="container"> + <h2>No route matches [GET] &quot;/api/v3/accounts&quot;</h2> + + +<p><code>Rails.root: /Users/marc/Projects/bookingsync-engine/spec/dummy</code></p> + +<div id="traces"> + <a href="#" onclick="hide(&#39;Framework-Trace&#39;);hide(&#39;Full-Trace&#39;);show(&#39;Application-Trace&#39;);; return false;">Application Trace</a> | + <a href="#" onclick="hide(&#39;Application-Trace&#39;);hide(&#39;Full-Trace&#39;);show(&#39;Framework-Trace&#39;);; return false;">Framework Trace</a> | + <a href="#" onclick="hide(&#39;Application-Trace&#39;);hide(&#39;Framework-Trace&#39;);show(&#39;Full-Trace&#39;);; return false;">Full Trace</a> + + <div id="Application-Trace" style="display: block;"> + <pre><code></code></pre> + </div> + <div id="Framework-Trace" style="display: none;"> + <pre><code><a class="trace-frames" data-frame-id="0" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call&#39;</a><br><a class="trace-frames" data-frame-id="1" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call&#39;</a><br><a class="trace-frames" data-frame-id="2" href="#">railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app&#39;</a><br><a class="trace-frames" data-frame-id="3" href="#">railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call&#39;</a><br><a class="trace-frames" data-frame-id="4" href="#">activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged&#39;</a><br><a class="trace-frames" data-frame-id="5" href="#">activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged&#39;</a><br><a class="trace-frames" data-frame-id="6" href="#">activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged&#39;</a><br><a class="trace-frames" data-frame-id="7" href="#">railties (5.2.2) lib/rails/rack/logger.rb:26:in `call&#39;</a><br><a class="trace-frames" data-frame-id="8" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call&#39;</a><br><a class="trace-frames" data-frame-id="9" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call&#39;</a><br><a class="trace-frames" data-frame-id="10" href="#">rack (2.0.6) lib/rack/method_override.rb:22:in `call&#39;</a><br><a class="trace-frames" data-frame-id="11" href="#">rack (2.0.6) lib/rack/runtime.rb:22:in `call&#39;</a><br><a class="trace-frames" data-frame-id="12" href="#">activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call&#39;</a><br><a class="trace-frames" data-frame-id="13" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call&#39;</a><br><a class="trace-frames" data-frame-id="14" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call&#39;</a><br><a class="trace-frames" data-frame-id="15" href="#">rack (2.0.6) lib/rack/sendfile.rb:111:in `call&#39;</a><br><a class="trace-frames" data-frame-id="16" href="#">railties (5.2.2) lib/rails/engine.rb:524:in `call&#39;</a><br><a class="trace-frames" data-frame-id="17" href="#">puma (3.12.0) lib/puma/configuration.rb:225:in `call&#39;</a><br><a class="trace-frames" data-frame-id="18" href="#">puma (3.12.0) lib/puma/server.rb:658:in `handle_request&#39;</a><br><a class="trace-frames" data-frame-id="19" href="#">puma (3.12.0) lib/puma/server.rb:472:in `process_client&#39;</a><br><a class="trace-frames" data-frame-id="20" href="#">puma (3.12.0) lib/puma/server.rb:332:in `block in run&#39;</a><br><a class="trace-frames" data-frame-id="21" href="#">puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread&#39;</a><br></code></pre> + </div> + <div id="Full-Trace" style="display: none;"> + <pre><code><a class="trace-frames" data-frame-id="0" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call&#39;</a><br><a class="trace-frames" data-frame-id="1" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call&#39;</a><br><a class="trace-frames" data-frame-id="2" href="#">railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app&#39;</a><br><a class="trace-frames" data-frame-id="3" href="#">railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call&#39;</a><br><a class="trace-frames" data-frame-id="4" href="#">activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged&#39;</a><br><a class="trace-frames" data-frame-id="5" href="#">activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged&#39;</a><br><a class="trace-frames" data-frame-id="6" href="#">activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged&#39;</a><br><a class="trace-frames" data-frame-id="7" href="#">railties (5.2.2) lib/rails/rack/logger.rb:26:in `call&#39;</a><br><a class="trace-frames" data-frame-id="8" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call&#39;</a><br><a class="trace-frames" data-frame-id="9" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call&#39;</a><br><a class="trace-frames" data-frame-id="10" href="#">rack (2.0.6) lib/rack/method_override.rb:22:in `call&#39;</a><br><a class="trace-frames" data-frame-id="11" href="#">rack (2.0.6) lib/rack/runtime.rb:22:in `call&#39;</a><br><a class="trace-frames" data-frame-id="12" href="#">activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call&#39;</a><br><a class="trace-frames" data-frame-id="13" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call&#39;</a><br><a class="trace-frames" data-frame-id="14" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call&#39;</a><br><a class="trace-frames" data-frame-id="15" href="#">rack (2.0.6) lib/rack/sendfile.rb:111:in `call&#39;</a><br><a class="trace-frames" data-frame-id="16" href="#">railties (5.2.2) lib/rails/engine.rb:524:in `call&#39;</a><br><a class="trace-frames" data-frame-id="17" href="#">puma (3.12.0) lib/puma/configuration.rb:225:in `call&#39;</a><br><a class="trace-frames" data-frame-id="18" href="#">puma (3.12.0) lib/puma/server.rb:658:in `handle_request&#39;</a><br><a class="trace-frames" data-frame-id="19" href="#">puma (3.12.0) lib/puma/server.rb:472:in `process_client&#39;</a><br><a class="trace-frames" data-frame-id="20" href="#">puma (3.12.0) lib/puma/server.rb:332:in `block in run&#39;</a><br><a class="trace-frames" data-frame-id="21" href="#">puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread&#39;</a><br></code></pre> + </div> + + <script type="text/javascript"> + var traceFrames = document.getElementsByClassName('trace-frames'); + var selectedFrame, currentSource = document.getElementById('frame-source-0'); + + // Add click listeners for all stack frames + for (var i = 0; i < traceFrames.length; i++) { + traceFrames[i].addEventListener('click', function(e) { + e.preventDefault(); + var target = e.target; + var frame_id = target.dataset.frameId; + + if (selectedFrame) { + selectedFrame.className = selectedFrame.className.replace("selected", ""); + } + + target.className += " selected"; + selectedFrame = target; + + // Change the extracted source code + changeSourceExtract(frame_id); + }); + + function changeSourceExtract(frame_id) { + var el = document.getElementById('frame-source-' + frame_id); + if (currentSource && el) { + currentSource.className += " hidden"; + el.className = el.className.replace(" hidden", ""); + currentSource = el; + } + } + } + </script> +</div> + + + <h2> + Routes + </h2> + + <p> + Routes match in priority from top to bottom + </p> + + +<table id='route_table' class='route_table'> + <thead> + <tr> + <th>Helper</th> + <th>HTTP Verb</th> + <th>Path</th> + <th>Controller#Action</th> + </tr> + <tr class='bottom'> + <th> + <a data-route-helper="_path" title="Returns a relative path (without the http or domain)" href="#">Path</a> / + <a data-route-helper="_url" title="Returns an absolute URL (with the http and domain)" href="#">Url</a> + </th> + <th> + </th> + <th> + <input id="search" placeholder="Path Match" type="search" name="path[]" /> + </th> + <th> + </th> + </tr> + </thead> + <tbody class='exact_matches' id='exact_matches'> + </tbody> + <tbody class='fuzzy_matches' id='fuzzy_matches'> + </tbody> + <tbody> + <tr class='route_row' data-helper='path'> + <td data-route-name='native_oauth_authorization'> + native_oauth_authorization<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/authorize/native(.:format)'> + /oauth/authorize/native(.:format) + </td> + <td> + <p>doorkeeper/authorizations#show</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_authorization'> + oauth_authorization<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/authorize(.:format)'> + /oauth/authorize(.:format) + </td> + <td> + <p>doorkeeper/authorizations#new</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name=''> + </td> + <td> + DELETE + </td> + <td data-route-path='/oauth/authorize(.:format)'> + /oauth/authorize(.:format) + </td> + <td> + <p>doorkeeper/authorizations#destroy</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name=''> + </td> + <td> + POST + </td> + <td data-route-path='/oauth/authorize(.:format)'> + /oauth/authorize(.:format) + </td> + <td> + <p>doorkeeper/authorizations#create</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_token'> + oauth_token<span class='helper'>_path</span> + </td> + <td> + POST + </td> + <td data-route-path='/oauth/token(.:format)'> + /oauth/token(.:format) + </td> + <td> + <p>doorkeeper/tokens#create</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_revoke'> + oauth_revoke<span class='helper'>_path</span> + </td> + <td> + POST + </td> + <td data-route-path='/oauth/revoke(.:format)'> + /oauth/revoke(.:format) + </td> + <td> + <p>doorkeeper/tokens#revoke</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_introspect'> + oauth_introspect<span class='helper'>_path</span> + </td> + <td> + POST + </td> + <td data-route-path='/oauth/introspect(.:format)'> + /oauth/introspect(.:format) + </td> + <td> + <p>doorkeeper/tokens#introspect</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_applications'> + oauth_applications<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/applications(.:format)'> + /oauth/applications(.:format) + </td> + <td> + <p>doorkeeper/applications#index</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name=''> + </td> + <td> + POST + </td> + <td data-route-path='/oauth/applications(.:format)'> + /oauth/applications(.:format) + </td> + <td> + <p>doorkeeper/applications#create</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='new_oauth_application'> + new_oauth_application<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/applications/new(.:format)'> + /oauth/applications/new(.:format) + </td> + <td> + <p>doorkeeper/applications#new</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='edit_oauth_application'> + edit_oauth_application<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/applications/:id/edit(.:format)'> + /oauth/applications/:id/edit(.:format) + </td> + <td> + <p>doorkeeper/applications#edit</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_application'> + oauth_application<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/applications/:id(.:format)'> + /oauth/applications/:id(.:format) + </td> + <td> + <p>doorkeeper/applications#show</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name=''> + </td> + <td> + PATCH + </td> + <td data-route-path='/oauth/applications/:id(.:format)'> + /oauth/applications/:id(.:format) + </td> + <td> + <p>doorkeeper/applications#update</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name=''> + </td> + <td> + PUT + </td> + <td data-route-path='/oauth/applications/:id(.:format)'> + /oauth/applications/:id(.:format) + </td> + <td> + <p>doorkeeper/applications#update</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name=''> + </td> + <td> + DELETE + </td> + <td data-route-path='/oauth/applications/:id(.:format)'> + /oauth/applications/:id(.:format) + </td> + <td> + <p>doorkeeper/applications#destroy</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_authorized_applications'> + oauth_authorized_applications<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/authorized_applications(.:format)'> + /oauth/authorized_applications(.:format) + </td> + <td> + <p>doorkeeper/authorized_applications#index</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_authorized_application'> + oauth_authorized_application<span class='helper'>_path</span> + </td> + <td> + DELETE + </td> + <td data-route-path='/oauth/authorized_applications/:id(.:format)'> + /oauth/authorized_applications/:id(.:format) + </td> + <td> + <p>doorkeeper/authorized_applications#destroy</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_token_info'> + oauth_token_info<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/token/info(.:format)'> + /oauth/token/info(.:format) + </td> + <td> + <p>doorkeeper/token_info#show</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='booking_sync_engine'> + booking_sync_engine<span class='helper'>_path</span> + </td> + <td> + + </td> + <td data-route-path='/'> + / + </td> + <td> + <p>BookingSync::Engine</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='authenticated'> + authenticated<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/authenticated(.:format)'> + /authenticated(.:format) + </td> + <td> + <p>authenticated#index</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='root'> + root<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/'> + / + </td> + <td> + <p>home#index</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='rails_service_blob'> + rails_service_blob<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/rails/active_storage/blobs/:signed_id/*filename(.:format)'> + /rails/active_storage/blobs/:signed_id/*filename(.:format) + </td> + <td> + <p>active_storage/blobs#show</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='rails_blob_representation'> + rails_blob_representation<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format)'> + /rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format) + </td> + <td> + <p>active_storage/representations#show</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='rails_disk_service'> + rails_disk_service<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/rails/active_storage/disk/:encoded_key/*filename(.:format)'> + /rails/active_storage/disk/:encoded_key/*filename(.:format) + </td> + <td> + <p>active_storage/disk#show</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='update_rails_disk_service'> + update_rails_disk_service<span class='helper'>_path</span> + </td> + <td> + PUT + </td> + <td data-route-path='/rails/active_storage/disk/:encoded_token(.:format)'> + /rails/active_storage/disk/:encoded_token(.:format) + </td> + <td> + <p>active_storage/disk#update</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='rails_direct_uploads'> + rails_direct_uploads<span class='helper'>_path</span> + </td> + <td> + POST + </td> + <td data-route-path='/rails/active_storage/direct_uploads(.:format)'> + /rails/active_storage/direct_uploads(.:format) + </td> + <td> + <p>active_storage/direct_uploads#create</p> + </td> +</tr> + +<tr><th colspan="4">Routes for BookingSync::Engine</th></tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='auth_bookingsync_callback'> + auth_bookingsync_callback<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/auth/bookingsync/callback(.:format)'> + /auth/bookingsync/callback(.:format) + </td> + <td> + <p>sessions#create</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='auth_failure'> + auth_failure<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/auth/failure(.:format)'> + /auth/failure(.:format) + </td> + <td> + <p>sessions#failure</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='signout'> + signout<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/signout(.:format)'> + /signout(.:format) + </td> + <td> + <p>sessions#destroy</p> + </td> +</tr> + + </tbody> +</table> + +<script type='text/javascript'> + // support forEarch iterator on NodeList + NodeList.prototype.forEach = Array.prototype.forEach; + + // Enables path search functionality + function setupMatchPaths() { + // Check if there are any matched results in a section + function checkNoMatch(section, noMatchText) { + if (section.children.length <= 1) { + section.innerHTML += noMatchText; + } + } + + // get JSON from URL and invoke callback with result + function getJSON(url, success) { + var xhr = new XMLHttpRequest(); + xhr.open('GET', url); + xhr.onload = function() { + if (this.status == 200) + success(JSON.parse(this.response)); + }; + xhr.send(); + } + + function delayedKeyup(input, callback) { + var timeout; + input.onkeyup = function(){ + if (timeout) clearTimeout(timeout); + timeout = setTimeout(callback, 300); + } + } + + // remove params or fragments + function sanitizePath(path) { + return path.replace(/[#?].*/, ''); + } + + var pathElements = document.querySelectorAll('#route_table [data-route-path]'), + searchElem = document.querySelector('#search'), + exactSection = document.querySelector('#exact_matches'), + fuzzySection = document.querySelector('#fuzzy_matches'); + + // Remove matches when no search value is present + searchElem.onblur = function(e) { + if (searchElem.value === "") { + exactSection.innerHTML = ""; + fuzzySection.innerHTML = ""; + } + } + + // On key press perform a search for matching paths + delayedKeyup(searchElem, function() { + var path = sanitizePath(searchElem.value), + defaultExactMatch = '<tr><th colspan="4">Paths Matching (' + path +'):</th></tr>', + defaultFuzzyMatch = '<tr><th colspan="4">Paths Containing (' + path +'):</th></tr>', + noExactMatch = '<tr><th colspan="4">No Exact Matches Found</th></tr>', + noFuzzyMatch = '<tr><th colspan="4">No Fuzzy Matches Found</th></tr>'; + + if (!path) + return searchElem.onblur(); + + getJSON('/rails/info/routes?path=' + path, function(matches){ + // Clear out results section + exactSection.innerHTML = defaultExactMatch; + fuzzySection.innerHTML = defaultFuzzyMatch; + + // Display exact matches and fuzzy matches + pathElements.forEach(function(elem) { + var elemPath = elem.getAttribute('data-route-path'); + + if (matches['exact'].indexOf(elemPath) != -1) + exactSection.appendChild(elem.parentNode.cloneNode(true)); + + if (matches['fuzzy'].indexOf(elemPath) != -1) + fuzzySection.appendChild(elem.parentNode.cloneNode(true)); + }) + + // Display 'No Matches' message when no matches are found + checkNoMatch(exactSection, noExactMatch); + checkNoMatch(fuzzySection, noFuzzyMatch); + }) + }) + } + + // Enables functionality to toggle between `_path` and `_url` helper suffixes + function setupRouteToggleHelperLinks() { + + // Sets content for each element + function setValOn(elems, val) { + elems.forEach(function(elem) { + elem.innerHTML = val; + }); + } + + // Sets onClick event for each element + function onClick(elems, func) { + elems.forEach(function(elem) { + elem.onclick = func; + }); + } + + var toggleLinks = document.querySelectorAll('#route_table [data-route-helper]'); + + onClick(toggleLinks, function(){ + var helperTxt = this.getAttribute("data-route-helper"), + helperElems = document.querySelectorAll('[data-route-name] span.helper'); + + setValOn(helperElems, helperTxt); + }); + } + + setupMatchPaths(); + setupRouteToggleHelperLinks(); +</script> + + + +<h2 style="margin-top: 30px">Request</h2> +<p><b>Parameters</b>:</p> <pre>None</pre> + +<div class="details"> + <div class="summary"><a href="#" onclick="return toggleSessionDump()">Toggle session dump</a></div> + <div id="session_dump" style="display:none"><pre></pre></div> +</div> + +<div class="details"> + <div class="summary"><a href="#" onclick="return toggleEnvDump()">Toggle env dump</a></div> + <div id="env_dump" style="display:none"><pre>GATEWAY_INTERFACE: &quot;CGI/1.2&quot; +HTTP_ACCEPT: &quot;*/*&quot; +HTTP_ACCEPT_ENCODING: &quot;gzip;q=1.0,deflate;q=0.6,identity;q=0.3&quot; +HTTP_VERSION: &quot;HTTP/1.1&quot; +ORIGINAL_SCRIPT_NAME: &quot;&quot; +REMOTE_ADDR: &quot;::1&quot; +SERVER_NAME: &quot;localhost&quot; +SERVER_PROTOCOL: &quot;HTTP/1.1&quot;</pre></div> +</div> + +<h2 style="margin-top: 30px">Response</h2> +<p><b>Headers</b>:</p> <pre>None</pre> + +</div> + + +</body> +</html> +): + +oauth2 (1.3.1) lib/oauth2/client.rb:119:in `request' +oauth2 (1.3.1) lib/oauth2/access_token.rb:107:in `request' +oauth2 (1.3.1) lib/oauth2/access_token.rb:114:in `get' +omniauth-bookingsync (0.5.0) lib/omniauth/strategies/bookingsync.rb:19:in `raw_info' +omniauth-bookingsync (0.5.0) lib/omniauth/strategies/bookingsync.rb:10:in `block in <class:BookingSync>' +omniauth (1.9.0) lib/omniauth/strategy.rb:109:in `instance_eval' +omniauth (1.9.0) lib/omniauth/strategy.rb:109:in `block in compile_stack' +omniauth (1.9.0) lib/omniauth/strategy.rb:108:in `each' +omniauth (1.9.0) lib/omniauth/strategy.rb:108:in `inject' +omniauth (1.9.0) lib/omniauth/strategy.rb:108:in `compile_stack' +omniauth (1.9.0) lib/omniauth/strategy.rb:102:in `uid_stack' +omniauth (1.9.0) lib/omniauth/strategy.rb:332:in `uid' +omniauth (1.9.0) lib/omniauth/strategy.rb:348:in `auth_hash' +omniauth (1.9.0) lib/omniauth/strategy.rb:372:in `callback_phase' +omniauth-oauth2 (1.4.0) lib/omniauth/strategies/oauth2.rb:75:in `callback_phase' +omniauth (1.9.0) lib/omniauth/strategy.rb:238:in `callback_call' +omniauth (1.9.0) lib/omniauth/strategy.rb:189:in `call!' +omniauth (1.9.0) lib/omniauth/strategy.rb:169:in `call' +omniauth (1.9.0) lib/omniauth/builder.rb:64:in `call' +rack (2.0.6) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.6) lib/rack/etag.rb:25:in `call' +rack (2.0.6) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.6) lib/rack/head.rb:12:in `call' +actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.6) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.6) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.2) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/authenticated" for ::1 at 2019-03-19 12:30:15 +0800 +  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 7ms (Views: 3.3ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-19 12:30:16 +0800 +Started GET "/oauth/authorize?client_id=app_id&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fbookingsync%2Fcallback&response_type=code&state=529e05bb153dc9fd581051826d6d161c0e3aefe4d9ff6100" for ::1 at 2019-03-19 12:30:16 +0800 +  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by Doorkeeper::AuthorizationsController#new as HTML + Parameters: {"client_id"=>"app_id", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback", "response_type"=>"code", "state"=>"529e05bb153dc9fd581051826d6d161c0e3aefe4d9ff6100"} + RemoteAccount Load (1.2ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."name" = $1 LIMIT $2 [["name", "Toto"], ["LIMIT", 1]] + Doorkeeper::Application Load (1.3ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."name" = $1 LIMIT $2 [["name", "Toto"], ["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."name" = $1 LIMIT $2 [["name", "Toto"], ["LIMIT", 1]] + Doorkeeper::AccessToken Load (1.7ms) SELECT "oauth_access_tokens".* FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."application_id" = $1 AND "oauth_access_tokens"."resource_owner_id" = $2 AND "oauth_access_tokens"."revoked_at" IS NULL ORDER BY "oauth_access_tokens"."created_at" DESC [["application_id", 1], ["resource_owner_id", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."name" = $1 LIMIT $2 [["name", "Toto"], ["LIMIT", 1]] +  (1.2ms) BEGIN + Doorkeeper::AccessGrant Exists (1.5ms) SELECT 1 AS one FROM "oauth_access_grants" WHERE "oauth_access_grants"."token" = $1 LIMIT $2 [["token", "cc5178478ba89198db7179d10af45203842d273ac6fb06eec8b8148b3253b0eb"], ["LIMIT", 1]] + Doorkeeper::AccessGrant Create (1.4ms) INSERT INTO "oauth_access_grants" ("resource_owner_id", "application_id", "token", "expires_in", "redirect_uri", "created_at", "scopes") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["resource_owner_id", 1], ["application_id", 1], ["token", "cc5178478ba89198db7179d10af45203842d273ac6fb06eec8b8148b3253b0eb"], ["expires_in", 600], ["redirect_uri", "http://localhost:3000/auth/bookingsync/callback"], ["created_at", "2019-03-19 04:30:16.425233"], ["scopes", ""]] +  (3.4ms) COMMIT +Redirected to http://localhost:3000/auth/bookingsync/callback?code=cc5178478ba89198db7179d10af45203842d273ac6fb06eec8b8148b3253b0eb&state=529e05bb153dc9fd581051826d6d161c0e3aefe4d9ff6100 +Completed 302 Found in 74ms (ActiveRecord: 37.9ms) + + +Started GET "/auth/bookingsync/callback?code=[FILTERED]&state=529e05bb153dc9fd581051826d6d161c0e3aefe4d9ff6100" for ::1 at 2019-03-19 12:30:16 +0800 +Started POST "/oauth/token" for ::1 at 2019-03-19 12:30:16 +0800 +Processing by Doorkeeper::TokensController#create as */* + Parameters: {"client_id"=>"app_id", "client_secret"=>"[FILTERED]", "code"=>"[FILTERED]", "grant_type"=>"authorization_code", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback"} + Doorkeeper::AccessGrant Load (1.3ms) SELECT "oauth_access_grants".* FROM "oauth_access_grants" WHERE "oauth_access_grants"."token" = $1 LIMIT $2 [["token", "cc5178478ba89198db7179d10af45203842d273ac6fb06eec8b8148b3253b0eb"], ["LIMIT", 1]] + Doorkeeper::Application Load (1.3ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] +  (1.1ms) BEGIN + Doorkeeper::AccessGrant Load (1.5ms) SELECT "oauth_access_grants".* FROM "oauth_access_grants" WHERE "oauth_access_grants"."id" = $1 LIMIT $2 FOR UPDATE [["id", 3], ["LIMIT", 1]] + Doorkeeper::AccessGrant Update (1.8ms) UPDATE "oauth_access_grants" SET "revoked_at" = $1 WHERE "oauth_access_grants"."id" = $2 [["revoked_at", "2019-03-19 04:30:16.468611"], ["id", 3]] + Doorkeeper::Application Load (1.2ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + CACHE Doorkeeper::Application Load (0.0ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + Doorkeeper::AccessToken Exists (1.3ms) SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2 [["token", "5264ffdf1711330a12496bc154028bc7207703aaa1a5b731a0316bebb1911e11"], ["LIMIT", 1]] + Doorkeeper::AccessToken Create (1.8ms) INSERT INTO "oauth_access_tokens" ("resource_owner_id", "application_id", "token", "expires_in", "created_at", "scopes") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["resource_owner_id", 1], ["application_id", 1], ["token", "5264ffdf1711330a12496bc154028bc7207703aaa1a5b731a0316bebb1911e11"], ["expires_in", 7200], ["created_at", "2019-03-19 04:30:16.485769"], ["scopes", ""]] +  (1.9ms) COMMIT +Completed 200 OK in 37ms + + +Started GET "/api/v3/accounts" for ::1 at 2019-03-19 12:30:16 +0800 + +ActionController::RoutingError (No route matches [GET] "/api/v3/accounts"): + +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' + +OAuth2::Error (<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="utf-8" /> + <title>Action Controller: Exception caught</title> + <style> + body { + background-color: #FAFAFA; + color: #333; + margin: 0px; + } + + body, p, ol, ul, td { + font-family: helvetica, verdana, arial, sans-serif; + font-size: 13px; + line-height: 18px; + } + + pre { + font-size: 11px; + white-space: pre-wrap; + } + + pre.box { + border: 1px solid #EEE; + padding: 10px; + margin: 0px; + width: 958px; + } + + header { + color: #F0F0F0; + background: #C52F24; + padding: 0.5em 1.5em; + } + + h1 { + margin: 0.2em 0; + line-height: 1.1em; + font-size: 2em; + } + + h2 { + color: #C52F24; + line-height: 25px; + } + + .details { + border: 1px solid #D0D0D0; + border-radius: 4px; + margin: 1em 0px; + display: block; + width: 978px; + } + + .summary { + padding: 8px 15px; + border-bottom: 1px solid #D0D0D0; + display: block; + } + + .details pre { + margin: 5px; + border: none; + } + + #container { + box-sizing: border-box; + width: 100%; + padding: 0 1.5em; + } + + .source * { + margin: 0px; + padding: 0px; + } + + .source { + border: 1px solid #D9D9D9; + background: #ECECEC; + width: 978px; + } + + .source pre { + padding: 10px 0px; + border: none; + } + + .source .data { + font-size: 80%; + overflow: auto; + background-color: #FFF; + } + + .info { + padding: 0.5em; + } + + .source .data .line_numbers { + background-color: #ECECEC; + color: #AAA; + padding: 1em .5em; + border-right: 1px solid #DDD; + text-align: right; + } + + .line { + padding-left: 10px; + white-space: pre; + } + + .line:hover { + background-color: #F6F6F6; + } + + .line.active { + background-color: #FFCCCC; + } + + .hidden { + display: none; + } + + a { color: #980905; } + a:visited { color: #666; } + a.trace-frames { color: #666; } + a:hover { color: #C52F24; } + a.trace-frames.selected { color: #C52F24 } + + #route_table { + margin: 0; + border-collapse: collapse; + } + + #route_table thead tr { + border-bottom: 2px solid #ddd; + } + + #route_table thead tr.bottom { + border-bottom: none; + } + + #route_table thead tr.bottom th { + padding: 10px 0; + line-height: 15px; + } + + #route_table thead tr.bottom th input#search { + -webkit-appearance: textfield; + } + + #route_table tbody tr { + border-bottom: 1px solid #ddd; + } + + #route_table tbody tr:nth-child(odd) { + background: #f2f2f2; + } + + #route_table tbody.exact_matches, + #route_table tbody.fuzzy_matches { + background-color: LightGoldenRodYellow; + border-bottom: solid 2px SlateGrey; + } + + #route_table tbody.exact_matches tr, + #route_table tbody.fuzzy_matches tr { + background: none; + border-bottom: none; + } + + #route_table td { + padding: 4px 30px; + } + + #path_search { + width: 80%; + font-size: inherit; + } + + </style> + + <script> + var toggle = function(id) { + var s = document.getElementById(id).style; + s.display = s.display == 'none' ? 'block' : 'none'; + return false; + } + var show = function(id) { + document.getElementById(id).style.display = 'block'; + } + var hide = function(id) { + document.getElementById(id).style.display = 'none'; + } + var toggleTrace = function() { + return toggle('blame_trace'); + } + var toggleSessionDump = function() { + return toggle('session_dump'); + } + var toggleEnvDump = function() { + return toggle('env_dump'); + } + </script> +</head> +<body> + +<header> + <h1>Routing Error</h1> +</header> +<div id="container"> + <h2>No route matches [GET] &quot;/api/v3/accounts&quot;</h2> + + +<p><code>Rails.root: /Users/marc/Projects/bookingsync-engine/spec/dummy</code></p> + +<div id="traces"> + <a href="#" onclick="hide(&#39;Framework-Trace&#39;);hide(&#39;Full-Trace&#39;);show(&#39;Application-Trace&#39;);; return false;">Application Trace</a> | + <a href="#" onclick="hide(&#39;Application-Trace&#39;);hide(&#39;Full-Trace&#39;);show(&#39;Framework-Trace&#39;);; return false;">Framework Trace</a> | + <a href="#" onclick="hide(&#39;Application-Trace&#39;);hide(&#39;Framework-Trace&#39;);show(&#39;Full-Trace&#39;);; return false;">Full Trace</a> + + <div id="Application-Trace" style="display: block;"> + <pre><code></code></pre> + </div> + <div id="Framework-Trace" style="display: none;"> + <pre><code><a class="trace-frames" data-frame-id="0" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call&#39;</a><br><a class="trace-frames" data-frame-id="1" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call&#39;</a><br><a class="trace-frames" data-frame-id="2" href="#">railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app&#39;</a><br><a class="trace-frames" data-frame-id="3" href="#">railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call&#39;</a><br><a class="trace-frames" data-frame-id="4" href="#">activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged&#39;</a><br><a class="trace-frames" data-frame-id="5" href="#">activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged&#39;</a><br><a class="trace-frames" data-frame-id="6" href="#">activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged&#39;</a><br><a class="trace-frames" data-frame-id="7" href="#">railties (5.2.2) lib/rails/rack/logger.rb:26:in `call&#39;</a><br><a class="trace-frames" data-frame-id="8" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call&#39;</a><br><a class="trace-frames" data-frame-id="9" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call&#39;</a><br><a class="trace-frames" data-frame-id="10" href="#">rack (2.0.6) lib/rack/method_override.rb:22:in `call&#39;</a><br><a class="trace-frames" data-frame-id="11" href="#">rack (2.0.6) lib/rack/runtime.rb:22:in `call&#39;</a><br><a class="trace-frames" data-frame-id="12" href="#">activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call&#39;</a><br><a class="trace-frames" data-frame-id="13" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call&#39;</a><br><a class="trace-frames" data-frame-id="14" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call&#39;</a><br><a class="trace-frames" data-frame-id="15" href="#">rack (2.0.6) lib/rack/sendfile.rb:111:in `call&#39;</a><br><a class="trace-frames" data-frame-id="16" href="#">railties (5.2.2) lib/rails/engine.rb:524:in `call&#39;</a><br><a class="trace-frames" data-frame-id="17" href="#">puma (3.12.0) lib/puma/configuration.rb:225:in `call&#39;</a><br><a class="trace-frames" data-frame-id="18" href="#">puma (3.12.0) lib/puma/server.rb:658:in `handle_request&#39;</a><br><a class="trace-frames" data-frame-id="19" href="#">puma (3.12.0) lib/puma/server.rb:472:in `process_client&#39;</a><br><a class="trace-frames" data-frame-id="20" href="#">puma (3.12.0) lib/puma/server.rb:332:in `block in run&#39;</a><br><a class="trace-frames" data-frame-id="21" href="#">puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread&#39;</a><br></code></pre> + </div> + <div id="Full-Trace" style="display: none;"> + <pre><code><a class="trace-frames" data-frame-id="0" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call&#39;</a><br><a class="trace-frames" data-frame-id="1" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call&#39;</a><br><a class="trace-frames" data-frame-id="2" href="#">railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app&#39;</a><br><a class="trace-frames" data-frame-id="3" href="#">railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call&#39;</a><br><a class="trace-frames" data-frame-id="4" href="#">activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged&#39;</a><br><a class="trace-frames" data-frame-id="5" href="#">activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged&#39;</a><br><a class="trace-frames" data-frame-id="6" href="#">activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged&#39;</a><br><a class="trace-frames" data-frame-id="7" href="#">railties (5.2.2) lib/rails/rack/logger.rb:26:in `call&#39;</a><br><a class="trace-frames" data-frame-id="8" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call&#39;</a><br><a class="trace-frames" data-frame-id="9" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call&#39;</a><br><a class="trace-frames" data-frame-id="10" href="#">rack (2.0.6) lib/rack/method_override.rb:22:in `call&#39;</a><br><a class="trace-frames" data-frame-id="11" href="#">rack (2.0.6) lib/rack/runtime.rb:22:in `call&#39;</a><br><a class="trace-frames" data-frame-id="12" href="#">activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call&#39;</a><br><a class="trace-frames" data-frame-id="13" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call&#39;</a><br><a class="trace-frames" data-frame-id="14" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call&#39;</a><br><a class="trace-frames" data-frame-id="15" href="#">rack (2.0.6) lib/rack/sendfile.rb:111:in `call&#39;</a><br><a class="trace-frames" data-frame-id="16" href="#">railties (5.2.2) lib/rails/engine.rb:524:in `call&#39;</a><br><a class="trace-frames" data-frame-id="17" href="#">puma (3.12.0) lib/puma/configuration.rb:225:in `call&#39;</a><br><a class="trace-frames" data-frame-id="18" href="#">puma (3.12.0) lib/puma/server.rb:658:in `handle_request&#39;</a><br><a class="trace-frames" data-frame-id="19" href="#">puma (3.12.0) lib/puma/server.rb:472:in `process_client&#39;</a><br><a class="trace-frames" data-frame-id="20" href="#">puma (3.12.0) lib/puma/server.rb:332:in `block in run&#39;</a><br><a class="trace-frames" data-frame-id="21" href="#">puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread&#39;</a><br></code></pre> + </div> + + <script type="text/javascript"> + var traceFrames = document.getElementsByClassName('trace-frames'); + var selectedFrame, currentSource = document.getElementById('frame-source-0'); + + // Add click listeners for all stack frames + for (var i = 0; i < traceFrames.length; i++) { + traceFrames[i].addEventListener('click', function(e) { + e.preventDefault(); + var target = e.target; + var frame_id = target.dataset.frameId; + + if (selectedFrame) { + selectedFrame.className = selectedFrame.className.replace("selected", ""); + } + + target.className += " selected"; + selectedFrame = target; + + // Change the extracted source code + changeSourceExtract(frame_id); + }); + + function changeSourceExtract(frame_id) { + var el = document.getElementById('frame-source-' + frame_id); + if (currentSource && el) { + currentSource.className += " hidden"; + el.className = el.className.replace(" hidden", ""); + currentSource = el; + } + } + } + </script> +</div> + + + <h2> + Routes + </h2> + + <p> + Routes match in priority from top to bottom + </p> + + +<table id='route_table' class='route_table'> + <thead> + <tr> + <th>Helper</th> + <th>HTTP Verb</th> + <th>Path</th> + <th>Controller#Action</th> + </tr> + <tr class='bottom'> + <th> + <a data-route-helper="_path" title="Returns a relative path (without the http or domain)" href="#">Path</a> / + <a data-route-helper="_url" title="Returns an absolute URL (with the http and domain)" href="#">Url</a> + </th> + <th> + </th> + <th> + <input id="search" placeholder="Path Match" type="search" name="path[]" /> + </th> + <th> + </th> + </tr> + </thead> + <tbody class='exact_matches' id='exact_matches'> + </tbody> + <tbody class='fuzzy_matches' id='fuzzy_matches'> + </tbody> + <tbody> + <tr class='route_row' data-helper='path'> + <td data-route-name='native_oauth_authorization'> + native_oauth_authorization<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/authorize/native(.:format)'> + /oauth/authorize/native(.:format) + </td> + <td> + <p>doorkeeper/authorizations#show</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_authorization'> + oauth_authorization<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/authorize(.:format)'> + /oauth/authorize(.:format) + </td> + <td> + <p>doorkeeper/authorizations#new</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name=''> + </td> + <td> + DELETE + </td> + <td data-route-path='/oauth/authorize(.:format)'> + /oauth/authorize(.:format) + </td> + <td> + <p>doorkeeper/authorizations#destroy</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name=''> + </td> + <td> + POST + </td> + <td data-route-path='/oauth/authorize(.:format)'> + /oauth/authorize(.:format) + </td> + <td> + <p>doorkeeper/authorizations#create</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_token'> + oauth_token<span class='helper'>_path</span> + </td> + <td> + POST + </td> + <td data-route-path='/oauth/token(.:format)'> + /oauth/token(.:format) + </td> + <td> + <p>doorkeeper/tokens#create</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_revoke'> + oauth_revoke<span class='helper'>_path</span> + </td> + <td> + POST + </td> + <td data-route-path='/oauth/revoke(.:format)'> + /oauth/revoke(.:format) + </td> + <td> + <p>doorkeeper/tokens#revoke</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_introspect'> + oauth_introspect<span class='helper'>_path</span> + </td> + <td> + POST + </td> + <td data-route-path='/oauth/introspect(.:format)'> + /oauth/introspect(.:format) + </td> + <td> + <p>doorkeeper/tokens#introspect</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_applications'> + oauth_applications<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/applications(.:format)'> + /oauth/applications(.:format) + </td> + <td> + <p>doorkeeper/applications#index</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name=''> + </td> + <td> + POST + </td> + <td data-route-path='/oauth/applications(.:format)'> + /oauth/applications(.:format) + </td> + <td> + <p>doorkeeper/applications#create</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='new_oauth_application'> + new_oauth_application<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/applications/new(.:format)'> + /oauth/applications/new(.:format) + </td> + <td> + <p>doorkeeper/applications#new</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='edit_oauth_application'> + edit_oauth_application<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/applications/:id/edit(.:format)'> + /oauth/applications/:id/edit(.:format) + </td> + <td> + <p>doorkeeper/applications#edit</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_application'> + oauth_application<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/applications/:id(.:format)'> + /oauth/applications/:id(.:format) + </td> + <td> + <p>doorkeeper/applications#show</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name=''> + </td> + <td> + PATCH + </td> + <td data-route-path='/oauth/applications/:id(.:format)'> + /oauth/applications/:id(.:format) + </td> + <td> + <p>doorkeeper/applications#update</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name=''> + </td> + <td> + PUT + </td> + <td data-route-path='/oauth/applications/:id(.:format)'> + /oauth/applications/:id(.:format) + </td> + <td> + <p>doorkeeper/applications#update</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name=''> + </td> + <td> + DELETE + </td> + <td data-route-path='/oauth/applications/:id(.:format)'> + /oauth/applications/:id(.:format) + </td> + <td> + <p>doorkeeper/applications#destroy</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_authorized_applications'> + oauth_authorized_applications<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/authorized_applications(.:format)'> + /oauth/authorized_applications(.:format) + </td> + <td> + <p>doorkeeper/authorized_applications#index</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_authorized_application'> + oauth_authorized_application<span class='helper'>_path</span> + </td> + <td> + DELETE + </td> + <td data-route-path='/oauth/authorized_applications/:id(.:format)'> + /oauth/authorized_applications/:id(.:format) + </td> + <td> + <p>doorkeeper/authorized_applications#destroy</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_token_info'> + oauth_token_info<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/token/info(.:format)'> + /oauth/token/info(.:format) + </td> + <td> + <p>doorkeeper/token_info#show</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='booking_sync_engine'> + booking_sync_engine<span class='helper'>_path</span> + </td> + <td> + + </td> + <td data-route-path='/'> + / + </td> + <td> + <p>BookingSync::Engine</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='authenticated'> + authenticated<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/authenticated(.:format)'> + /authenticated(.:format) + </td> + <td> + <p>authenticated#index</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='root'> + root<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/'> + / + </td> + <td> + <p>home#index</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='rails_service_blob'> + rails_service_blob<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/rails/active_storage/blobs/:signed_id/*filename(.:format)'> + /rails/active_storage/blobs/:signed_id/*filename(.:format) + </td> + <td> + <p>active_storage/blobs#show</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='rails_blob_representation'> + rails_blob_representation<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format)'> + /rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format) + </td> + <td> + <p>active_storage/representations#show</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='rails_disk_service'> + rails_disk_service<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/rails/active_storage/disk/:encoded_key/*filename(.:format)'> + /rails/active_storage/disk/:encoded_key/*filename(.:format) + </td> + <td> + <p>active_storage/disk#show</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='update_rails_disk_service'> + update_rails_disk_service<span class='helper'>_path</span> + </td> + <td> + PUT + </td> + <td data-route-path='/rails/active_storage/disk/:encoded_token(.:format)'> + /rails/active_storage/disk/:encoded_token(.:format) + </td> + <td> + <p>active_storage/disk#update</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='rails_direct_uploads'> + rails_direct_uploads<span class='helper'>_path</span> + </td> + <td> + POST + </td> + <td data-route-path='/rails/active_storage/direct_uploads(.:format)'> + /rails/active_storage/direct_uploads(.:format) + </td> + <td> + <p>active_storage/direct_uploads#create</p> + </td> +</tr> + +<tr><th colspan="4">Routes for BookingSync::Engine</th></tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='auth_bookingsync_callback'> + auth_bookingsync_callback<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/auth/bookingsync/callback(.:format)'> + /auth/bookingsync/callback(.:format) + </td> + <td> + <p>sessions#create</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='auth_failure'> + auth_failure<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/auth/failure(.:format)'> + /auth/failure(.:format) + </td> + <td> + <p>sessions#failure</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='signout'> + signout<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/signout(.:format)'> + /signout(.:format) + </td> + <td> + <p>sessions#destroy</p> + </td> +</tr> + + </tbody> +</table> + +<script type='text/javascript'> + // support forEarch iterator on NodeList + NodeList.prototype.forEach = Array.prototype.forEach; + + // Enables path search functionality + function setupMatchPaths() { + // Check if there are any matched results in a section + function checkNoMatch(section, noMatchText) { + if (section.children.length <= 1) { + section.innerHTML += noMatchText; + } + } + + // get JSON from URL and invoke callback with result + function getJSON(url, success) { + var xhr = new XMLHttpRequest(); + xhr.open('GET', url); + xhr.onload = function() { + if (this.status == 200) + success(JSON.parse(this.response)); + }; + xhr.send(); + } + + function delayedKeyup(input, callback) { + var timeout; + input.onkeyup = function(){ + if (timeout) clearTimeout(timeout); + timeout = setTimeout(callback, 300); + } + } + + // remove params or fragments + function sanitizePath(path) { + return path.replace(/[#?].*/, ''); + } + + var pathElements = document.querySelectorAll('#route_table [data-route-path]'), + searchElem = document.querySelector('#search'), + exactSection = document.querySelector('#exact_matches'), + fuzzySection = document.querySelector('#fuzzy_matches'); + + // Remove matches when no search value is present + searchElem.onblur = function(e) { + if (searchElem.value === "") { + exactSection.innerHTML = ""; + fuzzySection.innerHTML = ""; + } + } + + // On key press perform a search for matching paths + delayedKeyup(searchElem, function() { + var path = sanitizePath(searchElem.value), + defaultExactMatch = '<tr><th colspan="4">Paths Matching (' + path +'):</th></tr>', + defaultFuzzyMatch = '<tr><th colspan="4">Paths Containing (' + path +'):</th></tr>', + noExactMatch = '<tr><th colspan="4">No Exact Matches Found</th></tr>', + noFuzzyMatch = '<tr><th colspan="4">No Fuzzy Matches Found</th></tr>'; + + if (!path) + return searchElem.onblur(); + + getJSON('/rails/info/routes?path=' + path, function(matches){ + // Clear out results section + exactSection.innerHTML = defaultExactMatch; + fuzzySection.innerHTML = defaultFuzzyMatch; + + // Display exact matches and fuzzy matches + pathElements.forEach(function(elem) { + var elemPath = elem.getAttribute('data-route-path'); + + if (matches['exact'].indexOf(elemPath) != -1) + exactSection.appendChild(elem.parentNode.cloneNode(true)); + + if (matches['fuzzy'].indexOf(elemPath) != -1) + fuzzySection.appendChild(elem.parentNode.cloneNode(true)); + }) + + // Display 'No Matches' message when no matches are found + checkNoMatch(exactSection, noExactMatch); + checkNoMatch(fuzzySection, noFuzzyMatch); + }) + }) + } + + // Enables functionality to toggle between `_path` and `_url` helper suffixes + function setupRouteToggleHelperLinks() { + + // Sets content for each element + function setValOn(elems, val) { + elems.forEach(function(elem) { + elem.innerHTML = val; + }); + } + + // Sets onClick event for each element + function onClick(elems, func) { + elems.forEach(function(elem) { + elem.onclick = func; + }); + } + + var toggleLinks = document.querySelectorAll('#route_table [data-route-helper]'); + + onClick(toggleLinks, function(){ + var helperTxt = this.getAttribute("data-route-helper"), + helperElems = document.querySelectorAll('[data-route-name] span.helper'); + + setValOn(helperElems, helperTxt); + }); + } + + setupMatchPaths(); + setupRouteToggleHelperLinks(); +</script> + + + +<h2 style="margin-top: 30px">Request</h2> +<p><b>Parameters</b>:</p> <pre>None</pre> + +<div class="details"> + <div class="summary"><a href="#" onclick="return toggleSessionDump()">Toggle session dump</a></div> + <div id="session_dump" style="display:none"><pre></pre></div> +</div> + +<div class="details"> + <div class="summary"><a href="#" onclick="return toggleEnvDump()">Toggle env dump</a></div> + <div id="env_dump" style="display:none"><pre>GATEWAY_INTERFACE: &quot;CGI/1.2&quot; +HTTP_ACCEPT: &quot;*/*&quot; +HTTP_ACCEPT_ENCODING: &quot;gzip;q=1.0,deflate;q=0.6,identity;q=0.3&quot; +HTTP_VERSION: &quot;HTTP/1.1&quot; +ORIGINAL_SCRIPT_NAME: &quot;&quot; +REMOTE_ADDR: &quot;::1&quot; +SERVER_NAME: &quot;localhost&quot; +SERVER_PROTOCOL: &quot;HTTP/1.1&quot;</pre></div> +</div> + +<h2 style="margin-top: 30px">Response</h2> +<p><b>Headers</b>:</p> <pre>None</pre> + +</div> + + +</body> +</html> +): + +oauth2 (1.3.1) lib/oauth2/client.rb:119:in `request' +oauth2 (1.3.1) lib/oauth2/access_token.rb:107:in `request' +oauth2 (1.3.1) lib/oauth2/access_token.rb:114:in `get' +omniauth-bookingsync (0.5.0) lib/omniauth/strategies/bookingsync.rb:19:in `raw_info' +omniauth-bookingsync (0.5.0) lib/omniauth/strategies/bookingsync.rb:10:in `block in <class:BookingSync>' +omniauth (1.9.0) lib/omniauth/strategy.rb:109:in `instance_eval' +omniauth (1.9.0) lib/omniauth/strategy.rb:109:in `block in compile_stack' +omniauth (1.9.0) lib/omniauth/strategy.rb:108:in `each' +omniauth (1.9.0) lib/omniauth/strategy.rb:108:in `inject' +omniauth (1.9.0) lib/omniauth/strategy.rb:108:in `compile_stack' +omniauth (1.9.0) lib/omniauth/strategy.rb:102:in `uid_stack' +omniauth (1.9.0) lib/omniauth/strategy.rb:332:in `uid' +omniauth (1.9.0) lib/omniauth/strategy.rb:348:in `auth_hash' +omniauth (1.9.0) lib/omniauth/strategy.rb:372:in `callback_phase' +omniauth-oauth2 (1.4.0) lib/omniauth/strategies/oauth2.rb:75:in `callback_phase' +omniauth (1.9.0) lib/omniauth/strategy.rb:238:in `callback_call' +omniauth (1.9.0) lib/omniauth/strategy.rb:189:in `call!' +omniauth (1.9.0) lib/omniauth/strategy.rb:169:in `call' +omniauth (1.9.0) lib/omniauth/builder.rb:64:in `call' +rack (2.0.6) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.6) lib/rack/etag.rb:25:in `call' +rack (2.0.6) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.6) lib/rack/head.rb:12:in `call' +actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.6) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.6) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.2) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/authenticated" for ::1 at 2019-03-19 12:30:39 +0800 +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-19 12:30:39 +0800 +Started GET "/oauth/authorize?client_id=app_id&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fbookingsync%2Fcallback&response_type=code&state=771d407745e72342d33e4fd7c4ec7022af2229fef4ea85f2" for ::1 at 2019-03-19 12:30:39 +0800 +Processing by Doorkeeper::AuthorizationsController#new as HTML + Parameters: {"client_id"=>"app_id", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback", "response_type"=>"code", "state"=>"771d407745e72342d33e4fd7c4ec7022af2229fef4ea85f2"} + RemoteAccount Load (1.9ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."name" = $1 LIMIT $2 [["name", "Toto"], ["LIMIT", 1]] + Doorkeeper::Application Load (1.6ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."name" = $1 LIMIT $2 [["name", "Toto"], ["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."name" = $1 LIMIT $2 [["name", "Toto"], ["LIMIT", 1]] + Doorkeeper::AccessToken Load (1.9ms) SELECT "oauth_access_tokens".* FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."application_id" = $1 AND "oauth_access_tokens"."resource_owner_id" = $2 AND "oauth_access_tokens"."revoked_at" IS NULL ORDER BY "oauth_access_tokens"."created_at" DESC [["application_id", 1], ["resource_owner_id", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."name" = $1 LIMIT $2 [["name", "Toto"], ["LIMIT", 1]] +  (1.6ms) BEGIN + Doorkeeper::AccessGrant Exists (1.6ms) SELECT 1 AS one FROM "oauth_access_grants" WHERE "oauth_access_grants"."token" = $1 LIMIT $2 [["token", "e1486c782f4ae4b0d5540e1b65170fbd5a0ba9f032811dc2265d8a25b587cb11"], ["LIMIT", 1]] + Doorkeeper::AccessGrant Create (1.7ms) INSERT INTO "oauth_access_grants" ("resource_owner_id", "application_id", "token", "expires_in", "redirect_uri", "created_at", "scopes") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["resource_owner_id", 1], ["application_id", 1], ["token", "e1486c782f4ae4b0d5540e1b65170fbd5a0ba9f032811dc2265d8a25b587cb11"], ["expires_in", 600], ["redirect_uri", "http://localhost:3000/auth/bookingsync/callback"], ["created_at", "2019-03-19 04:30:39.298483"], ["scopes", ""]] +  (8.2ms) COMMIT +Redirected to http://localhost:3000/auth/bookingsync/callback?code=e1486c782f4ae4b0d5540e1b65170fbd5a0ba9f032811dc2265d8a25b587cb11&state=771d407745e72342d33e4fd7c4ec7022af2229fef4ea85f2 +Completed 302 Found in 68ms (ActiveRecord: 18.7ms) + + +Started GET "/auth/bookingsync/callback?code=[FILTERED]&state=771d407745e72342d33e4fd7c4ec7022af2229fef4ea85f2" for ::1 at 2019-03-19 12:30:39 +0800 +Started POST "/oauth/token" for ::1 at 2019-03-19 12:30:39 +0800 +Processing by Doorkeeper::TokensController#create as */* + Parameters: {"client_id"=>"app_id", "client_secret"=>"[FILTERED]", "code"=>"[FILTERED]", "grant_type"=>"authorization_code", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback"} + Doorkeeper::AccessGrant Load (1.2ms) SELECT "oauth_access_grants".* FROM "oauth_access_grants" WHERE "oauth_access_grants"."token" = $1 LIMIT $2 [["token", "e1486c782f4ae4b0d5540e1b65170fbd5a0ba9f032811dc2265d8a25b587cb11"], ["LIMIT", 1]] + Doorkeeper::Application Load (1.2ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] +  (1.0ms) BEGIN + Doorkeeper::AccessGrant Load (1.2ms) SELECT "oauth_access_grants".* FROM "oauth_access_grants" WHERE "oauth_access_grants"."id" = $1 LIMIT $2 FOR UPDATE [["id", 4], ["LIMIT", 1]] + Doorkeeper::AccessGrant Update (1.2ms) UPDATE "oauth_access_grants" SET "revoked_at" = $1 WHERE "oauth_access_grants"."id" = $2 [["revoked_at", "2019-03-19 04:30:39.374372"], ["id", 4]] + Doorkeeper::Application Load (1.3ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + CACHE Doorkeeper::Application Load (0.0ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + Doorkeeper::AccessToken Exists (1.5ms) SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2 [["token", "590cbaa2a3441fad9a43bc52b2ecd2f58e2878d735542f93360726e0779cd1bd"], ["LIMIT", 1]] + Doorkeeper::AccessToken Create (1.6ms) INSERT INTO "oauth_access_tokens" ("resource_owner_id", "application_id", "token", "expires_in", "created_at", "scopes") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["resource_owner_id", 1], ["application_id", 1], ["token", "590cbaa2a3441fad9a43bc52b2ecd2f58e2878d735542f93360726e0779cd1bd"], ["expires_in", 7200], ["created_at", "2019-03-19 04:30:39.379172"], ["scopes", ""]] +  (7.6ms) COMMIT +Completed 200 OK in 60ms + + +Started GET "/api/v3/accounts" for ::1 at 2019-03-19 12:30:39 +0800 + +ActionController::RoutingError (No route matches [GET] "/api/v3/accounts"): + +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' + +OAuth2::Error (<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="utf-8" /> + <title>Action Controller: Exception caught</title> + <style> + body { + background-color: #FAFAFA; + color: #333; + margin: 0px; + } + + body, p, ol, ul, td { + font-family: helvetica, verdana, arial, sans-serif; + font-size: 13px; + line-height: 18px; + } + + pre { + font-size: 11px; + white-space: pre-wrap; + } + + pre.box { + border: 1px solid #EEE; + padding: 10px; + margin: 0px; + width: 958px; + } + + header { + color: #F0F0F0; + background: #C52F24; + padding: 0.5em 1.5em; + } + + h1 { + margin: 0.2em 0; + line-height: 1.1em; + font-size: 2em; + } + + h2 { + color: #C52F24; + line-height: 25px; + } + + .details { + border: 1px solid #D0D0D0; + border-radius: 4px; + margin: 1em 0px; + display: block; + width: 978px; + } + + .summary { + padding: 8px 15px; + border-bottom: 1px solid #D0D0D0; + display: block; + } + + .details pre { + margin: 5px; + border: none; + } + + #container { + box-sizing: border-box; + width: 100%; + padding: 0 1.5em; + } + + .source * { + margin: 0px; + padding: 0px; + } + + .source { + border: 1px solid #D9D9D9; + background: #ECECEC; + width: 978px; + } + + .source pre { + padding: 10px 0px; + border: none; + } + + .source .data { + font-size: 80%; + overflow: auto; + background-color: #FFF; + } + + .info { + padding: 0.5em; + } + + .source .data .line_numbers { + background-color: #ECECEC; + color: #AAA; + padding: 1em .5em; + border-right: 1px solid #DDD; + text-align: right; + } + + .line { + padding-left: 10px; + white-space: pre; + } + + .line:hover { + background-color: #F6F6F6; + } + + .line.active { + background-color: #FFCCCC; + } + + .hidden { + display: none; + } + + a { color: #980905; } + a:visited { color: #666; } + a.trace-frames { color: #666; } + a:hover { color: #C52F24; } + a.trace-frames.selected { color: #C52F24 } + + #route_table { + margin: 0; + border-collapse: collapse; + } + + #route_table thead tr { + border-bottom: 2px solid #ddd; + } + + #route_table thead tr.bottom { + border-bottom: none; + } + + #route_table thead tr.bottom th { + padding: 10px 0; + line-height: 15px; + } + + #route_table thead tr.bottom th input#search { + -webkit-appearance: textfield; + } + + #route_table tbody tr { + border-bottom: 1px solid #ddd; + } + + #route_table tbody tr:nth-child(odd) { + background: #f2f2f2; + } + + #route_table tbody.exact_matches, + #route_table tbody.fuzzy_matches { + background-color: LightGoldenRodYellow; + border-bottom: solid 2px SlateGrey; + } + + #route_table tbody.exact_matches tr, + #route_table tbody.fuzzy_matches tr { + background: none; + border-bottom: none; + } + + #route_table td { + padding: 4px 30px; + } + + #path_search { + width: 80%; + font-size: inherit; + } + + </style> + + <script> + var toggle = function(id) { + var s = document.getElementById(id).style; + s.display = s.display == 'none' ? 'block' : 'none'; + return false; + } + var show = function(id) { + document.getElementById(id).style.display = 'block'; + } + var hide = function(id) { + document.getElementById(id).style.display = 'none'; + } + var toggleTrace = function() { + return toggle('blame_trace'); + } + var toggleSessionDump = function() { + return toggle('session_dump'); + } + var toggleEnvDump = function() { + return toggle('env_dump'); + } + </script> +</head> +<body> + +<header> + <h1>Routing Error</h1> +</header> +<div id="container"> + <h2>No route matches [GET] &quot;/api/v3/accounts&quot;</h2> + + +<p><code>Rails.root: /Users/marc/Projects/bookingsync-engine/spec/dummy</code></p> + +<div id="traces"> + <a href="#" onclick="hide(&#39;Framework-Trace&#39;);hide(&#39;Full-Trace&#39;);show(&#39;Application-Trace&#39;);; return false;">Application Trace</a> | + <a href="#" onclick="hide(&#39;Application-Trace&#39;);hide(&#39;Full-Trace&#39;);show(&#39;Framework-Trace&#39;);; return false;">Framework Trace</a> | + <a href="#" onclick="hide(&#39;Application-Trace&#39;);hide(&#39;Framework-Trace&#39;);show(&#39;Full-Trace&#39;);; return false;">Full Trace</a> + + <div id="Application-Trace" style="display: block;"> + <pre><code></code></pre> + </div> + <div id="Framework-Trace" style="display: none;"> + <pre><code><a class="trace-frames" data-frame-id="0" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call&#39;</a><br><a class="trace-frames" data-frame-id="1" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call&#39;</a><br><a class="trace-frames" data-frame-id="2" href="#">railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app&#39;</a><br><a class="trace-frames" data-frame-id="3" href="#">railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call&#39;</a><br><a class="trace-frames" data-frame-id="4" href="#">activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged&#39;</a><br><a class="trace-frames" data-frame-id="5" href="#">activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged&#39;</a><br><a class="trace-frames" data-frame-id="6" href="#">activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged&#39;</a><br><a class="trace-frames" data-frame-id="7" href="#">railties (5.2.2) lib/rails/rack/logger.rb:26:in `call&#39;</a><br><a class="trace-frames" data-frame-id="8" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call&#39;</a><br><a class="trace-frames" data-frame-id="9" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call&#39;</a><br><a class="trace-frames" data-frame-id="10" href="#">rack (2.0.6) lib/rack/method_override.rb:22:in `call&#39;</a><br><a class="trace-frames" data-frame-id="11" href="#">rack (2.0.6) lib/rack/runtime.rb:22:in `call&#39;</a><br><a class="trace-frames" data-frame-id="12" href="#">activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call&#39;</a><br><a class="trace-frames" data-frame-id="13" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call&#39;</a><br><a class="trace-frames" data-frame-id="14" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call&#39;</a><br><a class="trace-frames" data-frame-id="15" href="#">rack (2.0.6) lib/rack/sendfile.rb:111:in `call&#39;</a><br><a class="trace-frames" data-frame-id="16" href="#">railties (5.2.2) lib/rails/engine.rb:524:in `call&#39;</a><br><a class="trace-frames" data-frame-id="17" href="#">puma (3.12.0) lib/puma/configuration.rb:225:in `call&#39;</a><br><a class="trace-frames" data-frame-id="18" href="#">puma (3.12.0) lib/puma/server.rb:658:in `handle_request&#39;</a><br><a class="trace-frames" data-frame-id="19" href="#">puma (3.12.0) lib/puma/server.rb:472:in `process_client&#39;</a><br><a class="trace-frames" data-frame-id="20" href="#">puma (3.12.0) lib/puma/server.rb:332:in `block in run&#39;</a><br><a class="trace-frames" data-frame-id="21" href="#">puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread&#39;</a><br></code></pre> + </div> + <div id="Full-Trace" style="display: none;"> + <pre><code><a class="trace-frames" data-frame-id="0" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call&#39;</a><br><a class="trace-frames" data-frame-id="1" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call&#39;</a><br><a class="trace-frames" data-frame-id="2" href="#">railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app&#39;</a><br><a class="trace-frames" data-frame-id="3" href="#">railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call&#39;</a><br><a class="trace-frames" data-frame-id="4" href="#">activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged&#39;</a><br><a class="trace-frames" data-frame-id="5" href="#">activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged&#39;</a><br><a class="trace-frames" data-frame-id="6" href="#">activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged&#39;</a><br><a class="trace-frames" data-frame-id="7" href="#">railties (5.2.2) lib/rails/rack/logger.rb:26:in `call&#39;</a><br><a class="trace-frames" data-frame-id="8" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call&#39;</a><br><a class="trace-frames" data-frame-id="9" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call&#39;</a><br><a class="trace-frames" data-frame-id="10" href="#">rack (2.0.6) lib/rack/method_override.rb:22:in `call&#39;</a><br><a class="trace-frames" data-frame-id="11" href="#">rack (2.0.6) lib/rack/runtime.rb:22:in `call&#39;</a><br><a class="trace-frames" data-frame-id="12" href="#">activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call&#39;</a><br><a class="trace-frames" data-frame-id="13" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call&#39;</a><br><a class="trace-frames" data-frame-id="14" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call&#39;</a><br><a class="trace-frames" data-frame-id="15" href="#">rack (2.0.6) lib/rack/sendfile.rb:111:in `call&#39;</a><br><a class="trace-frames" data-frame-id="16" href="#">railties (5.2.2) lib/rails/engine.rb:524:in `call&#39;</a><br><a class="trace-frames" data-frame-id="17" href="#">puma (3.12.0) lib/puma/configuration.rb:225:in `call&#39;</a><br><a class="trace-frames" data-frame-id="18" href="#">puma (3.12.0) lib/puma/server.rb:658:in `handle_request&#39;</a><br><a class="trace-frames" data-frame-id="19" href="#">puma (3.12.0) lib/puma/server.rb:472:in `process_client&#39;</a><br><a class="trace-frames" data-frame-id="20" href="#">puma (3.12.0) lib/puma/server.rb:332:in `block in run&#39;</a><br><a class="trace-frames" data-frame-id="21" href="#">puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread&#39;</a><br></code></pre> + </div> + + <script type="text/javascript"> + var traceFrames = document.getElementsByClassName('trace-frames'); + var selectedFrame, currentSource = document.getElementById('frame-source-0'); + + // Add click listeners for all stack frames + for (var i = 0; i < traceFrames.length; i++) { + traceFrames[i].addEventListener('click', function(e) { + e.preventDefault(); + var target = e.target; + var frame_id = target.dataset.frameId; + + if (selectedFrame) { + selectedFrame.className = selectedFrame.className.replace("selected", ""); + } + + target.className += " selected"; + selectedFrame = target; + + // Change the extracted source code + changeSourceExtract(frame_id); + }); + + function changeSourceExtract(frame_id) { + var el = document.getElementById('frame-source-' + frame_id); + if (currentSource && el) { + currentSource.className += " hidden"; + el.className = el.className.replace(" hidden", ""); + currentSource = el; + } + } + } + </script> +</div> + + + <h2> + Routes + </h2> + + <p> + Routes match in priority from top to bottom + </p> + + +<table id='route_table' class='route_table'> + <thead> + <tr> + <th>Helper</th> + <th>HTTP Verb</th> + <th>Path</th> + <th>Controller#Action</th> + </tr> + <tr class='bottom'> + <th> + <a data-route-helper="_path" title="Returns a relative path (without the http or domain)" href="#">Path</a> / + <a data-route-helper="_url" title="Returns an absolute URL (with the http and domain)" href="#">Url</a> + </th> + <th> + </th> + <th> + <input id="search" placeholder="Path Match" type="search" name="path[]" /> + </th> + <th> + </th> + </tr> + </thead> + <tbody class='exact_matches' id='exact_matches'> + </tbody> + <tbody class='fuzzy_matches' id='fuzzy_matches'> + </tbody> + <tbody> + <tr class='route_row' data-helper='path'> + <td data-route-name='native_oauth_authorization'> + native_oauth_authorization<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/authorize/native(.:format)'> + /oauth/authorize/native(.:format) + </td> + <td> + <p>doorkeeper/authorizations#show</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_authorization'> + oauth_authorization<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/authorize(.:format)'> + /oauth/authorize(.:format) + </td> + <td> + <p>doorkeeper/authorizations#new</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name=''> + </td> + <td> + DELETE + </td> + <td data-route-path='/oauth/authorize(.:format)'> + /oauth/authorize(.:format) + </td> + <td> + <p>doorkeeper/authorizations#destroy</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name=''> + </td> + <td> + POST + </td> + <td data-route-path='/oauth/authorize(.:format)'> + /oauth/authorize(.:format) + </td> + <td> + <p>doorkeeper/authorizations#create</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_token'> + oauth_token<span class='helper'>_path</span> + </td> + <td> + POST + </td> + <td data-route-path='/oauth/token(.:format)'> + /oauth/token(.:format) + </td> + <td> + <p>doorkeeper/tokens#create</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_revoke'> + oauth_revoke<span class='helper'>_path</span> + </td> + <td> + POST + </td> + <td data-route-path='/oauth/revoke(.:format)'> + /oauth/revoke(.:format) + </td> + <td> + <p>doorkeeper/tokens#revoke</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_introspect'> + oauth_introspect<span class='helper'>_path</span> + </td> + <td> + POST + </td> + <td data-route-path='/oauth/introspect(.:format)'> + /oauth/introspect(.:format) + </td> + <td> + <p>doorkeeper/tokens#introspect</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_applications'> + oauth_applications<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/applications(.:format)'> + /oauth/applications(.:format) + </td> + <td> + <p>doorkeeper/applications#index</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name=''> + </td> + <td> + POST + </td> + <td data-route-path='/oauth/applications(.:format)'> + /oauth/applications(.:format) + </td> + <td> + <p>doorkeeper/applications#create</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='new_oauth_application'> + new_oauth_application<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/applications/new(.:format)'> + /oauth/applications/new(.:format) + </td> + <td> + <p>doorkeeper/applications#new</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='edit_oauth_application'> + edit_oauth_application<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/applications/:id/edit(.:format)'> + /oauth/applications/:id/edit(.:format) + </td> + <td> + <p>doorkeeper/applications#edit</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_application'> + oauth_application<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/applications/:id(.:format)'> + /oauth/applications/:id(.:format) + </td> + <td> + <p>doorkeeper/applications#show</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name=''> + </td> + <td> + PATCH + </td> + <td data-route-path='/oauth/applications/:id(.:format)'> + /oauth/applications/:id(.:format) + </td> + <td> + <p>doorkeeper/applications#update</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name=''> + </td> + <td> + PUT + </td> + <td data-route-path='/oauth/applications/:id(.:format)'> + /oauth/applications/:id(.:format) + </td> + <td> + <p>doorkeeper/applications#update</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name=''> + </td> + <td> + DELETE + </td> + <td data-route-path='/oauth/applications/:id(.:format)'> + /oauth/applications/:id(.:format) + </td> + <td> + <p>doorkeeper/applications#destroy</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_authorized_applications'> + oauth_authorized_applications<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/authorized_applications(.:format)'> + /oauth/authorized_applications(.:format) + </td> + <td> + <p>doorkeeper/authorized_applications#index</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_authorized_application'> + oauth_authorized_application<span class='helper'>_path</span> + </td> + <td> + DELETE + </td> + <td data-route-path='/oauth/authorized_applications/:id(.:format)'> + /oauth/authorized_applications/:id(.:format) + </td> + <td> + <p>doorkeeper/authorized_applications#destroy</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_token_info'> + oauth_token_info<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/token/info(.:format)'> + /oauth/token/info(.:format) + </td> + <td> + <p>doorkeeper/token_info#show</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='booking_sync_engine'> + booking_sync_engine<span class='helper'>_path</span> + </td> + <td> + + </td> + <td data-route-path='/'> + / + </td> + <td> + <p>BookingSync::Engine</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='authenticated'> + authenticated<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/authenticated(.:format)'> + /authenticated(.:format) + </td> + <td> + <p>authenticated#index</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='root'> + root<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/'> + / + </td> + <td> + <p>home#index</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='rails_service_blob'> + rails_service_blob<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/rails/active_storage/blobs/:signed_id/*filename(.:format)'> + /rails/active_storage/blobs/:signed_id/*filename(.:format) + </td> + <td> + <p>active_storage/blobs#show</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='rails_blob_representation'> + rails_blob_representation<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format)'> + /rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format) + </td> + <td> + <p>active_storage/representations#show</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='rails_disk_service'> + rails_disk_service<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/rails/active_storage/disk/:encoded_key/*filename(.:format)'> + /rails/active_storage/disk/:encoded_key/*filename(.:format) + </td> + <td> + <p>active_storage/disk#show</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='update_rails_disk_service'> + update_rails_disk_service<span class='helper'>_path</span> + </td> + <td> + PUT + </td> + <td data-route-path='/rails/active_storage/disk/:encoded_token(.:format)'> + /rails/active_storage/disk/:encoded_token(.:format) + </td> + <td> + <p>active_storage/disk#update</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='rails_direct_uploads'> + rails_direct_uploads<span class='helper'>_path</span> + </td> + <td> + POST + </td> + <td data-route-path='/rails/active_storage/direct_uploads(.:format)'> + /rails/active_storage/direct_uploads(.:format) + </td> + <td> + <p>active_storage/direct_uploads#create</p> + </td> +</tr> + +<tr><th colspan="4">Routes for BookingSync::Engine</th></tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='auth_bookingsync_callback'> + auth_bookingsync_callback<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/auth/bookingsync/callback(.:format)'> + /auth/bookingsync/callback(.:format) + </td> + <td> + <p>sessions#create</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='auth_failure'> + auth_failure<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/auth/failure(.:format)'> + /auth/failure(.:format) + </td> + <td> + <p>sessions#failure</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='signout'> + signout<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/signout(.:format)'> + /signout(.:format) + </td> + <td> + <p>sessions#destroy</p> + </td> +</tr> + + </tbody> +</table> + +<script type='text/javascript'> + // support forEarch iterator on NodeList + NodeList.prototype.forEach = Array.prototype.forEach; + + // Enables path search functionality + function setupMatchPaths() { + // Check if there are any matched results in a section + function checkNoMatch(section, noMatchText) { + if (section.children.length <= 1) { + section.innerHTML += noMatchText; + } + } + + // get JSON from URL and invoke callback with result + function getJSON(url, success) { + var xhr = new XMLHttpRequest(); + xhr.open('GET', url); + xhr.onload = function() { + if (this.status == 200) + success(JSON.parse(this.response)); + }; + xhr.send(); + } + + function delayedKeyup(input, callback) { + var timeout; + input.onkeyup = function(){ + if (timeout) clearTimeout(timeout); + timeout = setTimeout(callback, 300); + } + } + + // remove params or fragments + function sanitizePath(path) { + return path.replace(/[#?].*/, ''); + } + + var pathElements = document.querySelectorAll('#route_table [data-route-path]'), + searchElem = document.querySelector('#search'), + exactSection = document.querySelector('#exact_matches'), + fuzzySection = document.querySelector('#fuzzy_matches'); + + // Remove matches when no search value is present + searchElem.onblur = function(e) { + if (searchElem.value === "") { + exactSection.innerHTML = ""; + fuzzySection.innerHTML = ""; + } + } + + // On key press perform a search for matching paths + delayedKeyup(searchElem, function() { + var path = sanitizePath(searchElem.value), + defaultExactMatch = '<tr><th colspan="4">Paths Matching (' + path +'):</th></tr>', + defaultFuzzyMatch = '<tr><th colspan="4">Paths Containing (' + path +'):</th></tr>', + noExactMatch = '<tr><th colspan="4">No Exact Matches Found</th></tr>', + noFuzzyMatch = '<tr><th colspan="4">No Fuzzy Matches Found</th></tr>'; + + if (!path) + return searchElem.onblur(); + + getJSON('/rails/info/routes?path=' + path, function(matches){ + // Clear out results section + exactSection.innerHTML = defaultExactMatch; + fuzzySection.innerHTML = defaultFuzzyMatch; + + // Display exact matches and fuzzy matches + pathElements.forEach(function(elem) { + var elemPath = elem.getAttribute('data-route-path'); + + if (matches['exact'].indexOf(elemPath) != -1) + exactSection.appendChild(elem.parentNode.cloneNode(true)); + + if (matches['fuzzy'].indexOf(elemPath) != -1) + fuzzySection.appendChild(elem.parentNode.cloneNode(true)); + }) + + // Display 'No Matches' message when no matches are found + checkNoMatch(exactSection, noExactMatch); + checkNoMatch(fuzzySection, noFuzzyMatch); + }) + }) + } + + // Enables functionality to toggle between `_path` and `_url` helper suffixes + function setupRouteToggleHelperLinks() { + + // Sets content for each element + function setValOn(elems, val) { + elems.forEach(function(elem) { + elem.innerHTML = val; + }); + } + + // Sets onClick event for each element + function onClick(elems, func) { + elems.forEach(function(elem) { + elem.onclick = func; + }); + } + + var toggleLinks = document.querySelectorAll('#route_table [data-route-helper]'); + + onClick(toggleLinks, function(){ + var helperTxt = this.getAttribute("data-route-helper"), + helperElems = document.querySelectorAll('[data-route-name] span.helper'); + + setValOn(helperElems, helperTxt); + }); + } + + setupMatchPaths(); + setupRouteToggleHelperLinks(); +</script> + + + +<h2 style="margin-top: 30px">Request</h2> +<p><b>Parameters</b>:</p> <pre>None</pre> + +<div class="details"> + <div class="summary"><a href="#" onclick="return toggleSessionDump()">Toggle session dump</a></div> + <div id="session_dump" style="display:none"><pre></pre></div> +</div> + +<div class="details"> + <div class="summary"><a href="#" onclick="return toggleEnvDump()">Toggle env dump</a></div> + <div id="env_dump" style="display:none"><pre>GATEWAY_INTERFACE: &quot;CGI/1.2&quot; +HTTP_ACCEPT: &quot;*/*&quot; +HTTP_ACCEPT_ENCODING: &quot;gzip;q=1.0,deflate;q=0.6,identity;q=0.3&quot; +HTTP_VERSION: &quot;HTTP/1.1&quot; +ORIGINAL_SCRIPT_NAME: &quot;&quot; +REMOTE_ADDR: &quot;::1&quot; +SERVER_NAME: &quot;localhost&quot; +SERVER_PROTOCOL: &quot;HTTP/1.1&quot;</pre></div> +</div> + +<h2 style="margin-top: 30px">Response</h2> +<p><b>Headers</b>:</p> <pre>None</pre> + +</div> + + +</body> +</html> +): + +oauth2 (1.3.1) lib/oauth2/client.rb:119:in `request' +oauth2 (1.3.1) lib/oauth2/access_token.rb:107:in `request' +oauth2 (1.3.1) lib/oauth2/access_token.rb:114:in `get' +omniauth-bookingsync (0.5.0) lib/omniauth/strategies/bookingsync.rb:19:in `raw_info' +omniauth-bookingsync (0.5.0) lib/omniauth/strategies/bookingsync.rb:10:in `block in <class:BookingSync>' +omniauth (1.9.0) lib/omniauth/strategy.rb:109:in `instance_eval' +omniauth (1.9.0) lib/omniauth/strategy.rb:109:in `block in compile_stack' +omniauth (1.9.0) lib/omniauth/strategy.rb:108:in `each' +omniauth (1.9.0) lib/omniauth/strategy.rb:108:in `inject' +omniauth (1.9.0) lib/omniauth/strategy.rb:108:in `compile_stack' +omniauth (1.9.0) lib/omniauth/strategy.rb:102:in `uid_stack' +omniauth (1.9.0) lib/omniauth/strategy.rb:332:in `uid' +omniauth (1.9.0) lib/omniauth/strategy.rb:348:in `auth_hash' +omniauth (1.9.0) lib/omniauth/strategy.rb:372:in `callback_phase' +omniauth-oauth2 (1.4.0) lib/omniauth/strategies/oauth2.rb:75:in `callback_phase' +omniauth (1.9.0) lib/omniauth/strategy.rb:238:in `callback_call' +omniauth (1.9.0) lib/omniauth/strategy.rb:189:in `call!' +omniauth (1.9.0) lib/omniauth/strategy.rb:169:in `call' +omniauth (1.9.0) lib/omniauth/builder.rb:64:in `call' +rack (2.0.6) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.6) lib/rack/etag.rb:25:in `call' +rack (2.0.6) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.6) lib/rack/head.rb:12:in `call' +actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.6) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.6) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.2) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +  (3.5ms) SELECT COUNT(*) FROM "oauth_access_grants" + Doorkeeper::AccessGrant Load (1.7ms) SELECT "oauth_access_grants".* FROM "oauth_access_grants" +  (1.9ms) BEGIN + Doorkeeper::AccessGrant Destroy (1.6ms) DELETE FROM "oauth_access_grants" WHERE "oauth_access_grants"."id" = $1 [["id", 1]] +  (8.3ms) COMMIT +  (1.5ms) BEGIN + Doorkeeper::AccessGrant Destroy (2.3ms) DELETE FROM "oauth_access_grants" WHERE "oauth_access_grants"."id" = $1 [["id", 2]] +  (3.2ms) COMMIT +  (1.6ms) BEGIN + Doorkeeper::AccessGrant Destroy (1.6ms) DELETE FROM "oauth_access_grants" WHERE "oauth_access_grants"."id" = $1 [["id", 3]] +  (1.8ms) COMMIT +  (0.7ms) BEGIN + Doorkeeper::AccessGrant Destroy (1.1ms) DELETE FROM "oauth_access_grants" WHERE "oauth_access_grants"."id" = $1 [["id", 4]] +  (1.6ms) COMMIT +Started GET "/authenticated" for ::1 at 2019-03-19 12:32:31 +0800 +  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 8ms (Views: 4.2ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-19 12:32:31 +0800 +Started GET "/oauth/authorize?client_id=app_id&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fbookingsync%2Fcallback&response_type=code&state=c8091fab1b9b62a980f026db062e29924393ffde9e731588" for ::1 at 2019-03-19 12:32:32 +0800 +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by Doorkeeper::AuthorizationsController#new as HTML + Parameters: {"client_id"=>"app_id", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback", "response_type"=>"code", "state"=>"c8091fab1b9b62a980f026db062e29924393ffde9e731588"} + RemoteAccount Load (1.4ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."name" = $1 LIMIT $2 [["name", "Toto"], ["LIMIT", 1]] + Doorkeeper::Application Load (1.4ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."name" = $1 LIMIT $2 [["name", "Toto"], ["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."name" = $1 LIMIT $2 [["name", "Toto"], ["LIMIT", 1]] + Doorkeeper::AccessToken Load (2.0ms) SELECT "oauth_access_tokens".* FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."application_id" = $1 AND "oauth_access_tokens"."resource_owner_id" = $2 AND "oauth_access_tokens"."revoked_at" IS NULL ORDER BY "oauth_access_tokens"."created_at" DESC [["application_id", 1], ["resource_owner_id", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."name" = $1 LIMIT $2 [["name", "Toto"], ["LIMIT", 1]] +  (1.0ms) BEGIN + Doorkeeper::AccessGrant Exists (1.1ms) SELECT 1 AS one FROM "oauth_access_grants" WHERE "oauth_access_grants"."token" = $1 LIMIT $2 [["token", "bc34fda873233cfdcef155b76ca8e43665e83b7b673998d47a344afcb2e74c7e"], ["LIMIT", 1]] + Doorkeeper::AccessGrant Create (1.4ms) INSERT INTO "oauth_access_grants" ("resource_owner_id", "application_id", "token", "expires_in", "redirect_uri", "created_at", "scopes") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["resource_owner_id", 1], ["application_id", 1], ["token", "bc34fda873233cfdcef155b76ca8e43665e83b7b673998d47a344afcb2e74c7e"], ["expires_in", 600], ["redirect_uri", "http://localhost:3000/auth/bookingsync/callback"], ["created_at", "2019-03-19 04:32:32.285433"], ["scopes", ""]] +  (7.8ms) COMMIT +Redirected to http://localhost:3000/auth/bookingsync/callback?code=bc34fda873233cfdcef155b76ca8e43665e83b7b673998d47a344afcb2e74c7e&state=c8091fab1b9b62a980f026db062e29924393ffde9e731588 +Completed 302 Found in 82ms (ActiveRecord: 38.7ms) + + +Started GET "/auth/bookingsync/callback?code=[FILTERED]&state=c8091fab1b9b62a980f026db062e29924393ffde9e731588" for ::1 at 2019-03-19 12:32:32 +0800 +Started POST "/oauth/token" for ::1 at 2019-03-19 12:32:32 +0800 +Processing by Doorkeeper::TokensController#create as */* + Parameters: {"client_id"=>"app_id", "client_secret"=>"[FILTERED]", "code"=>"[FILTERED]", "grant_type"=>"authorization_code", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback"} + Doorkeeper::AccessGrant Load (2.0ms) SELECT "oauth_access_grants".* FROM "oauth_access_grants" WHERE "oauth_access_grants"."token" = $1 LIMIT $2 [["token", "bc34fda873233cfdcef155b76ca8e43665e83b7b673998d47a344afcb2e74c7e"], ["LIMIT", 1]] + Doorkeeper::Application Load (1.4ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] +  (1.2ms) BEGIN + Doorkeeper::AccessGrant Load (1.7ms) SELECT "oauth_access_grants".* FROM "oauth_access_grants" WHERE "oauth_access_grants"."id" = $1 LIMIT $2 FOR UPDATE [["id", 5], ["LIMIT", 1]] + Doorkeeper::AccessGrant Update (1.7ms) UPDATE "oauth_access_grants" SET "revoked_at" = $1 WHERE "oauth_access_grants"."id" = $2 [["revoked_at", "2019-03-19 04:32:32.329153"], ["id", 5]] + Doorkeeper::Application Load (1.0ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + CACHE Doorkeeper::Application Load (0.0ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + Doorkeeper::AccessToken Exists (1.1ms) SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2 [["token", "e32b68eae11b94619fbecabbc93db15e028367fa744855629f455a0dec8b355e"], ["LIMIT", 1]] + Doorkeeper::AccessToken Create (1.3ms) INSERT INTO "oauth_access_tokens" ("resource_owner_id", "application_id", "token", "expires_in", "created_at", "scopes") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["resource_owner_id", 1], ["application_id", 1], ["token", "e32b68eae11b94619fbecabbc93db15e028367fa744855629f455a0dec8b355e"], ["expires_in", 7200], ["created_at", "2019-03-19 04:32:32.342265"], ["scopes", ""]] +  (3.5ms) COMMIT +Completed 200 OK in 34ms + + +Started GET "/api/v3/accounts" for ::1 at 2019-03-19 12:32:32 +0800 + +ActionController::RoutingError (No route matches [GET] "/api/v3/accounts"): + +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' + +OAuth2::Error (<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="utf-8" /> + <title>Action Controller: Exception caught</title> + <style> + body { + background-color: #FAFAFA; + color: #333; + margin: 0px; + } + + body, p, ol, ul, td { + font-family: helvetica, verdana, arial, sans-serif; + font-size: 13px; + line-height: 18px; + } + + pre { + font-size: 11px; + white-space: pre-wrap; + } + + pre.box { + border: 1px solid #EEE; + padding: 10px; + margin: 0px; + width: 958px; + } + + header { + color: #F0F0F0; + background: #C52F24; + padding: 0.5em 1.5em; + } + + h1 { + margin: 0.2em 0; + line-height: 1.1em; + font-size: 2em; + } + + h2 { + color: #C52F24; + line-height: 25px; + } + + .details { + border: 1px solid #D0D0D0; + border-radius: 4px; + margin: 1em 0px; + display: block; + width: 978px; + } + + .summary { + padding: 8px 15px; + border-bottom: 1px solid #D0D0D0; + display: block; + } + + .details pre { + margin: 5px; + border: none; + } + + #container { + box-sizing: border-box; + width: 100%; + padding: 0 1.5em; + } + + .source * { + margin: 0px; + padding: 0px; + } + + .source { + border: 1px solid #D9D9D9; + background: #ECECEC; + width: 978px; + } + + .source pre { + padding: 10px 0px; + border: none; + } + + .source .data { + font-size: 80%; + overflow: auto; + background-color: #FFF; + } + + .info { + padding: 0.5em; + } + + .source .data .line_numbers { + background-color: #ECECEC; + color: #AAA; + padding: 1em .5em; + border-right: 1px solid #DDD; + text-align: right; + } + + .line { + padding-left: 10px; + white-space: pre; + } + + .line:hover { + background-color: #F6F6F6; + } + + .line.active { + background-color: #FFCCCC; + } + + .hidden { + display: none; + } + + a { color: #980905; } + a:visited { color: #666; } + a.trace-frames { color: #666; } + a:hover { color: #C52F24; } + a.trace-frames.selected { color: #C52F24 } + + #route_table { + margin: 0; + border-collapse: collapse; + } + + #route_table thead tr { + border-bottom: 2px solid #ddd; + } + + #route_table thead tr.bottom { + border-bottom: none; + } + + #route_table thead tr.bottom th { + padding: 10px 0; + line-height: 15px; + } + + #route_table thead tr.bottom th input#search { + -webkit-appearance: textfield; + } + + #route_table tbody tr { + border-bottom: 1px solid #ddd; + } + + #route_table tbody tr:nth-child(odd) { + background: #f2f2f2; + } + + #route_table tbody.exact_matches, + #route_table tbody.fuzzy_matches { + background-color: LightGoldenRodYellow; + border-bottom: solid 2px SlateGrey; + } + + #route_table tbody.exact_matches tr, + #route_table tbody.fuzzy_matches tr { + background: none; + border-bottom: none; + } + + #route_table td { + padding: 4px 30px; + } + + #path_search { + width: 80%; + font-size: inherit; + } + + </style> + + <script> + var toggle = function(id) { + var s = document.getElementById(id).style; + s.display = s.display == 'none' ? 'block' : 'none'; + return false; + } + var show = function(id) { + document.getElementById(id).style.display = 'block'; + } + var hide = function(id) { + document.getElementById(id).style.display = 'none'; + } + var toggleTrace = function() { + return toggle('blame_trace'); + } + var toggleSessionDump = function() { + return toggle('session_dump'); + } + var toggleEnvDump = function() { + return toggle('env_dump'); + } + </script> +</head> +<body> + +<header> + <h1>Routing Error</h1> +</header> +<div id="container"> + <h2>No route matches [GET] &quot;/api/v3/accounts&quot;</h2> + + +<p><code>Rails.root: /Users/marc/Projects/bookingsync-engine/spec/dummy</code></p> + +<div id="traces"> + <a href="#" onclick="hide(&#39;Framework-Trace&#39;);hide(&#39;Full-Trace&#39;);show(&#39;Application-Trace&#39;);; return false;">Application Trace</a> | + <a href="#" onclick="hide(&#39;Application-Trace&#39;);hide(&#39;Full-Trace&#39;);show(&#39;Framework-Trace&#39;);; return false;">Framework Trace</a> | + <a href="#" onclick="hide(&#39;Application-Trace&#39;);hide(&#39;Framework-Trace&#39;);show(&#39;Full-Trace&#39;);; return false;">Full Trace</a> + + <div id="Application-Trace" style="display: block;"> + <pre><code></code></pre> + </div> + <div id="Framework-Trace" style="display: none;"> + <pre><code><a class="trace-frames" data-frame-id="0" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call&#39;</a><br><a class="trace-frames" data-frame-id="1" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call&#39;</a><br><a class="trace-frames" data-frame-id="2" href="#">railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app&#39;</a><br><a class="trace-frames" data-frame-id="3" href="#">railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call&#39;</a><br><a class="trace-frames" data-frame-id="4" href="#">activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged&#39;</a><br><a class="trace-frames" data-frame-id="5" href="#">activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged&#39;</a><br><a class="trace-frames" data-frame-id="6" href="#">activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged&#39;</a><br><a class="trace-frames" data-frame-id="7" href="#">railties (5.2.2) lib/rails/rack/logger.rb:26:in `call&#39;</a><br><a class="trace-frames" data-frame-id="8" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call&#39;</a><br><a class="trace-frames" data-frame-id="9" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call&#39;</a><br><a class="trace-frames" data-frame-id="10" href="#">rack (2.0.6) lib/rack/method_override.rb:22:in `call&#39;</a><br><a class="trace-frames" data-frame-id="11" href="#">rack (2.0.6) lib/rack/runtime.rb:22:in `call&#39;</a><br><a class="trace-frames" data-frame-id="12" href="#">activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call&#39;</a><br><a class="trace-frames" data-frame-id="13" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call&#39;</a><br><a class="trace-frames" data-frame-id="14" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call&#39;</a><br><a class="trace-frames" data-frame-id="15" href="#">rack (2.0.6) lib/rack/sendfile.rb:111:in `call&#39;</a><br><a class="trace-frames" data-frame-id="16" href="#">railties (5.2.2) lib/rails/engine.rb:524:in `call&#39;</a><br><a class="trace-frames" data-frame-id="17" href="#">puma (3.12.0) lib/puma/configuration.rb:225:in `call&#39;</a><br><a class="trace-frames" data-frame-id="18" href="#">puma (3.12.0) lib/puma/server.rb:658:in `handle_request&#39;</a><br><a class="trace-frames" data-frame-id="19" href="#">puma (3.12.0) lib/puma/server.rb:472:in `process_client&#39;</a><br><a class="trace-frames" data-frame-id="20" href="#">puma (3.12.0) lib/puma/server.rb:332:in `block in run&#39;</a><br><a class="trace-frames" data-frame-id="21" href="#">puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread&#39;</a><br></code></pre> + </div> + <div id="Full-Trace" style="display: none;"> + <pre><code><a class="trace-frames" data-frame-id="0" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call&#39;</a><br><a class="trace-frames" data-frame-id="1" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call&#39;</a><br><a class="trace-frames" data-frame-id="2" href="#">railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app&#39;</a><br><a class="trace-frames" data-frame-id="3" href="#">railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call&#39;</a><br><a class="trace-frames" data-frame-id="4" href="#">activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged&#39;</a><br><a class="trace-frames" data-frame-id="5" href="#">activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged&#39;</a><br><a class="trace-frames" data-frame-id="6" href="#">activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged&#39;</a><br><a class="trace-frames" data-frame-id="7" href="#">railties (5.2.2) lib/rails/rack/logger.rb:26:in `call&#39;</a><br><a class="trace-frames" data-frame-id="8" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call&#39;</a><br><a class="trace-frames" data-frame-id="9" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call&#39;</a><br><a class="trace-frames" data-frame-id="10" href="#">rack (2.0.6) lib/rack/method_override.rb:22:in `call&#39;</a><br><a class="trace-frames" data-frame-id="11" href="#">rack (2.0.6) lib/rack/runtime.rb:22:in `call&#39;</a><br><a class="trace-frames" data-frame-id="12" href="#">activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call&#39;</a><br><a class="trace-frames" data-frame-id="13" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call&#39;</a><br><a class="trace-frames" data-frame-id="14" href="#">actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call&#39;</a><br><a class="trace-frames" data-frame-id="15" href="#">rack (2.0.6) lib/rack/sendfile.rb:111:in `call&#39;</a><br><a class="trace-frames" data-frame-id="16" href="#">railties (5.2.2) lib/rails/engine.rb:524:in `call&#39;</a><br><a class="trace-frames" data-frame-id="17" href="#">puma (3.12.0) lib/puma/configuration.rb:225:in `call&#39;</a><br><a class="trace-frames" data-frame-id="18" href="#">puma (3.12.0) lib/puma/server.rb:658:in `handle_request&#39;</a><br><a class="trace-frames" data-frame-id="19" href="#">puma (3.12.0) lib/puma/server.rb:472:in `process_client&#39;</a><br><a class="trace-frames" data-frame-id="20" href="#">puma (3.12.0) lib/puma/server.rb:332:in `block in run&#39;</a><br><a class="trace-frames" data-frame-id="21" href="#">puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread&#39;</a><br></code></pre> + </div> + + <script type="text/javascript"> + var traceFrames = document.getElementsByClassName('trace-frames'); + var selectedFrame, currentSource = document.getElementById('frame-source-0'); + + // Add click listeners for all stack frames + for (var i = 0; i < traceFrames.length; i++) { + traceFrames[i].addEventListener('click', function(e) { + e.preventDefault(); + var target = e.target; + var frame_id = target.dataset.frameId; + + if (selectedFrame) { + selectedFrame.className = selectedFrame.className.replace("selected", ""); + } + + target.className += " selected"; + selectedFrame = target; + + // Change the extracted source code + changeSourceExtract(frame_id); + }); + + function changeSourceExtract(frame_id) { + var el = document.getElementById('frame-source-' + frame_id); + if (currentSource && el) { + currentSource.className += " hidden"; + el.className = el.className.replace(" hidden", ""); + currentSource = el; + } + } + } + </script> +</div> + + + <h2> + Routes + </h2> + + <p> + Routes match in priority from top to bottom + </p> + + +<table id='route_table' class='route_table'> + <thead> + <tr> + <th>Helper</th> + <th>HTTP Verb</th> + <th>Path</th> + <th>Controller#Action</th> + </tr> + <tr class='bottom'> + <th> + <a data-route-helper="_path" title="Returns a relative path (without the http or domain)" href="#">Path</a> / + <a data-route-helper="_url" title="Returns an absolute URL (with the http and domain)" href="#">Url</a> + </th> + <th> + </th> + <th> + <input id="search" placeholder="Path Match" type="search" name="path[]" /> + </th> + <th> + </th> + </tr> + </thead> + <tbody class='exact_matches' id='exact_matches'> + </tbody> + <tbody class='fuzzy_matches' id='fuzzy_matches'> + </tbody> + <tbody> + <tr class='route_row' data-helper='path'> + <td data-route-name='native_oauth_authorization'> + native_oauth_authorization<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/authorize/native(.:format)'> + /oauth/authorize/native(.:format) + </td> + <td> + <p>doorkeeper/authorizations#show</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_authorization'> + oauth_authorization<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/authorize(.:format)'> + /oauth/authorize(.:format) + </td> + <td> + <p>doorkeeper/authorizations#new</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name=''> + </td> + <td> + DELETE + </td> + <td data-route-path='/oauth/authorize(.:format)'> + /oauth/authorize(.:format) + </td> + <td> + <p>doorkeeper/authorizations#destroy</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name=''> + </td> + <td> + POST + </td> + <td data-route-path='/oauth/authorize(.:format)'> + /oauth/authorize(.:format) + </td> + <td> + <p>doorkeeper/authorizations#create</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_token'> + oauth_token<span class='helper'>_path</span> + </td> + <td> + POST + </td> + <td data-route-path='/oauth/token(.:format)'> + /oauth/token(.:format) + </td> + <td> + <p>doorkeeper/tokens#create</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_revoke'> + oauth_revoke<span class='helper'>_path</span> + </td> + <td> + POST + </td> + <td data-route-path='/oauth/revoke(.:format)'> + /oauth/revoke(.:format) + </td> + <td> + <p>doorkeeper/tokens#revoke</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_introspect'> + oauth_introspect<span class='helper'>_path</span> + </td> + <td> + POST + </td> + <td data-route-path='/oauth/introspect(.:format)'> + /oauth/introspect(.:format) + </td> + <td> + <p>doorkeeper/tokens#introspect</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_applications'> + oauth_applications<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/applications(.:format)'> + /oauth/applications(.:format) + </td> + <td> + <p>doorkeeper/applications#index</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name=''> + </td> + <td> + POST + </td> + <td data-route-path='/oauth/applications(.:format)'> + /oauth/applications(.:format) + </td> + <td> + <p>doorkeeper/applications#create</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='new_oauth_application'> + new_oauth_application<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/applications/new(.:format)'> + /oauth/applications/new(.:format) + </td> + <td> + <p>doorkeeper/applications#new</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='edit_oauth_application'> + edit_oauth_application<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/applications/:id/edit(.:format)'> + /oauth/applications/:id/edit(.:format) + </td> + <td> + <p>doorkeeper/applications#edit</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_application'> + oauth_application<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/applications/:id(.:format)'> + /oauth/applications/:id(.:format) + </td> + <td> + <p>doorkeeper/applications#show</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name=''> + </td> + <td> + PATCH + </td> + <td data-route-path='/oauth/applications/:id(.:format)'> + /oauth/applications/:id(.:format) + </td> + <td> + <p>doorkeeper/applications#update</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name=''> + </td> + <td> + PUT + </td> + <td data-route-path='/oauth/applications/:id(.:format)'> + /oauth/applications/:id(.:format) + </td> + <td> + <p>doorkeeper/applications#update</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name=''> + </td> + <td> + DELETE + </td> + <td data-route-path='/oauth/applications/:id(.:format)'> + /oauth/applications/:id(.:format) + </td> + <td> + <p>doorkeeper/applications#destroy</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_authorized_applications'> + oauth_authorized_applications<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/authorized_applications(.:format)'> + /oauth/authorized_applications(.:format) + </td> + <td> + <p>doorkeeper/authorized_applications#index</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_authorized_application'> + oauth_authorized_application<span class='helper'>_path</span> + </td> + <td> + DELETE + </td> + <td data-route-path='/oauth/authorized_applications/:id(.:format)'> + /oauth/authorized_applications/:id(.:format) + </td> + <td> + <p>doorkeeper/authorized_applications#destroy</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='oauth_token_info'> + oauth_token_info<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/oauth/token/info(.:format)'> + /oauth/token/info(.:format) + </td> + <td> + <p>doorkeeper/token_info#show</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='booking_sync_engine'> + booking_sync_engine<span class='helper'>_path</span> + </td> + <td> + + </td> + <td data-route-path='/'> + / + </td> + <td> + <p>BookingSync::Engine</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='authenticated'> + authenticated<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/authenticated(.:format)'> + /authenticated(.:format) + </td> + <td> + <p>authenticated#index</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='root'> + root<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/'> + / + </td> + <td> + <p>home#index</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='rails_service_blob'> + rails_service_blob<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/rails/active_storage/blobs/:signed_id/*filename(.:format)'> + /rails/active_storage/blobs/:signed_id/*filename(.:format) + </td> + <td> + <p>active_storage/blobs#show</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='rails_blob_representation'> + rails_blob_representation<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format)'> + /rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format) + </td> + <td> + <p>active_storage/representations#show</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='rails_disk_service'> + rails_disk_service<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/rails/active_storage/disk/:encoded_key/*filename(.:format)'> + /rails/active_storage/disk/:encoded_key/*filename(.:format) + </td> + <td> + <p>active_storage/disk#show</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='update_rails_disk_service'> + update_rails_disk_service<span class='helper'>_path</span> + </td> + <td> + PUT + </td> + <td data-route-path='/rails/active_storage/disk/:encoded_token(.:format)'> + /rails/active_storage/disk/:encoded_token(.:format) + </td> + <td> + <p>active_storage/disk#update</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='rails_direct_uploads'> + rails_direct_uploads<span class='helper'>_path</span> + </td> + <td> + POST + </td> + <td data-route-path='/rails/active_storage/direct_uploads(.:format)'> + /rails/active_storage/direct_uploads(.:format) + </td> + <td> + <p>active_storage/direct_uploads#create</p> + </td> +</tr> + +<tr><th colspan="4">Routes for BookingSync::Engine</th></tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='auth_bookingsync_callback'> + auth_bookingsync_callback<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/auth/bookingsync/callback(.:format)'> + /auth/bookingsync/callback(.:format) + </td> + <td> + <p>sessions#create</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='auth_failure'> + auth_failure<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/auth/failure(.:format)'> + /auth/failure(.:format) + </td> + <td> + <p>sessions#failure</p> + </td> +</tr> +<tr class='route_row' data-helper='path'> + <td data-route-name='signout'> + signout<span class='helper'>_path</span> + </td> + <td> + GET + </td> + <td data-route-path='/signout(.:format)'> + /signout(.:format) + </td> + <td> + <p>sessions#destroy</p> + </td> +</tr> + + </tbody> +</table> + +<script type='text/javascript'> + // support forEarch iterator on NodeList + NodeList.prototype.forEach = Array.prototype.forEach; + + // Enables path search functionality + function setupMatchPaths() { + // Check if there are any matched results in a section + function checkNoMatch(section, noMatchText) { + if (section.children.length <= 1) { + section.innerHTML += noMatchText; + } + } + + // get JSON from URL and invoke callback with result + function getJSON(url, success) { + var xhr = new XMLHttpRequest(); + xhr.open('GET', url); + xhr.onload = function() { + if (this.status == 200) + success(JSON.parse(this.response)); + }; + xhr.send(); + } + + function delayedKeyup(input, callback) { + var timeout; + input.onkeyup = function(){ + if (timeout) clearTimeout(timeout); + timeout = setTimeout(callback, 300); + } + } + + // remove params or fragments + function sanitizePath(path) { + return path.replace(/[#?].*/, ''); + } + + var pathElements = document.querySelectorAll('#route_table [data-route-path]'), + searchElem = document.querySelector('#search'), + exactSection = document.querySelector('#exact_matches'), + fuzzySection = document.querySelector('#fuzzy_matches'); + + // Remove matches when no search value is present + searchElem.onblur = function(e) { + if (searchElem.value === "") { + exactSection.innerHTML = ""; + fuzzySection.innerHTML = ""; + } + } + + // On key press perform a search for matching paths + delayedKeyup(searchElem, function() { + var path = sanitizePath(searchElem.value), + defaultExactMatch = '<tr><th colspan="4">Paths Matching (' + path +'):</th></tr>', + defaultFuzzyMatch = '<tr><th colspan="4">Paths Containing (' + path +'):</th></tr>', + noExactMatch = '<tr><th colspan="4">No Exact Matches Found</th></tr>', + noFuzzyMatch = '<tr><th colspan="4">No Fuzzy Matches Found</th></tr>'; + + if (!path) + return searchElem.onblur(); + + getJSON('/rails/info/routes?path=' + path, function(matches){ + // Clear out results section + exactSection.innerHTML = defaultExactMatch; + fuzzySection.innerHTML = defaultFuzzyMatch; + + // Display exact matches and fuzzy matches + pathElements.forEach(function(elem) { + var elemPath = elem.getAttribute('data-route-path'); + + if (matches['exact'].indexOf(elemPath) != -1) + exactSection.appendChild(elem.parentNode.cloneNode(true)); + + if (matches['fuzzy'].indexOf(elemPath) != -1) + fuzzySection.appendChild(elem.parentNode.cloneNode(true)); + }) + + // Display 'No Matches' message when no matches are found + checkNoMatch(exactSection, noExactMatch); + checkNoMatch(fuzzySection, noFuzzyMatch); + }) + }) + } + + // Enables functionality to toggle between `_path` and `_url` helper suffixes + function setupRouteToggleHelperLinks() { + + // Sets content for each element + function setValOn(elems, val) { + elems.forEach(function(elem) { + elem.innerHTML = val; + }); + } + + // Sets onClick event for each element + function onClick(elems, func) { + elems.forEach(function(elem) { + elem.onclick = func; + }); + } + + var toggleLinks = document.querySelectorAll('#route_table [data-route-helper]'); + + onClick(toggleLinks, function(){ + var helperTxt = this.getAttribute("data-route-helper"), + helperElems = document.querySelectorAll('[data-route-name] span.helper'); + + setValOn(helperElems, helperTxt); + }); + } + + setupMatchPaths(); + setupRouteToggleHelperLinks(); +</script> + + + +<h2 style="margin-top: 30px">Request</h2> +<p><b>Parameters</b>:</p> <pre>None</pre> + +<div class="details"> + <div class="summary"><a href="#" onclick="return toggleSessionDump()">Toggle session dump</a></div> + <div id="session_dump" style="display:none"><pre></pre></div> +</div> + +<div class="details"> + <div class="summary"><a href="#" onclick="return toggleEnvDump()">Toggle env dump</a></div> + <div id="env_dump" style="display:none"><pre>GATEWAY_INTERFACE: &quot;CGI/1.2&quot; +HTTP_ACCEPT: &quot;*/*&quot; +HTTP_ACCEPT_ENCODING: &quot;gzip;q=1.0,deflate;q=0.6,identity;q=0.3&quot; +HTTP_VERSION: &quot;HTTP/1.1&quot; +ORIGINAL_SCRIPT_NAME: &quot;&quot; +REMOTE_ADDR: &quot;::1&quot; +SERVER_NAME: &quot;localhost&quot; +SERVER_PROTOCOL: &quot;HTTP/1.1&quot;</pre></div> +</div> + +<h2 style="margin-top: 30px">Response</h2> +<p><b>Headers</b>:</p> <pre>None</pre> + +</div> + + +</body> +</html> +): + +oauth2 (1.3.1) lib/oauth2/client.rb:119:in `request' +oauth2 (1.3.1) lib/oauth2/access_token.rb:107:in `request' +oauth2 (1.3.1) lib/oauth2/access_token.rb:114:in `get' +omniauth-bookingsync (0.5.0) lib/omniauth/strategies/bookingsync.rb:19:in `raw_info' +omniauth-bookingsync (0.5.0) lib/omniauth/strategies/bookingsync.rb:10:in `block in <class:BookingSync>' +omniauth (1.9.0) lib/omniauth/strategy.rb:109:in `instance_eval' +omniauth (1.9.0) lib/omniauth/strategy.rb:109:in `block in compile_stack' +omniauth (1.9.0) lib/omniauth/strategy.rb:108:in `each' +omniauth (1.9.0) lib/omniauth/strategy.rb:108:in `inject' +omniauth (1.9.0) lib/omniauth/strategy.rb:108:in `compile_stack' +omniauth (1.9.0) lib/omniauth/strategy.rb:102:in `uid_stack' +omniauth (1.9.0) lib/omniauth/strategy.rb:332:in `uid' +omniauth (1.9.0) lib/omniauth/strategy.rb:348:in `auth_hash' +omniauth (1.9.0) lib/omniauth/strategy.rb:372:in `callback_phase' +omniauth-oauth2 (1.4.0) lib/omniauth/strategies/oauth2.rb:75:in `callback_phase' +omniauth (1.9.0) lib/omniauth/strategy.rb:238:in `callback_call' +omniauth (1.9.0) lib/omniauth/strategy.rb:189:in `call!' +omniauth (1.9.0) lib/omniauth/strategy.rb:169:in `call' +omniauth (1.9.0) lib/omniauth/builder.rb:64:in `call' +rack (2.0.6) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.6) lib/rack/etag.rb:25:in `call' +rack (2.0.6) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.6) lib/rack/head.rb:12:in `call' +actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.6) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.6) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.2) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +  (1.5ms) SELECT COUNT(*) FROM "oauth_access_tokens" + Doorkeeper::AccessToken Load (1.6ms) SELECT "oauth_access_tokens".* FROM "oauth_access_tokens" +  (1.1ms) BEGIN + Doorkeeper::AccessToken Destroy (1.6ms) DELETE FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."id" = $1 [["id", 1]] +  (8.0ms) COMMIT +  (1.6ms) BEGIN + Doorkeeper::AccessToken Destroy (3.2ms) DELETE FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."id" = $1 [["id", 2]] +  (3.4ms) COMMIT +  (1.2ms) BEGIN + Doorkeeper::AccessToken Destroy (1.4ms) DELETE FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."id" = $1 [["id", 3]] +  (2.1ms) COMMIT +  (0.9ms) BEGIN + Doorkeeper::AccessToken Destroy (1.2ms) DELETE FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."id" = $1 [["id", 4]] +  (2.3ms) COMMIT +  (1.6ms) BEGIN + Doorkeeper::AccessToken Destroy (2.3ms) DELETE FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."id" = $1 [["id", 5]] +  (2.8ms) COMMIT + Doorkeeper::AccessGrant Load (2.0ms) SELECT "oauth_access_grants".* FROM "oauth_access_grants" +  (1.7ms) BEGIN + Doorkeeper::AccessGrant Destroy (1.3ms) DELETE FROM "oauth_access_grants" WHERE "oauth_access_grants"."id" = $1 [["id", 5]] +  (7.5ms) COMMIT +Started GET "/authenticated" for ::1 at 2019-03-19 12:33:44 +0800 +  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 8ms (Views: 3.1ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-03-19 12:33:44 +0800 +Started GET "/oauth/authorize?client_id=app_id&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fbookingsync%2Fcallback&response_type=code&state=857fba2adebb7721673e7f2c3f88d813b2a3af90c9989937" for ::1 at 2019-03-19 12:33:44 +0800 +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by Doorkeeper::AuthorizationsController#new as HTML + Parameters: {"client_id"=>"app_id", "redirect_uri"=>"http://localhost:3000/auth/bookingsync/callback", "response_type"=>"code", "state"=>"857fba2adebb7721673e7f2c3f88d813b2a3af90c9989937"} + RemoteAccount Load (1.2ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."name" = $1 LIMIT $2 [["name", "Toto"], ["LIMIT", 1]] + Doorkeeper::Application Load (1.5ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."name" = $1 LIMIT $2 [["name", "Toto"], ["LIMIT", 1]] + CACHE RemoteAccount Load (0.0ms) SELECT "remote_accounts".* FROM "remote_accounts" WHERE "remote_accounts"."name" = $1 LIMIT $2 [["name", "Toto"], ["LIMIT", 1]] + Doorkeeper::AccessToken Load (1.5ms) SELECT "oauth_access_tokens".* FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."application_id" = $1 AND "oauth_access_tokens"."resource_owner_id" = $2 AND "oauth_access_tokens"."revoked_at" IS NULL ORDER BY "oauth_access_tokens"."created_at" DESC [["application_id", 1], ["resource_owner_id", 1]] + Rendering /Users/marc/.rvm/gems/ruby-2.4.1/gems/doorkeeper-5.0.2/app/views/doorkeeper/authorizations/new.html.erb within layouts/doorkeeper/application + Rendered /Users/marc/.rvm/gems/ruby-2.4.1/gems/doorkeeper-5.0.2/app/views/doorkeeper/authorizations/new.html.erb within layouts/doorkeeper/application (11.6ms) +Completed 200 OK in 192ms (Views: 150.4ms | ActiveRecord: 20.6ms) + + +Started GET "/assets/doorkeeper/bootstrap.min.self-82aff163d0fc4b0f834a017c3912126536e0ed24de2744cf42d6f748a42b2d75.css?body=1" for ::1 at 2019-03-19 12:33:44 +0800 +Started GET "/assets/doorkeeper/admin/application.self-b390084e429567f550cf465629fbad67d41670909b2f42dd68b7ffec5bddb1af.css?body=1" for ::1 at 2019-03-19 12:33:44 +0800 +Started GET "/assets/doorkeeper/application.self-0d3ff3857ecea10dad6f6ab33f534a4df52875a35e5d24bfb4873cbf0b342362.css?body=1" for ::1 at 2019-03-19 12:33:44 +0800 +Started POST "/oauth/token" for ::1 at 2019-03-19 12:40:10 +0800 +Processing by Doorkeeper::TokensController#create as */* + Parameters: {"client_id"=>"app_id", "client_secret"=>"[FILTERED]", "code"=>"[FILTERED]", "grant_type"=>"authorization_code", "redirect_uri"=>"https://my.awesome.host/auth/bookingsync/callback"} + Doorkeeper::AccessGrant Load (1.1ms) SELECT "oauth_access_grants".* FROM "oauth_access_grants" WHERE "oauth_access_grants"."token" = $1 LIMIT $2 [["token", "919df635b85feaef9d7522bf1ea1b7903547e501e18f99dad079a8d54c6748dc"], ["LIMIT", 1]] + Doorkeeper::Application Load (1.6ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] +Completed 401 Unauthorized in 17ms + + +Started POST "/oauth/token" for ::1 at 2019-03-19 12:40:34 +0800 +Processing by Doorkeeper::TokensController#create as */* + Parameters: {"client_id"=>"app_id", "client_secret"=>"[FILTERED]", "code"=>"[FILTERED]", "grant_type"=>"authorization_code", "redirect_uri"=>"https://my.awesome.host/auth/bookingsync/callback"} + Doorkeeper::AccessGrant Load (1.2ms) SELECT "oauth_access_grants".* FROM "oauth_access_grants" WHERE "oauth_access_grants"."token" = $1 LIMIT $2 [["token", "9671baa9e566ddb6aa6f6a8827a673763f61fd25692356e47c97f82ba4155e96"], ["LIMIT", 1]] + Doorkeeper::Application Load (1.4ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] +Completed 401 Unauthorized in 4ms + + +Started POST "/oauth/token" for ::1 at 2019-03-19 12:42:17 +0800 +Processing by Doorkeeper::TokensController#create as */* + Parameters: {"client_id"=>"app_id", "client_secret"=>"[FILTERED]", "code"=>"[FILTERED]", "grant_type"=>"authorization_code", "redirect_uri"=>"https://my.awesome.host/auth/bookingsync/callback"} + Doorkeeper::AccessGrant Load (1.2ms) SELECT "oauth_access_grants".* FROM "oauth_access_grants" WHERE "oauth_access_grants"."token" = $1 LIMIT $2 [["token", "e47b3cd29908ee473850f568f412ab161f25b9cab90c55fed774b623f95e1960"], ["LIMIT", 1]] + Doorkeeper::Application Load (1.0ms) SELECT "oauth_applications".* FROM "oauth_applications" WHERE "oauth_applications"."uid" = $1 LIMIT $2 [["uid", "app_id"], ["LIMIT", 1]] +Completed 401 Unauthorized in 9ms + + +  (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (2.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]] +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]] +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]] +  (116.4ms) DROP DATABASE IF EXISTS "development" +  (111.3ms) DROP DATABASE IF EXISTS "test" +  (393.1ms) CREATE DATABASE "development" ENCODING = 'unicode' +  (301.1ms) CREATE DATABASE "test" ENCODING = 'unicode' + SQL (2.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (1.0ms) DROP TABLE IF EXISTS "accounts" CASCADE +  (19.7ms) CREATE TABLE "accounts" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying) +  (3.8ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id") +  (0.7ms) DROP TABLE IF EXISTS "applications" CASCADE +  (6.4ms) CREATE TABLE "applications" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "host" character varying NOT NULL, "client_id" text NOT NULL, "client_secret" text NOT NULL) +  (3.8ms) CREATE UNIQUE INDEX "index_applications_on_client_id" ON "applications" ("client_id") +  (3.0ms) CREATE UNIQUE INDEX "index_applications_on_client_secret" ON "applications" ("client_secret") +  (3.7ms) CREATE UNIQUE INDEX "index_applications_on_host" ON "applications" ("host") +  (1.2ms) DROP TABLE IF EXISTS "multi_applications_accounts" CASCADE +  (7.3ms) CREATE TABLE "multi_applications_accounts" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying, "host" character varying NOT NULL) +  (3.6ms) CREATE UNIQUE INDEX "index_multi_applications_accounts_on_host_and_synced_id" ON "multi_applications_accounts" ("host", "synced_id") +  (3.1ms) CREATE INDEX "index_multi_applications_accounts_on_host" ON "multi_applications_accounts" ("host") +  (3.5ms) CREATE INDEX "index_multi_applications_accounts_on_synced_id" ON "multi_applications_accounts" ("synced_id") +  (6.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20181130063104) +  (2.9ms) INSERT INTO "schema_migrations" (version) VALUES +(20140522110454), +(20181130062650), +(20181130063056), +(20140522110326), +(20181130062531); + + +  (8.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ActiveRecord::InternalMetadata Load (1.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (1.0ms) BEGIN + ActiveRecord::InternalMetadata Create (1.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2019-04-03 05:42:14.100371"], ["updated_at", "2019-04-03 05:42:14.100371"]] +  (1.9ms) COMMIT + ActiveRecord::InternalMetadata Load (2.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (2.6ms) BEGIN +  (2.5ms) COMMIT + SQL (1.0ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (1.1ms) DROP TABLE IF EXISTS "accounts" CASCADE +  (20.0ms) CREATE TABLE "accounts" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying) +  (3.4ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id") +  (0.8ms) DROP TABLE IF EXISTS "applications" CASCADE +  (5.9ms) CREATE TABLE "applications" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "host" character varying NOT NULL, "client_id" text NOT NULL, "client_secret" text NOT NULL) +  (4.3ms) CREATE UNIQUE INDEX "index_applications_on_client_id" ON "applications" ("client_id") +  (4.3ms) CREATE UNIQUE INDEX "index_applications_on_client_secret" ON "applications" ("client_secret") +  (6.2ms) CREATE UNIQUE INDEX "index_applications_on_host" ON "applications" ("host") +  (2.0ms) DROP TABLE IF EXISTS "multi_applications_accounts" CASCADE +  (10.8ms) CREATE TABLE "multi_applications_accounts" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying, "host" character varying NOT NULL) +  (3.7ms) CREATE UNIQUE INDEX "index_multi_applications_accounts_on_host_and_synced_id" ON "multi_applications_accounts" ("host", "synced_id") +  (3.3ms) CREATE INDEX "index_multi_applications_accounts_on_host" ON "multi_applications_accounts" ("host") +  (3.2ms) CREATE INDEX "index_multi_applications_accounts_on_synced_id" ON "multi_applications_accounts" ("synced_id") +  (5.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) +  (3.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES (20181130063104) +  (3.1ms) INSERT INTO "schema_migrations" (version) VALUES +(20140522110454), +(20181130062650), +(20181130063056), +(20140522110326), +(20181130062531); + + +  (8.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (0.8ms) BEGIN + ActiveRecord::InternalMetadata Create (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2019-04-03 05:42:14.291275"], ["updated_at", "2019-04-03 05:42:14.291275"]] +  (1.6ms) COMMIT + ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (0.7ms) BEGIN + ActiveRecord::InternalMetadata Update (0.9ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2019-04-03 05:42:14.297568"], ["key", "environment"]] +  (1.5ms) COMMIT +  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Started GET "/" for ::1 at 2019-04-03 14:07:55 +0800 +  (3.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by HomeController#index as HTML +Completed 406 Not Acceptable in 119ms (ActiveRecord: 0.0ms) + + + +ActionController::UnknownFormat (HomeController#index is missing a template for this request format and variant. + +request.formats: ["text/html"] +request.variant: [] + +NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.): + +actionpack (5.2.2) lib/action_controller/metal/implicit_render.rb:55:in `default_render' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `tap' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:194:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:42:in `block in process_action' +activesupport (5.2.2) lib/active_support/callbacks.rb:132:in `run_callbacks' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:41:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rescue.rb:22:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `block in instrument' +activesupport (5.2.2) lib/active_support/notifications/instrumenter.rb:23:in `instrument' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `instrument' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:32:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/params_wrapper.rb:256:in `process_action' +activerecord (5.2.2) lib/active_record/railties/controller_runtime.rb:24:in `process_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:134:in `process' +actionview (5.2.2) lib/action_view/rendering.rb:32:in `process' +actionpack (5.2.2) lib/action_controller/metal.rb:191:in `dispatch' +actionpack (5.2.2) lib/action_controller/metal.rb:252:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:52:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:34:in `serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:52:in `block in serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `each' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `serve' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:840:in `call' +omniauth (1.9.0) lib/omniauth/strategy.rb:192:in `call!' +omniauth (1.9.0) lib/omniauth/strategy.rb:169:in `call' +omniauth (1.9.0) lib/omniauth/builder.rb:64:in `call' +rack (2.0.6) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.6) lib/rack/etag.rb:25:in `call' +rack (2.0.6) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.6) lib/rack/head.rb:12:in `call' +actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.6) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.6) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.2) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +rack (2.0.6) lib/rack/handler/webrick.rb:86:in `service' +/Users/marc/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/webrick/httpserver.rb:140:in `service' +/Users/marc/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/webrick/httpserver.rb:96:in `run' +/Users/marc/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/webrick/server.rb:290:in `block in start_thread' +Started GET "/authenticated" for ::1 at 2019-04-03 14:08:08 +0800 +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-04-03 14:08:08 +0800 +Started GET "/authenticated" for ::1 at 2019-04-03 14:56:39 +0800 +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-04-03 14:56:39 +0800 +Started GET "/authenticated" for ::1 at 2019-04-03 14:57:54 +0800 +  (2.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 7ms (Views: 3.6ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-04-03 14:57:54 +0800 +Started GET "/authenticated" for ::1 at 2019-04-03 14:59:09 +0800 +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-04-03 14:59:09 +0800 +Started GET "/authenticated" for ::1 at 2019-04-03 15:08:51 +0800 +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 13ms (Views: 3.6ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-04-03 15:08:51 +0800 + Application Load (2.2ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] +Started GET "/authenticated" for ::1 at 2019-04-03 15:32:26 +0800 +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 8ms (Views: 4.5ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-04-03 15:32:26 +0800 + Application Load (1.1ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] +Started GET "/" for ::1 at 2019-04-03 15:34:30 +0800 +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by HomeController#index as HTML +Completed 406 Not Acceptable in 107ms (ActiveRecord: 0.0ms) + + + +ActionController::UnknownFormat (HomeController#index is missing a template for this request format and variant. + +request.formats: ["text/html"] +request.variant: [] + +NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.): + +actionpack (5.2.2) lib/action_controller/metal/implicit_render.rb:55:in `default_render' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `tap' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:194:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:42:in `block in process_action' +activesupport (5.2.2) lib/active_support/callbacks.rb:132:in `run_callbacks' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:41:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rescue.rb:22:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `block in instrument' +activesupport (5.2.2) lib/active_support/notifications/instrumenter.rb:23:in `instrument' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `instrument' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:32:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/params_wrapper.rb:256:in `process_action' +activerecord (5.2.2) lib/active_record/railties/controller_runtime.rb:24:in `process_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:134:in `process' +actionview (5.2.2) lib/action_view/rendering.rb:32:in `process' +actionpack (5.2.2) lib/action_controller/metal.rb:191:in `dispatch' +actionpack (5.2.2) lib/action_controller/metal.rb:252:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:52:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:34:in `serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:52:in `block in serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `each' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `serve' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:840:in `call' +omniauth (1.9.0) lib/omniauth/strategy.rb:192:in `call!' +omniauth (1.9.0) lib/omniauth/strategy.rb:169:in `call' +omniauth (1.9.0) lib/omniauth/builder.rb:64:in `call' +rack (2.0.6) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.6) lib/rack/etag.rb:25:in `call' +rack (2.0.6) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.6) lib/rack/head.rb:12:in `call' +actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.6) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.6) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.2) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +rack (2.0.6) lib/rack/handler/webrick.rb:86:in `service' +/Users/marc/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/webrick/httpserver.rb:140:in `service' +/Users/marc/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/webrick/httpserver.rb:96:in `run' +/Users/marc/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/webrick/server.rb:290:in `block in start_thread' +Started GET "/authenticated" for ::1 at 2019-04-03 15:34:36 +0800 +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-04-03 15:34:36 +0800 + Application Load (1.7ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] +Started GET "/authenticated" for ::1 at 2019-04-03 15:35:48 +0800 +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 7ms (Views: 3.6ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-04-03 15:35:48 +0800 + Application Load (1.4ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] +Started GET "/authenticated" for ::1 at 2019-04-03 15:37:21 +0800 +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 11ms (Views: 7.1ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-04-03 15:37:21 +0800 + Application Load (2.4ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] +  (1.3ms) SELECT COUNT(*) FROM "applications" + Application Exists (1.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "http://localhost:3000"], ["LIMIT", 1]] + Application Exists (1.5ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "c5e8351470b27ab5adfb04dfbdb0f89617675aee5bb6749eaae640d9adf6920e"], ["LIMIT", 1]] + Application Exists (1.3ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "8472a0ce29e0fe053ec71a3779250058135a07502c1ded43bec7bf7be0626459"], ["LIMIT", 1]] +  (1.1ms) BEGIN + Application Exists (1.0ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "http://localhost:3000"], ["LIMIT", 1]] + Application Exists (1.0ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "c5e8351470b27ab5adfb04dfbdb0f89617675aee5bb6749eaae640d9adf6920e"], ["LIMIT", 1]] + Application Exists (1.0ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "8472a0ce29e0fe053ec71a3779250058135a07502c1ded43bec7bf7be0626459"], ["LIMIT", 1]] + Application Create (1.2ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-04-03 07:40:27.919784"], ["updated_at", "2019-04-03 07:40:27.919784"], ["host", "http://localhost:3000"], ["client_id", "c5e8351470b27ab5adfb04dfbdb0f89617675aee5bb6749eaae640d9adf6920e"], ["client_secret", "8472a0ce29e0fe053ec71a3779250058135a07502c1ded43bec7bf7be0626459"]] +  (8.5ms) COMMIT +Started GET "/authenticated" for ::1 at 2019-04-03 15:41:06 +0800 +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 8ms (Views: 3.9ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for ::1 at 2019-04-03 15:41:06 +0800 + Application Load (2.0ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] +Started GET "/authenticated?_bookingsync_account_id=59" for ::1 at 2019-04-03 15:44:39 +0800 +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=59" for ::1 at 2019-04-03 15:44:39 +0800 + Application Load (1.6ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] +  (1.1ms) SELECT COUNT(*) FROM "accounts" +  (1.9ms) SELECT COUNT(*) FROM "multi_applications_accounts" +Started GET "/authenticated?_bookingsync_account_id=59" for ::1 at 2019-04-03 15:49:42 +0800 +  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=59" for ::1 at 2019-04-03 15:49:43 +0800 + Application Load (1.8ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] +Started GET "/authenticated?_bookingsync_account_id=59" for ::1 at 2019-04-03 15:54:00 +0800 +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=59" for ::1 at 2019-04-03 15:54:00 +0800 + Application Load (1.6ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] +Started GET "/authenticated?_bookingsync_account_id=59" for ::1 at 2019-04-03 15:57:01 +0800 +  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=59" for ::1 at 2019-04-03 15:57:02 +0800 + Application Load (1.9ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] +Started GET "/authenticated?_bookingsync_account_id=59" for ::1 at 2019-04-03 15:58:51 +0800 +  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=59" for ::1 at 2019-04-03 15:58:52 +0800 + Application Load (2.8ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] +Started GET "/authenticated?_bookingsync_account_id=59" for ::1 at 2019-04-03 15:59:55 +0800 +  (2.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=59" for ::1 at 2019-04-03 15:59:55 +0800 + Application Load (2.4ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] +Started GET "/authenticated?_bookingsync_account_id=59" for ::1 at 2019-04-03 16:00:45 +0800 +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=59" for ::1 at 2019-04-03 16:00:45 +0800 + Application Load (3.0ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] +Started GET "/authenticated?_bookingsync_account_id=59" for ::1 at 2019-04-03 16:01:53 +0800 +  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 6ms (Views: 2.4ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=59" for ::1 at 2019-04-03 16:01:53 +0800 + Application Load (1.6ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] +Started GET "/authenticated?_bookingsync_account_id=59" for ::1 at 2019-04-03 16:02:55 +0800 +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=59" for ::1 at 2019-04-03 16:02:55 +0800 + Application Load (1.0ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] +Started GET "/authenticated?_bookingsync_account_id=59" for ::1 at 2019-04-03 16:04:28 +0800 +  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} +Redirected to http://localhost:3000/auth/bookingsync/?account_id=59 +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=59" for ::1 at 2019-04-03 16:04:29 +0800 + Application Load (1.1ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] +Started GET "/authenticated?_bookingsync_account_id=59" for ::1 at 2019-04-03 16:08:51 +0800 +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} +Redirected to http://localhost:3000/auth/bookingsync/?account_id=59 +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 3ms (ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=59" for ::1 at 2019-04-03 16:08:51 +0800 + Application Load (1.0ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] +Started GET "/auth/bookingsync/?account_id=59" for ::1 at 2019-04-03 16:09:26 +0800 + Application Load (1.7ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] +Started GET "/authenticated?_bookingsync_account_id=59" for ::1 at 2019-04-03 16:10:03 +0800 +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} +Redirected to http://localhost:3000/auth/bookingsync/?account_id=59 +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 3ms (ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=59" for ::1 at 2019-04-03 16:10:03 +0800 + Application Load (1.1ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] +Started GET "/authenticated?_bookingsync_account_id=59" for ::1 at 2019-04-03 16:11:14 +0800 +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} +Redirected to http://localhost:3000/auth/bookingsync/?account_id=59 +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=59" for ::1 at 2019-04-03 16:11:14 +0800 + Application Load (1.0ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] +Started GET "/authenticated?_bookingsync_account_id=59" for ::1 at 2019-04-03 16:13:45 +0800 +  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} +Redirected to http://localhost:3000/auth/bookingsync/?account_id=59 +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 3ms (ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=59" for ::1 at 2019-04-03 16:13:45 +0800 + Application Load (1.2ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] + Application Load (1.0ms) SELECT "applications".* FROM "applications" ORDER BY "applications"."id" ASC LIMIT $1 [["LIMIT", 1]] + Application Load (1.7ms) SELECT "applications".* FROM "applications" ORDER BY "applications"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (2.2ms) BEGIN + Application Exists (1.6ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 AND "applications"."id" != $2 LIMIT $3 [["host", "localhost:3000"], ["id", 1], ["LIMIT", 1]] + Application Exists (1.1ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 AND "applications"."id" != $2 LIMIT $3 [["client_id", "c5e8351470b27ab5adfb04dfbdb0f89617675aee5bb6749eaae640d9adf6920e"], ["id", 1], ["LIMIT", 1]] + Application Exists (1.1ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 AND "applications"."id" != $2 LIMIT $3 [["client_secret", "8472a0ce29e0fe053ec71a3779250058135a07502c1ded43bec7bf7be0626459"], ["id", 1], ["LIMIT", 1]] + Application Update (1.1ms) UPDATE "applications" SET "updated_at" = $1, "host" = $2 WHERE "applications"."id" = $3 [["updated_at", "2019-04-03 08:15:29.093152"], ["host", "localhost:3000"], ["id", 1]] +  (9.6ms) COMMIT +Started GET "/authenticated?_bookingsync_account_id=59" for ::1 at 2019-04-03 16:15:50 +0800 +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} +Redirected to http://localhost:3000/auth/bookingsync/?account_id=59 +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 3ms (ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=59" for ::1 at 2019-04-03 16:15:50 +0800 + Application Load (1.9ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] +Started GET "/authenticated?_bookingsync_account_id=59" for ::1 at 2019-04-03 16:17:00 +0800 +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} +Redirected to http://localhost:3000/auth/bookingsync/?account_id=59 +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=59" for ::1 at 2019-04-03 16:17:01 +0800 + Application Load (1.1ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] +Started GET "/authenticated?_bookingsync_account_id=59" for ::1 at 2019-04-03 16:18:24 +0800 +  (3.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} +Redirected to http://localhost:3000/auth/bookingsync/?account_id=59 +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 7ms (ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=59" for ::1 at 2019-04-03 16:18:24 +0800 + Application Load (1.6ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] +Started GET "/authenticated?_bookingsync_account_id=59" for ::1 at 2019-04-03 16:19:24 +0800 +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} +Redirected to http://localhost:3000/auth/bookingsync/?account_id=59 +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=59" for ::1 at 2019-04-03 16:19:24 +0800 + Application Load (1.0ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] +Started GET "/authenticated?_bookingsync_account_id=59" for ::1 at 2019-04-03 16:20:41 +0800 +  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} +Redirected to http://localhost:3000/auth/bookingsync/?account_id=59 +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 3ms (ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=59" for ::1 at 2019-04-03 16:20:41 +0800 + Application Load (1.0ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "localhost:3000"], ["LIMIT", 1]] +Started GET "/authenticated?_bookingsync_account_id=59" for ::1 at 2019-04-03 18:02:14 +0800 +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} +Redirected to http://localhost:3000/auth/bookingsync/?account_id=59 +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=59" for ::1 at 2019-04-03 18:02:14 +0800 +Started GET "/authenticated" for 127.0.0.1 at 2019-04-03 18:35:49 +0800 +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML +Redirected to https://dummy.test/auth/bookingsync/?account_id= +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 3ms (ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for 127.0.0.1 at 2019-04-03 18:35:49 +0800 +Started GET "/authenticated?_bookingsync_account_id=59" for 127.0.0.1 at 2019-04-03 18:44:30 +0800 +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} +Redirected to https://dummy.test/auth/bookingsync/?account_id= +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 3ms (ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for 127.0.0.1 at 2019-04-03 18:44:30 +0800 +Started GET "/auth/bookingsync/callback?code=5ea9a77d86eb9010c1ccc7365d86f49142bd0c811d912ce9be09496f210b7ac3&state=4003f033c0f33195ba710aeca8d0c328451dfbcb2d42be8b" for 127.0.0.1 at 2019-04-03 18:44:47 +0800 +Processing by SessionsController#create as HTML + Parameters: {"code"=>"5ea9a77d86eb9010c1ccc7365d86f49142bd0c811d912ce9be09496f210b7ac3", "state"=>"4003f033c0f33195ba710aeca8d0c328451dfbcb2d42be8b"} + Account Load (4.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 59], ["provider", "bookingsync"], ["LIMIT", 1]] +  (2.5ms) BEGIN + Account Exists (2.9ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 59], ["LIMIT", 1]] + Account Create (2.4ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", "2019-04-03 10:44:50.064144"], ["updated_at", "2019-04-03 10:44:50.064144"], ["provider", "bookingsync"], ["synced_id", 59], ["name", "Demo Account"], ["oauth_access_token", "0869b29aa01d93fc95b41d12d39ef1c97569c89449c90f2cb7651e82c206b015"], ["oauth_refresh_token", "9a934ca49395672f76c06d2193787c4d2d99b4d005e5a3c9fbcdffdf8977ca60"], ["oauth_expires_at", "1554295489"]] +  (6.1ms) COMMIT +Redirected to https://dummy.test/ +Completed 302 Found in 72ms (ActiveRecord: 29.7ms) + + +Started GET "/" for 127.0.0.1 at 2019-04-03 18:44:50 +0800 +Processing by HomeController#index as HTML +Completed 406 Not Acceptable in 213ms (ActiveRecord: 0.0ms) + + + +ActionController::UnknownFormat (HomeController#index is missing a template for this request format and variant. + +request.formats: ["text/html"] +request.variant: [] + +NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.): + +actionpack (5.2.2) lib/action_controller/metal/implicit_render.rb:55:in `default_render' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `tap' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:194:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:42:in `block in process_action' +activesupport (5.2.2) lib/active_support/callbacks.rb:132:in `run_callbacks' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:41:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rescue.rb:22:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `block in instrument' +activesupport (5.2.2) lib/active_support/notifications/instrumenter.rb:23:in `instrument' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `instrument' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:32:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/params_wrapper.rb:256:in `process_action' +activerecord (5.2.2) lib/active_record/railties/controller_runtime.rb:24:in `process_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:134:in `process' +actionview (5.2.2) lib/action_view/rendering.rb:32:in `process' +actionpack (5.2.2) lib/action_controller/metal.rb:191:in `dispatch' +actionpack (5.2.2) lib/action_controller/metal.rb:252:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:52:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:34:in `serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:52:in `block in serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `each' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `serve' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:840:in `call' +omniauth (1.9.0) lib/omniauth/strategy.rb:192:in `call!' +omniauth (1.9.0) lib/omniauth/strategy.rb:169:in `call' +omniauth (1.9.0) lib/omniauth/builder.rb:64:in `call' +rack (2.0.6) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.6) lib/rack/etag.rb:25:in `call' +rack (2.0.6) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.6) lib/rack/head.rb:12:in `call' +actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.6) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.6) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.2) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/authenticated?_bookingsync_account_id=59" for 127.0.0.1 at 2019-04-03 18:45:47 +0800 +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} + Account Load (0.9ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 59], ["LIMIT", 1]] +Completed 406 Not Acceptable in 137ms (ActiveRecord: 6.8ms) + + + +ActionController::UnknownFormat (AuthenticatedController#index is missing a template for this request format and variant. + +request.formats: ["text/html"] +request.variant: [] + +NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.): + +actionpack (5.2.2) lib/action_controller/metal/implicit_render.rb:55:in `default_render' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `tap' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:194:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:42:in `block in process_action' +activesupport (5.2.2) lib/active_support/callbacks.rb:132:in `run_callbacks' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:41:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rescue.rb:22:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `block in instrument' +activesupport (5.2.2) lib/active_support/notifications/instrumenter.rb:23:in `instrument' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `instrument' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:32:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/params_wrapper.rb:256:in `process_action' +activerecord (5.2.2) lib/active_record/railties/controller_runtime.rb:24:in `process_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:134:in `process' +actionview (5.2.2) lib/action_view/rendering.rb:32:in `process' +actionpack (5.2.2) lib/action_controller/metal.rb:191:in `dispatch' +actionpack (5.2.2) lib/action_controller/metal.rb:252:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:52:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:34:in `serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:52:in `block in serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `each' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `serve' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:840:in `call' +omniauth (1.9.0) lib/omniauth/strategy.rb:192:in `call!' +omniauth (1.9.0) lib/omniauth/strategy.rb:169:in `call' +omniauth (1.9.0) lib/omniauth/builder.rb:64:in `call' +rack (2.0.6) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.6) lib/rack/etag.rb:25:in `call' +rack (2.0.6) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.6) lib/rack/head.rb:12:in `call' +actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.6) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.6) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.2) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/authenticated?_bookingsync_account_id=59" for 127.0.0.1 at 2019-04-03 18:50:29 +0800 +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} + Account Load (1.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 59], ["LIMIT", 1]] + Rendering authenticated/index.html.erb within layouts/application + Rendered authenticated/index.html.erb within layouts/application (0.3ms) +Completed 200 OK in 214ms (Views: 207.9ms | ActiveRecord: 1.3ms) + + +Started GET "/authenticated?_bookingsync_account_id=59" for 127.0.0.1 at 2019-04-03 18:50:49 +0800 +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} + Account Load (1.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 59], ["LIMIT", 1]] + Rendering authenticated/index.html.erb within layouts/application + Rendered authenticated/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 152ms (Views: 127.8ms | ActiveRecord: 8.9ms) + + +Started GET "/" for 127.0.0.1 at 2019-04-03 18:50:59 +0800 +Processing by HomeController#index as HTML +Completed 406 Not Acceptable in 126ms (ActiveRecord: 0.0ms) + + + +ActionController::UnknownFormat (HomeController#index is missing a template for this request format and variant. + +request.formats: ["text/html"] +request.variant: [] + +NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.): + +actionpack (5.2.2) lib/action_controller/metal/implicit_render.rb:55:in `default_render' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `tap' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:194:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:42:in `block in process_action' +activesupport (5.2.2) lib/active_support/callbacks.rb:132:in `run_callbacks' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:41:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rescue.rb:22:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `block in instrument' +activesupport (5.2.2) lib/active_support/notifications/instrumenter.rb:23:in `instrument' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `instrument' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:32:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/params_wrapper.rb:256:in `process_action' +activerecord (5.2.2) lib/active_record/railties/controller_runtime.rb:24:in `process_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:134:in `process' +actionview (5.2.2) lib/action_view/rendering.rb:32:in `process' +actionpack (5.2.2) lib/action_controller/metal.rb:191:in `dispatch' +actionpack (5.2.2) lib/action_controller/metal.rb:252:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:52:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:34:in `serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:52:in `block in serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `each' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `serve' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:840:in `call' +omniauth (1.9.0) lib/omniauth/strategy.rb:192:in `call!' +omniauth (1.9.0) lib/omniauth/strategy.rb:169:in `call' +omniauth (1.9.0) lib/omniauth/builder.rb:64:in `call' +rack (2.0.6) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.6) lib/rack/etag.rb:25:in `call' +rack (2.0.6) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.6) lib/rack/head.rb:12:in `call' +actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.6) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.6) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.2) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/authenticated" for 127.0.0.1 at 2019-04-03 18:51:07 +0800 +Processing by AuthenticatedController#index as HTML + Account Load (1.6ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 59], ["LIMIT", 1]] + Rendering authenticated/index.html.erb within layouts/application + Rendered authenticated/index.html.erb within layouts/application (0.3ms) +Completed 200 OK in 17ms (Views: 11.4ms | ActiveRecord: 1.6ms) + + +Started GET "/assets/application.self-f9e7c1541e1b8783561468c59162bd896007380f5a3799ef2169d3a3fdf40bed.css?body=1" for 127.0.0.1 at 2019-04-03 18:51:07 +0800 +Started GET "/assets/application.self-de3615060568b463d43b07d97e54e44d624bb66c323372bf19f0d7cab7415efb.js?body=1" for 127.0.0.1 at 2019-04-03 18:51:07 +0800 +Started GET "/authenticated?_bookingsync_account_id=59" for 127.0.0.1 at 2019-04-03 18:51:16 +0800 +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} + Account Load (1.6ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 59], ["LIMIT", 1]] + Rendering authenticated/index.html.erb within layouts/application + Rendered authenticated/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 19ms (Views: 9.2ms | ActiveRecord: 5.8ms) + + +Started GET "/authenticated" for 127.0.0.1 at 2019-04-03 18:51:24 +0800 +Processing by AuthenticatedController#index as HTML + Account Load (1.5ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 59], ["LIMIT", 1]] + Rendering authenticated/index.html.erb within layouts/application + Rendered authenticated/index.html.erb within layouts/application (0.3ms) +Completed 200 OK in 16ms (Views: 10.6ms | ActiveRecord: 1.5ms) + + +Started GET "/assets/application.self-f9e7c1541e1b8783561468c59162bd896007380f5a3799ef2169d3a3fdf40bed.css?body=1" for 127.0.0.1 at 2019-04-03 18:51:24 +0800 +Started GET "/assets/application.self-de3615060568b463d43b07d97e54e44d624bb66c323372bf19f0d7cab7415efb.js?body=1" for 127.0.0.1 at 2019-04-03 18:51:24 +0800 +Started GET "/" for 127.0.0.1 at 2019-04-03 18:51:27 +0800 +Processing by HomeController#index as HTML +Completed 406 Not Acceptable in 246ms (ActiveRecord: 0.0ms) + + + +ActionController::UnknownFormat (HomeController#index is missing a template for this request format and variant. + +request.formats: ["text/html"] +request.variant: [] + +NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.): + +actionpack (5.2.2) lib/action_controller/metal/implicit_render.rb:55:in `default_render' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `tap' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:194:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:42:in `block in process_action' +activesupport (5.2.2) lib/active_support/callbacks.rb:132:in `run_callbacks' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:41:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rescue.rb:22:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `block in instrument' +activesupport (5.2.2) lib/active_support/notifications/instrumenter.rb:23:in `instrument' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `instrument' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:32:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/params_wrapper.rb:256:in `process_action' +activerecord (5.2.2) lib/active_record/railties/controller_runtime.rb:24:in `process_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:134:in `process' +actionview (5.2.2) lib/action_view/rendering.rb:32:in `process' +actionpack (5.2.2) lib/action_controller/metal.rb:191:in `dispatch' +actionpack (5.2.2) lib/action_controller/metal.rb:252:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:52:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:34:in `serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:52:in `block in serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `each' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `serve' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:840:in `call' +omniauth (1.9.0) lib/omniauth/strategy.rb:192:in `call!' +omniauth (1.9.0) lib/omniauth/strategy.rb:169:in `call' +omniauth (1.9.0) lib/omniauth/builder.rb:64:in `call' +rack (2.0.6) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.6) lib/rack/etag.rb:25:in `call' +rack (2.0.6) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.6) lib/rack/head.rb:12:in `call' +actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.6) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.6) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.2) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/authenticated?_bookingsync_account_id=59" for 127.0.0.1 at 2019-04-03 18:51:40 +0800 +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} + Account Load (1.5ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 59], ["LIMIT", 1]] + Rendering authenticated/index.html.erb within layouts/application + Rendered authenticated/index.html.erb within layouts/application (0.3ms) +Completed 200 OK in 16ms (Views: 10.5ms | ActiveRecord: 1.5ms) + + +Started GET "/authenticated?_bookingsync_account_id=59" for 127.0.0.1 at 2019-04-03 18:53:38 +0800 +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} + Account Load (1.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 59], ["LIMIT", 1]] + Rendering authenticated/index.html.erb within layouts/application + Rendered authenticated/index.html.erb within layouts/application (0.3ms) +Completed 200 OK in 35ms (Views: 11.0ms | ActiveRecord: 6.6ms) + + +Started GET "/authenticated?_bookingsync_account_id=59" for 127.0.0.1 at 2019-04-03 18:53:52 +0800 +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} + Account Load (1.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 59], ["LIMIT", 1]] + Rendering authenticated/index.html.erb within layouts/application + Rendered authenticated/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 163ms (Views: 139.9ms | ActiveRecord: 7.0ms) + + +Started GET "/authenticated?_bookingsync_account_id=59" for 127.0.0.1 at 2019-04-03 18:54:03 +0800 +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} + Account Load (1.4ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 59], ["LIMIT", 1]] + Rendering authenticated/index.html.erb within layouts/application + Rendered authenticated/index.html.erb within layouts/application (0.3ms) +Completed 200 OK in 15ms (Views: 9.3ms | ActiveRecord: 1.4ms) + + +Started GET "/authenticated?_bookingsync_account_id=59" for 127.0.0.1 at 2019-04-03 18:57:16 +0800 +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} + Account Load (2.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 59], ["LIMIT", 1]] + Rendering authenticated/index.html.erb within layouts/application + Rendered authenticated/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 21ms (Views: 14.1ms | ActiveRecord: 2.1ms) + + +Started GET "/authenticated?_bookingsync_account_id=59" for 127.0.0.1 at 2019-04-03 18:57:44 +0800 +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} + Account Load (1.7ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 59], ["LIMIT", 1]] + Rendering authenticated/index.html.erb within layouts/application + Rendered authenticated/index.html.erb within layouts/application (0.3ms) +Completed 200 OK in 18ms (Views: 11.7ms | ActiveRecord: 1.7ms) + + +Started GET "/authenticated" for 127.0.0.1 at 2019-04-03 19:00:09 +0800 +Processing by AuthenticatedController#index as HTML + Account Load (1.6ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 59], ["LIMIT", 1]] + Rendering authenticated/index.html.erb within layouts/application + Rendered authenticated/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 19ms (Views: 12.9ms | ActiveRecord: 1.6ms) + + +Started GET "/assets/application.self-f9e7c1541e1b8783561468c59162bd896007380f5a3799ef2169d3a3fdf40bed.css?body=1" for 127.0.0.1 at 2019-04-03 19:00:09 +0800 +Started GET "/assets/application.self-de3615060568b463d43b07d97e54e44d624bb66c323372bf19f0d7cab7415efb.js?body=1" for 127.0.0.1 at 2019-04-03 19:00:09 +0800 +  (2.0ms) SELECT COUNT(*) FROM "accounts" + Account Load (1.0ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT $1 [["LIMIT", 1]] +Started GET "/authenticated?_bookingsync_account_id=59" for 127.0.0.1 at 2019-04-03 19:02:05 +0800 +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} +Completed 500 Internal Server Error in 22ms (ActiveRecord: 2.1ms) + + + +NoMethodError (undefined method `find_by_host_and_synced_id' for #<Class:0x007f97dfb0edd8>): + +activerecord (5.2.2) lib/active_record/dynamic_matchers.rb:22:in `method_missing' +/Users/marc/Projects/bookingsync-engine/lib/bookingsync/engine/auth_helpers.rb:18:in `current_account' +/Users/marc/Projects/bookingsync-engine/lib/bookingsync/engine/auth_helpers.rb:150:in `authenticate_account!' +activesupport (5.2.2) lib/active_support/callbacks.rb:426:in `block in make_lambda' +activesupport (5.2.2) lib/active_support/callbacks.rb:198:in `block (2 levels) in halting' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:34:in `block (2 levels) in <module:Callbacks>' +activesupport (5.2.2) lib/active_support/callbacks.rb:199:in `block in halting' +activesupport (5.2.2) lib/active_support/callbacks.rb:513:in `block in invoke_before' +activesupport (5.2.2) lib/active_support/callbacks.rb:513:in `each' +activesupport (5.2.2) lib/active_support/callbacks.rb:513:in `invoke_before' +activesupport (5.2.2) lib/active_support/callbacks.rb:131:in `run_callbacks' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:41:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rescue.rb:22:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `block in instrument' +activesupport (5.2.2) lib/active_support/notifications/instrumenter.rb:23:in `instrument' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `instrument' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:32:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/params_wrapper.rb:256:in `process_action' +activerecord (5.2.2) lib/active_record/railties/controller_runtime.rb:24:in `process_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:134:in `process' +actionview (5.2.2) lib/action_view/rendering.rb:32:in `process' +actionpack (5.2.2) lib/action_controller/metal.rb:191:in `dispatch' +actionpack (5.2.2) lib/action_controller/metal.rb:252:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:52:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:34:in `serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:52:in `block in serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `each' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `serve' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:840:in `call' +omniauth (1.9.0) lib/omniauth/strategy.rb:192:in `call!' +omniauth (1.9.0) lib/omniauth/strategy.rb:169:in `call' +omniauth (1.9.0) lib/omniauth/builder.rb:64:in `call' +rack (2.0.6) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.6) lib/rack/etag.rb:25:in `call' +rack (2.0.6) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.6) lib/rack/head.rb:12:in `call' +actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.6) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.6) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.2) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/authenticated?_bookingsync_account_id=59" for 127.0.0.1 at 2019-04-03 19:06:14 +0800 +  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} + MultiApplicationsAccount Load (1.1ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 LIMIT $3 [["host", "dummy.test"], ["synced_id", 59], ["LIMIT", 1]] + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 24ms (Views: 4.6ms | ActiveRecord: 4.1ms) + + +Started GET "/auth/bookingsync/?account_id=59" for 127.0.0.1 at 2019-04-03 19:06:14 +0800 + Application Load (1.0ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "dummy.test"], ["LIMIT", 1]] +Started GET "/authenticated" for 127.0.0.1 at 2019-04-03 19:07:03 +0800 +Processing by AuthenticatedController#index as HTML + MultiApplicationsAccount Load (1.7ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 LIMIT $3 [["host", "dummy.test"], ["synced_id", 59], ["LIMIT", 1]] + Rendering html template + Rendered html template (0.1ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 1.7ms) + + +Started GET "/auth/bookingsync/?account_id=" for 127.0.0.1 at 2019-04-03 19:07:03 +0800 + Application Load (1.8ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "dummy.test"], ["LIMIT", 1]] + Application Load (1.0ms) SELECT "applications".* FROM "applications" ORDER BY "applications"."id" ASC LIMIT $1 [["LIMIT", 1]] + Application Load (1.5ms) SELECT "applications".* FROM "applications" ORDER BY "applications"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (1.5ms) BEGIN + Application Exists (1.9ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 AND "applications"."id" != $2 LIMIT $3 [["host", "dummy.test"], ["id", 1], ["LIMIT", 1]] + Application Exists (1.6ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 AND "applications"."id" != $2 LIMIT $3 [["client_id", "c5e8351470b27ab5adfb04dfbdb0f89617675aee5bb6749eaae640d9adf6920e"], ["id", 1], ["LIMIT", 1]] + Application Exists (1.7ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 AND "applications"."id" != $2 LIMIT $3 [["client_secret", "8472a0ce29e0fe053ec71a3779250058135a07502c1ded43bec7bf7be0626459"], ["id", 1], ["LIMIT", 1]] + Application Update (2.0ms) UPDATE "applications" SET "updated_at" = $1, "host" = $2 WHERE "applications"."id" = $3 [["updated_at", "2019-04-03 11:10:00.643075"], ["host", "dummy.test"], ["id", 1]] +  (3.1ms) COMMIT +Started GET "/authenticated?_bookingsync_account_id=59" for 127.0.0.1 at 2019-04-03 19:10:17 +0800 +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} + MultiApplicationsAccount Load (1.5ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 LIMIT $3 [["host", "dummy.test"], ["synced_id", 59], ["LIMIT", 1]] + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 1.5ms) + + +Started GET "/auth/bookingsync/?account_id=59" for 127.0.0.1 at 2019-04-03 19:10:17 +0800 + Application Load (1.6ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "dummy.test"], ["LIMIT", 1]] +Started GET "/auth/bookingsync/callback?code=ca819bd1f21bc9dcbf50fe26d7b2b2904718868694e154506c6e11b67b305bcc&state=107f3d4e77cc4278be4167756acc1f5adba3e0df471496fb" for 127.0.0.1 at 2019-04-03 19:10:18 +0800 + Application Load (1.9ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "dummy.test"], ["LIMIT", 1]] +Processing by SessionsController#create as HTML + Parameters: {"code"=>"ca819bd1f21bc9dcbf50fe26d7b2b2904718868694e154506c6e11b67b305bcc", "state"=>"107f3d4e77cc4278be4167756acc1f5adba3e0df471496fb"} + Account Load (1.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 59], ["provider", "bookingsync"], ["LIMIT", 1]] +  (1.0ms) BEGIN + Account Exists (1.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3 [["synced_id", 59], ["id", 1], ["LIMIT", 1]] + Account Update (1.4ms) UPDATE "accounts" SET "oauth_expires_at" = $1, "updated_at" = $2 WHERE "accounts"."id" = $3 [["oauth_expires_at", "1554295488"], ["updated_at", "2019-04-03 11:10:20.655696"], ["id", 1]] +  (1.8ms) COMMIT +Redirected to https://dummy.test/authenticated +Completed 302 Found in 26ms (ActiveRecord: 11.4ms) + + +Started GET "/authenticated" for 127.0.0.1 at 2019-04-03 19:10:20 +0800 +Processing by AuthenticatedController#index as HTML + MultiApplicationsAccount Load (1.0ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 LIMIT $3 [["host", "dummy.test"], ["synced_id", 59], ["LIMIT", 1]] + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 1.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for 127.0.0.1 at 2019-04-03 19:10:20 +0800 + Application Load (1.3ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "dummy.test"], ["LIMIT", 1]] +Started GET "/auth/bookingsync/callback?code=ec8e6c7af170dcc0d09855e7e44dbcaceeb34429a4e03e75ea37564a7434f422&state=1ae227dfdd52d040f62a69ddb924dbe229b4a52ae5cf5c28" for 127.0.0.1 at 2019-04-03 19:10:27 +0800 + Application Load (1.3ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "dummy.test"], ["LIMIT", 1]] +Processing by SessionsController#create as HTML + Parameters: {"code"=>"ec8e6c7af170dcc0d09855e7e44dbcaceeb34429a4e03e75ea37564a7434f422", "state"=>"1ae227dfdd52d040f62a69ddb924dbe229b4a52ae5cf5c28"} + Account Load (1.8ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 59], ["provider", "bookingsync"], ["LIMIT", 1]] +  (0.7ms) BEGIN + Account Exists (1.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3 [["synced_id", 59], ["id", 1], ["LIMIT", 1]] + Account Update (0.8ms) UPDATE "accounts" SET "oauth_expires_at" = $1, "updated_at" = $2 WHERE "accounts"."id" = $3 [["oauth_expires_at", "1554295489"], ["updated_at", "2019-04-03 11:10:29.399231"], ["id", 1]] +  (1.4ms) COMMIT +Redirected to https://dummy.test/authenticated +Completed 302 Found in 10ms (ActiveRecord: 5.8ms) + + +Started GET "/authenticated" for 127.0.0.1 at 2019-04-03 19:10:29 +0800 +Processing by AuthenticatedController#index as HTML + MultiApplicationsAccount Load (1.4ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 LIMIT $3 [["host", "dummy.test"], ["synced_id", 59], ["LIMIT", 1]] + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 1.4ms) + + +Started GET "/auth/bookingsync/?account_id=" for 127.0.0.1 at 2019-04-03 19:10:29 +0800 + Application Load (0.9ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "dummy.test"], ["LIMIT", 1]] +Started GET "/auth/bookingsync/callback?code=c74d2d61d0ce59dda774794d8ab8b57ce0013d2da9f7a0cf59f60919c4e2a152&state=cbd04971d9d6e9604bfa8d17bd21b8a17f99bdadc79eb48d" for 127.0.0.1 at 2019-04-03 19:10:38 +0800 + Application Load (1.1ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "dummy.test"], ["LIMIT", 1]] +Processing by SessionsController#create as HTML + Parameters: {"code"=>"c74d2d61d0ce59dda774794d8ab8b57ce0013d2da9f7a0cf59f60919c4e2a152", "state"=>"cbd04971d9d6e9604bfa8d17bd21b8a17f99bdadc79eb48d"} + Account Load (1.5ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 59], ["provider", "bookingsync"], ["LIMIT", 1]] +  (0.9ms) BEGIN + Account Exists (1.3ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3 [["synced_id", 59], ["id", 1], ["LIMIT", 1]] +  (1.1ms) COMMIT +Redirected to https://dummy.test/authenticated +Completed 302 Found in 9ms (ActiveRecord: 4.7ms) + + +Started GET "/authenticated" for 127.0.0.1 at 2019-04-03 19:10:40 +0800 +Processing by AuthenticatedController#index as HTML + MultiApplicationsAccount Load (1.7ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 LIMIT $3 [["host", "dummy.test"], ["synced_id", 59], ["LIMIT", 1]] + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 1.7ms) + + +Started GET "/auth/bookingsync/?account_id=" for 127.0.0.1 at 2019-04-03 19:10:40 +0800 + Application Load (1.1ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "dummy.test"], ["LIMIT", 1]] +Started GET "/auth/bookingsync/callback?code=6f551ae6da9a2a0c26d64d2851523d3b481a3909ff47d7562d92072ad65d675f&state=c1e6320db93ebbf385a89669f3c92fa122c8b3b2cd2efcee" for 127.0.0.1 at 2019-04-03 19:11:20 +0800 + Application Load (1.9ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "dummy.test"], ["LIMIT", 1]] +Processing by SessionsController#create as HTML + Parameters: {"code"=>"6f551ae6da9a2a0c26d64d2851523d3b481a3909ff47d7562d92072ad65d675f", "state"=>"c1e6320db93ebbf385a89669f3c92fa122c8b3b2cd2efcee"} + Account Load (1.4ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 59], ["provider", "bookingsync"], ["LIMIT", 1]] +  (0.8ms) BEGIN + Account Exists (1.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3 [["synced_id", 59], ["id", 1], ["LIMIT", 1]] +  (0.7ms) COMMIT +Redirected to https://dummy.test/authenticated +Completed 302 Found in 8ms (ActiveRecord: 4.0ms) + + +Started GET "/authenticated" for 127.0.0.1 at 2019-04-03 19:11:22 +0800 +Processing by AuthenticatedController#index as HTML + MultiApplicationsAccount Load (1.1ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 LIMIT $3 [["host", "dummy.test"], ["synced_id", 59], ["LIMIT", 1]] + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 1.1ms) + + +Started GET "/auth/bookingsync/?account_id=" for 127.0.0.1 at 2019-04-03 19:11:22 +0800 + Application Load (0.9ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "dummy.test"], ["LIMIT", 1]] +Started GET "/authenticated?_bookingsync_account_id=59" for 127.0.0.1 at 2019-04-03 19:12:03 +0800 +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} + MultiApplicationsAccount Load (1.5ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 LIMIT $3 [["host", "dummy.test"], ["synced_id", 59], ["LIMIT", 1]] + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 1.5ms) + + +Started GET "/auth/bookingsync/?account_id=59" for 127.0.0.1 at 2019-04-03 19:12:03 +0800 + Application Load (2.4ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "dummy.test"], ["LIMIT", 1]] +Started GET "/auth/bookingsync/callback?code=4e52c8fdb0aa695b7f35733627abb326d3e7f70d712019cd7ac69576f94e1339&state=239c624b0a04673b144c5b8c9877746b21ad9047b2edd24f" for 127.0.0.1 at 2019-04-03 19:12:04 +0800 + Application Load (1.4ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "dummy.test"], ["LIMIT", 1]] +Processing by SessionsController#create as HTML + Parameters: {"code"=>"4e52c8fdb0aa695b7f35733627abb326d3e7f70d712019cd7ac69576f94e1339", "state"=>"239c624b0a04673b144c5b8c9877746b21ad9047b2edd24f"} + Account Load (1.5ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 59], ["provider", "bookingsync"], ["LIMIT", 1]] +  (0.7ms) BEGIN + Account Exists (1.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3 [["synced_id", 59], ["id", 1], ["LIMIT", 1]] +  (0.7ms) COMMIT +Redirected to https://dummy.test/authenticated +Completed 302 Found in 9ms (ActiveRecord: 4.0ms) + + +Started GET "/authenticated" for 127.0.0.1 at 2019-04-03 19:12:06 +0800 +Processing by AuthenticatedController#index as HTML + MultiApplicationsAccount Load (1.0ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 LIMIT $3 [["host", "dummy.test"], ["synced_id", 59], ["LIMIT", 1]] + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 1.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for 127.0.0.1 at 2019-04-03 19:12:06 +0800 + Application Load (0.8ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "dummy.test"], ["LIMIT", 1]] +Started GET "/auth/bookingsync/callback?code=c1215da782262d72eb4c2b2c004d9c74f14a7f5f119dbcced55faaa60f221329&state=fbe1607afae9a4cd89ca99fdf27f968ef0eac6fb5245dd0a" for 127.0.0.1 at 2019-04-03 19:12:09 +0800 + Application Load (1.3ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "dummy.test"], ["LIMIT", 1]] +Processing by SessionsController#create as HTML + Parameters: {"code"=>"c1215da782262d72eb4c2b2c004d9c74f14a7f5f119dbcced55faaa60f221329", "state"=>"fbe1607afae9a4cd89ca99fdf27f968ef0eac6fb5245dd0a"} + Account Load (3.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 59], ["provider", "bookingsync"], ["LIMIT", 1]] +  (0.9ms) BEGIN + Account Exists (0.9ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3 [["synced_id", 59], ["id", 1], ["LIMIT", 1]] + Account Update (0.8ms) UPDATE "accounts" SET "oauth_expires_at" = $1, "updated_at" = $2 WHERE "accounts"."id" = $3 [["oauth_expires_at", "1554295488"], ["updated_at", "2019-04-03 11:12:12.148309"], ["id", 1]] +  (7.9ms) COMMIT +Redirected to https://dummy.test/authenticated +Completed 302 Found in 19ms (ActiveRecord: 13.7ms) + + +Started GET "/authenticated" for 127.0.0.1 at 2019-04-03 19:12:12 +0800 +Processing by AuthenticatedController#index as HTML + MultiApplicationsAccount Load (1.3ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 LIMIT $3 [["host", "dummy.test"], ["synced_id", 59], ["LIMIT", 1]] + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 1.3ms) + + +Started GET "/auth/bookingsync/?account_id=" for 127.0.0.1 at 2019-04-03 19:12:12 +0800 + Application Load (1.3ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "dummy.test"], ["LIMIT", 1]] +Started GET "/authenticated?_bookingsync_account_id=59" for 127.0.0.1 at 2019-04-03 19:13:12 +0800 +  (3.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} +Testing session +59 + +59 +true + MultiApplicationsAccount Load (5.8ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 LIMIT $3 [["host", "dummy.test"], ["synced_id", 59], ["LIMIT", 1]] + Rendering html template + Rendered html template (0.2ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 45ms (Views: 13.7ms | ActiveRecord: 10.8ms) + + +Started GET "/auth/bookingsync/?account_id=59" for 127.0.0.1 at 2019-04-03 19:13:12 +0800 + Application Load (1.2ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "dummy.test"], ["LIMIT", 1]] +Started GET "/auth/bookingsync/callback?code=d37ae89d6b46e050172499323ffbee03838cd2297d146ec202b39ba4b958df52&state=40cdc03bd8d1e8a4299340a75312d554b26bd3ba4b0059bd" for 127.0.0.1 at 2019-04-03 19:13:13 +0800 + Application Load (1.7ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "dummy.test"], ["LIMIT", 1]] +Processing by SessionsController#create as HTML + Parameters: {"code"=>"d37ae89d6b46e050172499323ffbee03838cd2297d146ec202b39ba4b958df52", "state"=>"40cdc03bd8d1e8a4299340a75312d554b26bd3ba4b0059bd"} + Account Load (1.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 59], ["provider", "bookingsync"], ["LIMIT", 1]] +  (1.0ms) BEGIN + Account Exists (1.5ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3 [["synced_id", 59], ["id", 1], ["LIMIT", 1]] + Account Update (1.4ms) UPDATE "accounts" SET "oauth_expires_at" = $1, "updated_at" = $2 WHERE "accounts"."id" = $3 [["oauth_expires_at", "1554295489"], ["updated_at", "2019-04-03 11:13:15.451218"], ["id", 1]] +  (7.3ms) COMMIT +Redirected to https://dummy.test/authenticated +Completed 302 Found in 35ms (ActiveRecord: 17.5ms) + + +Started GET "/authenticated" for 127.0.0.1 at 2019-04-03 19:13:15 +0800 +Processing by AuthenticatedController#index as HTML +Testing session + +true +59 + + MultiApplicationsAccount Load (1.0ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 LIMIT $3 [["host", "dummy.test"], ["synced_id", 59], ["LIMIT", 1]] + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 1.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for 127.0.0.1 at 2019-04-03 19:13:15 +0800 + Application Load (0.9ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "dummy.test"], ["LIMIT", 1]] +Started GET "/auth/bookingsync/callback?code=ddc46f24ff2da4ced9adf8a0c7b1471b93bb0aed1d86470e523325942a301f3d&state=d406d5daff5fae5a1c1367a29fbb5e1a27a62a9bb70e553a" for 127.0.0.1 at 2019-04-03 19:13:27 +0800 + Application Load (1.3ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "dummy.test"], ["LIMIT", 1]] +Processing by SessionsController#create as HTML + Parameters: {"code"=>"ddc46f24ff2da4ced9adf8a0c7b1471b93bb0aed1d86470e523325942a301f3d", "state"=>"d406d5daff5fae5a1c1367a29fbb5e1a27a62a9bb70e553a"} + Account Load (1.6ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 59], ["provider", "bookingsync"], ["LIMIT", 1]] +  (1.0ms) BEGIN + Account Exists (1.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3 [["synced_id", 59], ["id", 1], ["LIMIT", 1]] + Account Update (1.0ms) UPDATE "accounts" SET "oauth_expires_at" = $1, "updated_at" = $2 WHERE "accounts"."id" = $3 [["oauth_expires_at", "1554295488"], ["updated_at", "2019-04-03 11:13:29.869399"], ["id", 1]] +  (6.9ms) COMMIT +Redirected to https://dummy.test/authenticated +Completed 302 Found in 17ms (ActiveRecord: 11.8ms) + + +Started GET "/authenticated" for 127.0.0.1 at 2019-04-03 19:13:29 +0800 +Processing by AuthenticatedController#index as HTML +Testing session + +true +59 + + MultiApplicationsAccount Load (1.2ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 LIMIT $3 [["host", "dummy.test"], ["synced_id", 59], ["LIMIT", 1]] + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 1.2ms) + + +Started GET "/auth/bookingsync/?account_id=" for 127.0.0.1 at 2019-04-03 19:13:29 +0800 + Application Load (1.1ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "dummy.test"], ["LIMIT", 1]] +  (1.4ms) SELECT COUNT(*) FROM "multi_applications_accounts" +Started GET "/authenticated?_bookingsync_account_id=59" for 127.0.0.1 at 2019-04-03 19:34:21 +0800 +  (5.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} +Testing session +59 + + + + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 12ms (Views: 5.7ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=59" for 127.0.0.1 at 2019-04-03 19:34:21 +0800 + Application Load (1.2ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "dummy.test"], ["LIMIT", 1]] +Started GET "/auth/bookingsync/callback?code=0b3582ecd3b0961f3a33e5fe7db52e85a342e919280b98042b4a2722a6dd8799&state=377dd1f4c8b8163c8ae8d69fc5e0ec1b4ab6a1b3d5482c5b" for 127.0.0.1 at 2019-04-03 19:34:22 +0800 + Application Load (1.8ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "dummy.test"], ["LIMIT", 1]] +Processing by SessionsController#create as HTML + Parameters: {"code"=>"0b3582ecd3b0961f3a33e5fe7db52e85a342e919280b98042b4a2722a6dd8799", "state"=>"377dd1f4c8b8163c8ae8d69fc5e0ec1b4ab6a1b3d5482c5b"} +We are here + MultiApplicationsAccount Load (1.4ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 AND "multi_applications_accounts"."provider" = $3 LIMIT $4 [["host", "dummy.test"], ["synced_id", 59], ["provider", "bookingsync"], ["LIMIT", 1]] +  (1.1ms) BEGIN + MultiApplicationsAccount Exists (1.0ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 59], ["host", "dummy.test"], ["LIMIT", 1]] + MultiApplicationsAccount Create (1.3ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "host") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["created_at", "2019-04-03 11:34:24.323548"], ["updated_at", "2019-04-03 11:34:24.323548"], ["provider", "bookingsync"], ["synced_id", 59], ["name", "Demo Account"], ["oauth_access_token", "0869b29aa01d93fc95b41d12d39ef1c97569c89449c90f2cb7651e82c206b015"], ["oauth_refresh_token", "9a934ca49395672f76c06d2193787c4d2d99b4d005e5a3c9fbcdffdf8977ca60"], ["oauth_expires_at", "1554295489"], ["host", "dummy.test"]] +  (6.5ms) COMMIT +Redirected to https://dummy.test/authenticated +Completed 302 Found in 36ms (ActiveRecord: 16.1ms) + + +Started GET "/authenticated" for 127.0.0.1 at 2019-04-03 19:34:24 +0800 +Processing by AuthenticatedController#index as HTML +Testing session + +true +59 + + MultiApplicationsAccount Load (0.9ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 LIMIT $3 [["host", "dummy.test"], ["synced_id", 59], ["LIMIT", 1]] + Rendering authenticated/index.html.erb within layouts/application + Rendered authenticated/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 184ms (Views: 179.3ms | ActiveRecord: 0.9ms) + + +Started GET "/authenticated" for 127.0.0.1 at 2019-04-03 19:34:41 +0800 +Processing by AuthenticatedController#index as HTML +Testing session + +true +59 + + MultiApplicationsAccount Load (1.7ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 LIMIT $3 [["host", "dummy.test"], ["synced_id", 59], ["LIMIT", 1]] + Rendering authenticated/index.html.erb within layouts/application + Rendered authenticated/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 22ms (Views: 15.2ms | ActiveRecord: 1.7ms) + + +Started GET "/assets/application.self-f9e7c1541e1b8783561468c59162bd896007380f5a3799ef2169d3a3fdf40bed.css?body=1" for 127.0.0.1 at 2019-04-03 19:34:41 +0800 +Started GET "/assets/application.self-de3615060568b463d43b07d97e54e44d624bb66c323372bf19f0d7cab7415efb.js?body=1" for 127.0.0.1 at 2019-04-03 19:34:41 +0800 +  (1.5ms) SELECT COUNT(*) FROM "applications" + Application Load (1.5ms) SELECT "applications".* FROM "applications" ORDER BY "applications"."id" ASC LIMIT $1 [["LIMIT", 1]] +Started GET "/authenticated" for 127.0.0.1 at 2019-04-03 21:38:59 +0800 +  (2.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML +Testing session + +true + +true + Rendering html template + Rendered html template (0.2ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 18ms (Views: 10.8ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=" for 127.0.0.1 at 2019-04-03 21:38:59 +0800 + Application Load (1.8ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "www.dummy.test"], ["LIMIT", 1]] +  (1.1ms) BEGIN + Application Exists (1.2ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "www.dummy.test"], ["LIMIT", 1]] + Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "45bf13c60d457c181800b8341919a4f82f0ad2cb6a78dcf4c260289e235a139a"], ["LIMIT", 1]] + Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "2411dde9c9dd6592de8e85a56b129c810525dd19cc8efd814321334e837d762e"], ["LIMIT", 1]] + Application Create (0.9ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-04-03 13:40:12.796204"], ["updated_at", "2019-04-03 13:40:12.796204"], ["host", "www.dummy.test"], ["client_id", "45bf13c60d457c181800b8341919a4f82f0ad2cb6a78dcf4c260289e235a139a"], ["client_secret", "2411dde9c9dd6592de8e85a56b129c810525dd19cc8efd814321334e837d762e"]] +  (7.1ms) COMMIT +Started GET "/authenticated?_bookingsync_account_id=59" for 127.0.0.1 at 2019-04-03 21:40:36 +0800 +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} +Testing session +59 + + + + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=59" for 127.0.0.1 at 2019-04-03 21:40:36 +0800 + Application Load (1.2ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "www.dummy.test"], ["LIMIT", 1]] +Started GET "/auth/bookingsync/callback?code=e4459c79a79d2f66dbde0cce93f3d3a295d5174ceae6fda0d87a57707cc070d6&state=ad60241d2773da59dd00269ec429e7a6e3e0357ce99e4013" for 127.0.0.1 at 2019-04-03 21:40:38 +0800 + Application Load (2.5ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "www.dummy.test"], ["LIMIT", 1]] +Processing by SessionsController#create as HTML + Parameters: {"code"=>"e4459c79a79d2f66dbde0cce93f3d3a295d5174ceae6fda0d87a57707cc070d6", "state"=>"ad60241d2773da59dd00269ec429e7a6e3e0357ce99e4013"} +We are here + MultiApplicationsAccount Load (1.3ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 AND "multi_applications_accounts"."provider" = $3 LIMIT $4 [["host", "www.dummy.test"], ["synced_id", 59], ["provider", "bookingsync"], ["LIMIT", 1]] +  (1.2ms) BEGIN + MultiApplicationsAccount Exists (1.5ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 59], ["host", "www.dummy.test"], ["LIMIT", 1]] + MultiApplicationsAccount Create (1.3ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "host") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["created_at", "2019-04-03 13:40:41.331985"], ["updated_at", "2019-04-03 13:40:41.331985"], ["provider", "bookingsync"], ["synced_id", 59], ["name", "Demo Account"], ["oauth_access_token", "16948f6578a4d61f616237deb6bbab36a393ee31856d62871ce15259cb7042fd"], ["oauth_refresh_token", "405d25246eed7d3e099722a214dce07ba22d83132cf2fb3fad3ce2e3ae8bf4d7"], ["oauth_expires_at", "1554306040"], ["host", "www.dummy.test"]] +  (8.1ms) COMMIT +Redirected to https://www.dummy.test/authenticated +Completed 302 Found in 35ms (ActiveRecord: 18.4ms) + + +Started GET "/authenticated" for 127.0.0.1 at 2019-04-03 21:40:41 +0800 +Processing by AuthenticatedController#index as HTML +Testing session + +true +59 + + MultiApplicationsAccount Load (1.0ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 LIMIT $3 [["host", "www.dummy.test"], ["synced_id", 59], ["LIMIT", 1]] + Rendering authenticated/index.html.erb within layouts/application + Rendered authenticated/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 129ms (Views: 123.1ms | ActiveRecord: 1.0ms) + + +Started GET "/authenticated" for 127.0.0.1 at 2019-04-03 21:40:55 +0800 +Processing by AuthenticatedController#index as HTML +Testing session + +true +59 + + MultiApplicationsAccount Load (1.4ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 LIMIT $3 [["host", "www.dummy.test"], ["synced_id", 59], ["LIMIT", 1]] + Rendering authenticated/index.html.erb within layouts/application + Rendered authenticated/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 20ms (Views: 13.4ms | ActiveRecord: 1.4ms) + + +Started GET "/assets/application.self-f9e7c1541e1b8783561468c59162bd896007380f5a3799ef2169d3a3fdf40bed.css?body=1" for 127.0.0.1 at 2019-04-03 21:40:56 +0800 +Started GET "/assets/application.self-de3615060568b463d43b07d97e54e44d624bb66c323372bf19f0d7cab7415efb.js?body=1" for 127.0.0.1 at 2019-04-03 21:40:56 +0800 +  (1.6ms) SELECT COUNT(*) FROM "multi_applications_accounts" + MultiApplicationsAccount Load (1.4ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" +Started GET "/authenticated?_bookingsync_account_id=59" for 127.0.0.1 at 2019-04-04 17:22:00 +0800 +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} + Rendering html template + Rendered html template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=59" for 127.0.0.1 at 2019-04-04 17:22:00 +0800 +Started GET "/authenticated?_bookingsync_account_id=59" for 127.0.0.1 at 2019-04-04 17:23:54 +0800 +  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by AuthenticatedController#index as HTML + Parameters: {"_bookingsync_account_id"=>"59"} + Rendering html template + Rendered html template (0.1ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 10ms (Views: 6.4ms | ActiveRecord: 0.0ms) + + +Started GET "/auth/bookingsync/?account_id=59" for 127.0.0.1 at 2019-04-04 17:23:54 +0800 + Application Load (1.4ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "www.dummy.test"], ["LIMIT", 1]] +Started GET "/auth/bookingsync/callback?code=879903276ca28e9e90e81ee7e689451d952978fa09f74822628218dd01349225&state=284754f8fd28691ee3c13fd5fa395f712467ceeeee4f7bd3" for 127.0.0.1 at 2019-04-04 17:23:59 +0800 + Application Load (1.6ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "www.dummy.test"], ["LIMIT", 1]] +Processing by SessionsController#create as HTML + Parameters: {"code"=>"879903276ca28e9e90e81ee7e689451d952978fa09f74822628218dd01349225", "state"=>"284754f8fd28691ee3c13fd5fa395f712467ceeeee4f7bd3"} + Account Load (1.4ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 59], ["provider", "bookingsync"], ["LIMIT", 1]] +  (1.2ms) BEGIN + Account Exists (1.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3 [["synced_id", 59], ["id", 1], ["LIMIT", 1]] + Account Update (1.2ms) UPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["oauth_access_token", "20e8edd74a06baccbea5ffa1116a496b769d70dddc80709b2f5316d80589bf3e"], ["oauth_refresh_token", "e56be710e5558b54ddfd1d1d9ecdcec5d05a60bf21bdd89e2784c95428e4dd1c"], ["oauth_expires_at", "1554377040"], ["updated_at", "2019-04-04 09:24:01.908384"], ["id", 1]] +  (6.9ms) COMMIT +Redirected to https://www.dummy.test/ +Completed 302 Found in 36ms (ActiveRecord: 17.0ms) + + +Started GET "/" for 127.0.0.1 at 2019-04-04 17:24:01 +0800 +Processing by HomeController#index as HTML +Completed 406 Not Acceptable in 111ms (ActiveRecord: 0.0ms) + + + +ActionController::UnknownFormat (HomeController#index is missing a template for this request format and variant. + +request.formats: ["text/html"] +request.variant: [] + +NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.): + +actionpack (5.2.2) lib/action_controller/metal/implicit_render.rb:55:in `default_render' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `tap' +actionpack (5.2.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:194:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:42:in `block in process_action' +activesupport (5.2.2) lib/active_support/callbacks.rb:132:in `run_callbacks' +actionpack (5.2.2) lib/abstract_controller/callbacks.rb:41:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/rescue.rb:22:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `block in instrument' +activesupport (5.2.2) lib/active_support/notifications/instrumenter.rb:23:in `instrument' +activesupport (5.2.2) lib/active_support/notifications.rb:168:in `instrument' +actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:32:in `process_action' +actionpack (5.2.2) lib/action_controller/metal/params_wrapper.rb:256:in `process_action' +activerecord (5.2.2) lib/active_record/railties/controller_runtime.rb:24:in `process_action' +actionpack (5.2.2) lib/abstract_controller/base.rb:134:in `process' +actionview (5.2.2) lib/action_view/rendering.rb:32:in `process' +actionpack (5.2.2) lib/action_controller/metal.rb:191:in `dispatch' +actionpack (5.2.2) lib/action_controller/metal.rb:252:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:52:in `dispatch' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:34:in `serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:52:in `block in serve' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `each' +actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in `serve' +actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:840:in `call' +omniauth (1.9.0) lib/omniauth/strategy.rb:192:in `call!' +omniauth (1.9.0) lib/omniauth/strategy.rb:169:in `call' +omniauth (1.9.0) lib/omniauth/builder.rb:64:in `call' +rack (2.0.6) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.6) lib/rack/etag.rb:25:in `call' +rack (2.0.6) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.6) lib/rack/head.rb:12:in `call' +actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.6) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.6) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.2) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.2) lib/rails/rack/logger.rb:26:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.6) lib/rack/method_override.rb:22:in `call' +rack (2.0.6) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.6) lib/rack/sendfile.rb:111:in `call' +railties (5.2.2) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread'