Skip to content

Instantly share code, notes, and snippets.

@vddgil
Created September 7, 2022 08:58
Show Gist options
  • Save vddgil/efd7dea8b307255c1695eddf1a15d090 to your computer and use it in GitHub Desktop.
Save vddgil/efd7dea8b307255c1695eddf1a15d090 to your computer and use it in GitHub Desktop.
Error stacktrace
Started DELETE "/sessions" for 127.0.0.1 at 2022-09-07 10:57:09 +0200
Processing by Api::SessionsController#destroy as JSON
Parameters: {"subdomain"=>"api"}
User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 15827], ["LIMIT", 1]]
↳ app/controllers/api/sessions_controller.rb:34:in `destroy'
BlacklistedToken Exists? (0.4ms) SELECT 1 AS one FROM "blacklisted_tokens" WHERE "blacklisted_tokens"."user_id" = $1 AND "blacklisted_tokens"."token" = $2 LIMIT $3 [["user_id", 15827], ["token", "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxNTgyNywiZXhwIjoxNjYyNTQyODE5LCJpYXQiOjE2NjI1NDEwMTl9.1g_YoFPOFK6VRAduSCEv0YWXpZeiAvG9UhHz4M2ndn0"], ["LIMIT", 1]]
↳ app/controllers/api/sessions_controller.rb:34:in `destroy'
TRANSACTION (0.1ms) BEGIN
↳ app/controllers/api/sessions_controller.rb:35:in `destroy'
BlacklistedToken Create (1.4ms) INSERT INTO "blacklisted_tokens" ("token", "user_id", "expire_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["token", "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxNTgyNywiZXhwIjoxNjYyNTQyODE5LCJpYXQiOjE2NjI1NDEwMTl9.1g_YoFPOFK6VRAduSCEv0YWXpZeiAvG9UhHz4M2ndn0"], ["user_id", 15827], ["expire_at", "2022-09-07 09:26:59"], ["created_at", "2022-09-07 08:57:09.127494"], ["updated_at", "2022-09-07 08:57:09.127494"]]
↳ app/controllers/api/sessions_controller.rb:35:in `destroy'
TRANSACTION (1.1ms) COMMIT
↳ app/controllers/api/sessions_controller.rb:35:in `destroy'
Completed 200 OK in 24ms (Views: 0.1ms | ActiveRecord: 13.6ms | Elasticsearch: 0.0ms | Allocations: 5409)
Not notifying due to notify_release_stages :["staging", "production"]
JWT::InvalidJtiError (Missing jti):
jwt (2.4.1) lib/jwt/verify.rb:75:in `verify_jti'
jwt (2.4.1) lib/jwt/verify.rb:15:in `block (2 levels) in singleton class'
jwt (2.4.1) lib/jwt/verify.rb:23:in `block in verify_claims'
jwt (2.4.1) lib/jwt/verify.rb:20:in `each'
jwt (2.4.1) lib/jwt/verify.rb:20:in `verify_claims'
jwt (2.4.1) lib/jwt/decode.rb:99:in `verify_claims'
jwt (2.4.1) lib/jwt/decode.rb:31:in `decode_segments'
jwt (2.4.1) lib/jwt.rb:28:in `decode'
warden-jwt_auth (0.6.0) lib/warden/jwt_auth/token_decoder.rb:17:in `call'
warden-jwt_auth (0.6.0) lib/warden/jwt_auth/token_revoker.rb:13:in `call'
warden-jwt_auth (0.6.0) lib/warden/jwt_auth/middleware/revocation_manager.rb:34:in `revoke_token'
warden-jwt_auth (0.6.0) lib/warden/jwt_auth/middleware/revocation_manager.rb:22:in `call'
rack (2.2.4) lib/rack/builder.rb:244:in `call'
warden-jwt_auth (0.6.0) lib/warden/jwt_auth/middleware.rb:22:in `call'
warden (1.2.9) lib/warden/manager.rb:36:in `block in call'
warden (1.2.9) lib/warden/manager.rb:34:in `catch'
warden (1.2.9) lib/warden/manager.rb:34:in `call'
rack (2.2.4) lib/rack/etag.rb:27:in `call'
rack (2.2.4) lib/rack/conditional_get.rb:40:in `call'
rack (2.2.4) lib/rack/head.rb:12:in `call'
activerecord (7.0.3.1) lib/active_record/migration.rb:603:in `call'
actionpack (7.0.3.1) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
activesupport (7.0.3.1) lib/active_support/callbacks.rb:99:in `run_callbacks'
actionpack (7.0.3.1) lib/action_dispatch/middleware/callbacks.rb:26:in `call'
actionpack (7.0.3.1) lib/action_dispatch/middleware/executor.rb:14:in `call'
actionpack (7.0.3.1) lib/action_dispatch/middleware/actionable_exceptions.rb:17:in `call'
bugsnag (6.24.2) lib/bugsnag/integrations/rack.rb:51:in `call'
actionpack (7.0.3.1) lib/action_dispatch/middleware/debug_exceptions.rb:28:in `call'
actionpack (7.0.3.1) lib/action_dispatch/middleware/show_exceptions.rb:26:in `call'
railties (7.0.3.1) lib/rails/rack/logger.rb:40:in `call_app'
railties (7.0.3.1) lib/rails/rack/logger.rb:25:in `block in call'
activesupport (7.0.3.1) lib/active_support/tagged_logging.rb:114:in `block in tagged'
activesupport (7.0.3.1) lib/active_support/tagged_logging.rb:38:in `tagged'
activesupport (7.0.3.1) lib/active_support/tagged_logging.rb:114:in `tagged'
railties (7.0.3.1) lib/rails/rack/logger.rb:25:in `call'
silencer (2.0.0) lib/silencer/rails/logger.rb:37:in `call'
actionpack (7.0.3.1) lib/action_dispatch/middleware/remote_ip.rb:93:in `call'
actionpack (7.0.3.1) lib/action_dispatch/middleware/request_id.rb:26:in `call'
rack (2.2.4) lib/rack/runtime.rb:22:in `call'
activesupport (7.0.3.1) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
actionpack (7.0.3.1) lib/action_dispatch/middleware/executor.rb:14:in `call'
actionpack (7.0.3.1) lib/action_dispatch/middleware/static.rb:23:in `call'
rack (2.2.4) lib/rack/sendfile.rb:110:in `call'
actionpack (7.0.3.1) lib/action_dispatch/middleware/host_authorization.rb:131:in `call'
rack-cors (1.1.1) lib/rack/cors.rb:100:in `call'
railties (7.0.3.1) lib/rails/engine.rb:530:in `call'
puma (5.6.4) lib/puma/configuration.rb:252:in `call'
puma (5.6.4) lib/puma/request.rb:77:in `block in handle_request'
puma (5.6.4) lib/puma/thread_pool.rb:340:in `with_force_shutdown'
puma (5.6.4) lib/puma/request.rb:76:in `handle_request'
puma (5.6.4) lib/puma/server.rb:441:in `process_client'
puma (5.6.4) lib/puma/thread_pool.rb:147:in `block in spawn_thread'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment