Skip to content

Instantly share code, notes, and snippets.

@otaviosoares
Created March 8, 2018 23:10
Show Gist options
  • Save otaviosoares/8d08ece36e079aa1d0c17d70ae746cef to your computer and use it in GitHub Desktop.
Save otaviosoares/8d08ece36e079aa1d0c17d70ae746cef to your computer and use it in GitHub Desktop.
web_1 | Started GET "/v1/notifications" for 172.18.0.1 at 2018-03-08 23:09:19 +0000
web_1 | Processing by NotificationsController#index as HTML
web_1 | User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = $1 LIMIT $2 [["uid", "U8ASFTHBN"], ["LIMIT", 1]]
web_1 | UserIdentity Load (0.3ms) SELECT "user_identities".* FROM "user_identities" WHERE "user_identities"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
web_1 | (0.6ms) SELECT COUNT(*) FROM (SELECT 1 FROM "notifications" WHERE "notifications"."user_identity_id" = $1 AND (read_at IS NULL) ORDER BY "notifications"."created_at" DESC LIMIT $2) subquery_for_count [["user_identity_id", 1], ["LIMIT", 8]]
web_1 | [active_model_serializers] Notification Load (0.5ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."user_identity_id" = $1 ORDER BY "notifications"."created_at" DESC LIMIT $2 [["user_identity_id", 1], ["LIMIT", 8]]
web_1 | [active_model_serializers] Comment Load (0.4ms) SELECT "comments".* FROM "comments" WHERE "comments"."active" = $1 AND "comments"."id" = $2 LIMIT $3 [["active", "t"], ["id", 24], ["LIMIT", 1]]
web_1 | [active_model_serializers] Reply Load (0.6ms) SELECT "replies".* FROM "replies" WHERE "replies"."active" = $1 AND "replies"."id" = $2 LIMIT $3 [["active", "t"], ["id", 37], ["LIMIT", 1]]
web_1 | [active_model_serializers] Annotation Load (0.5ms) SELECT "annotations".* FROM "annotations" WHERE "annotations"."active" = $1 AND "annotations"."id" = $2 LIMIT $3 [["active", "t"], ["id", 92], ["LIMIT", 1]]
web_1 | [active_model_serializers] Highlight Load (0.4ms) SELECT "highlights".* FROM "highlights" WHERE "highlights"."active" = $1 AND "highlights"."id" = $2 LIMIT $3 [["active", "t"], ["id", 235], ["LIMIT", 1]]
web_1 | [active_model_serializers] Annotation Load (0.5ms) SELECT "annotations".* FROM "annotations" WHERE "annotations"."active" = $1 AND "annotations"."id" = $2 LIMIT $3 [["active", "t"], ["id", 91], ["LIMIT", 1]]
web_1 | [active_model_serializers] Highlight Load (0.7ms) SELECT "highlights".* FROM "highlights" WHERE "highlights"."active" = $1 AND "highlights"."id" = $2 LIMIT $3 [["active", "t"], ["id", 238], ["LIMIT", 1]]
web_1 | [active_model_serializers] Reply Load (0.6ms) SELECT "replies".* FROM "replies" WHERE "replies"."active" = $1 AND "replies"."id" = $2 LIMIT $3 [["active", "t"], ["id", 36], ["LIMIT", 1]]
web_1 | [active_model_serializers] Annotation Load (0.6ms) SELECT "annotations".* FROM "annotations" WHERE "annotations"."active" = $1 AND "annotations"."id" = $2 LIMIT $3 [["active", "t"], ["id", 90], ["LIMIT", 1]]
web_1 | [active_model_serializers] Highlight Load (0.5ms) SELECT "highlights".* FROM "highlights" WHERE "highlights"."active" = $1 AND "highlights"."id" = $2 LIMIT $3 [["active", "t"], ["id", 233], ["LIMIT", 1]]
web_1 | [active_model_serializers] CACHE Annotation Load (0.0ms) SELECT "annotations".* FROM "annotations" WHERE "annotations"."active" = $1 AND "annotations"."id" = $2 LIMIT $3 [["active", "t"], ["id", 90], ["LIMIT", 1]]
web_1 | [active_model_serializers] CACHE Highlight Load (0.0ms) SELECT "highlights".* FROM "highlights" WHERE "highlights"."active" = $1 AND "highlights"."id" = $2 LIMIT $3 [["active", "t"], ["id", 233], ["LIMIT", 1]]
web_1 | [active_model_serializers] Reply Load (0.6ms) SELECT "replies".* FROM "replies" WHERE "replies"."active" = $1 AND "replies"."id" = $2 LIMIT $3 [["active", "t"], ["id", 15], ["LIMIT", 1]]
web_1 | [active_model_serializers] Rendered ActiveModel::Serializer::CollectionSerializer with ActiveModelSerializers::Adapter::Attributes (31.34ms)
web_1 | Completed 500 Internal Server Error in 39ms (ActiveRecord: 7.0ms)
web_1 |
web_1 |
web_1 | undefined method `annotation' for nil:NilClass excluded from capture: Not configured to send/capture in environment 'development'
web_1 |
web_1 | NoMethodError (undefined method `annotation' for nil:NilClass):
web_1 |
web_1 | app/serializers/notification_serializer.rb:13:in `block in <class:NotificationSerializer>'
web_1 | app/controllers/notifications_controller.rb:27:in `index'
sidekiq_1 | 2018-03-08T23:09:19.831Z 1 TID-ovhh0i5t4 LinkSearchJob JID-8f939339edaa12b55dd8abeb INFO: start
sidekiq_1 | 2018-03-08T23:09:20.653Z 1 TID-ovhh0i5t4 LinkSearchJob JID-8f939339edaa12b55dd8abeb INFO: fail: 0.822 sec
sidekiq_1 | 2018-03-08T23:09:20.653Z 1 TID-ovhh0i5t4 WARN: {"context":"Job raised exception","job":{"class":"ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper","wrapped":"LinkSearchJob","queue":"default","args":[{"job_class":"LinkSearchJob","job_id":"f30d7d24-18d7-4e77-9454-1e0e8d84184f","provider_job_id":null,"queue_name":"default","priority":null,"arguments":[3],"executions":0,"locale":"en"}],"retry":true,"jid":"8f939339edaa12b55dd8abeb","created_at":1520550474.6169283,"enqueued_at":1520550559.830469,"error_message":"Error on fetch messages in channel : channel_not_found","error_class":"RuntimeError","failed_at":1520550475.4834752,"retry_count":1,"retried_at":1520550521.5202975},"jobstr":"{\"class\":\"ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper\",\"wrapped\":\"LinkSearchJob\",\"queue\":\"default\",\"args\":[{\"job_class\":\"LinkSearchJob\",\"job_id\":\"f30d7d24-18d7-4e77-9454-1e0e8d84184f\",\"provider_job_id\":null,\"queue_name\":\"default\",\"priority\":null,\"arguments\":[3],\"executions\":0,\"locale\":\"en\"}],\"retry\":true,\"jid\":\"8f939339edaa12b55dd8abeb\",\"created_at\":1520550474.6169283,\"enqueued_at\":1520550559.830469,\"error_message\":\"Error on fetch messages in channel : channel_not_found\",\"error_class\":\"RuntimeError\",\"failed_at\":1520550475.4834752,\"retry_count\":1,\"retried_at\":1520550521.5202975}"}
sidekiq_1 | 2018-03-08T23:09:20.653Z 1 TID-ovhh0i5t4 WARN: RuntimeError: Error on fetch messages in channel : channel_not_found
sidekiq_1 | 2018-03-08T23:09:20.654Z 1 TID-ovhh0i5t4 WARN: /rails-api/app/domains/integrations/slack/fetch_and_process_messages.rb:48:in `fetch_messages'
sidekiq_1 | /rails-api/app/domains/integrations/slack/fetch_and_process_messages.rb:14:in `call'
sidekiq_1 | /rails-api/app/jobs/link_search_job.rb:28:in `scrap'
sidekiq_1 | /rails-api/app/jobs/link_search_job.rb:15:in `block in search_link_in_slack'
sidekiq_1 | /usr/local/bundle/gems/activerecord-5.1.4/lib/active_record/relation/batches.rb:63:in `block (2 levels) in find_each'
sidekiq_1 | /usr/local/bundle/gems/activerecord-5.1.4/lib/active_record/relation/batches.rb:63:in `each'
sidekiq_1 | /usr/local/bundle/gems/activerecord-5.1.4/lib/active_record/relation/batches.rb:63:in `block in find_each'
sidekiq_1 | /usr/local/bundle/gems/activerecord-5.1.4/lib/active_record/relation/batches.rb:129:in `block in find_in_batches'
sidekiq_1 | /usr/local/bundle/gems/activerecord-5.1.4/lib/active_record/relation/batches.rb:230:in `block in in_batches'
sidekiq_1 | /usr/local/bundle/gems/activerecord-5.1.4/lib/active_record/relation/batches.rb:214:in `loop'
sidekiq_1 | /usr/local/bundle/gems/activerecord-5.1.4/lib/active_record/relation/batches.rb:214:in `in_batches'
sidekiq_1 | /usr/local/bundle/gems/activerecord-5.1.4/lib/active_record/relation/batches.rb:128:in `find_in_batches'
sidekiq_1 | /usr/local/bundle/gems/activerecord-5.1.4/lib/active_record/relation/batches.rb:62:in `find_each'
sidekiq_1 | /rails-api/app/jobs/link_search_job.rb:14:in `search_link_in_slack'
sidekiq_1 | /rails-api/app/jobs/link_search_job.rb:5:in `perform'
sidekiq_1 | /usr/local/bundle/gems/activejob-5.1.4/lib/active_job/execution.rb:37:in `block in perform_now'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:108:in `block in run_callbacks'
sidekiq_1 | /usr/local/bundle/gems/sentry-raven-2.7.1/lib/raven/integrations/rails/active_job.rb:18:in `capture_and_reraise_with_sentry'
sidekiq_1 | /usr/local/bundle/gems/sentry-raven-2.7.1/lib/raven/integrations/rails/active_job.rb:12:in `block (2 levels) in included'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `instance_exec'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
sidekiq_1 | /usr/local/bundle/gems/i18n-0.8.6/lib/i18n.rb:257:in `with_locale'
sidekiq_1 | /usr/local/bundle/gems/activejob-5.1.4/lib/active_job/translation.rb:7:in `block (2 levels) in <module:Translation>'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `instance_exec'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
sidekiq_1 | /usr/local/bundle/gems/activejob-5.1.4/lib/active_job/logging.rb:24:in `block (4 levels) in <module:Logging>'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `block in instrument'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `instrument'
sidekiq_1 | /usr/local/bundle/gems/activejob-5.1.4/lib/active_job/logging.rb:23:in `block (3 levels) in <module:Logging>'
sidekiq_1 | /usr/local/bundle/gems/activejob-5.1.4/lib/active_job/logging.rb:44:in `block in tag_logger'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/tagged_logging.rb:69:in `block in tagged'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/tagged_logging.rb:26:in `tagged'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/tagged_logging.rb:69:in `tagged'
sidekiq_1 | /usr/local/bundle/gems/activejob-5.1.4/lib/active_job/logging.rb:44:in `tag_logger'
sidekiq_1 | /usr/local/bundle/gems/activejob-5.1.4/lib/active_job/logging.rb:20:in `block (2 levels) in <module:Logging>'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `instance_exec'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:135:in `run_callbacks'
sidekiq_1 | /usr/local/bundle/gems/activejob-5.1.4/lib/active_job/execution.rb:33:in `perform_now'
sidekiq_1 | /usr/local/bundle/gems/activejob-5.1.4/lib/active_job/execution.rb:22:in `block in execute'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:108:in `block in run_callbacks'
sidekiq_1 | /usr/local/bundle/gems/activejob-5.1.4/lib/active_job/railtie.rb:26:in `block (4 levels) in <class:Railtie>'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/execution_wrapper.rb:85:in `wrap'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/reloader.rb:68:in `block in wrap'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/execution_wrapper.rb:81:in `wrap'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/reloader.rb:67:in `wrap'
sidekiq_1 | /usr/local/bundle/gems/activejob-5.1.4/lib/active_job/railtie.rb:25:in `block (3 levels) in <class:Railtie>'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `instance_exec'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:135:in `run_callbacks'
sidekiq_1 | /usr/local/bundle/gems/activejob-5.1.4/lib/active_job/execution.rb:20:in `execute'
sidekiq_1 | /usr/local/bundle/gems/activejob-5.1.4/lib/active_job/queue_adapters/sidekiq_adapter.rb:40:in `perform'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:188:in `execute_job'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:170:in `block (2 levels) in process'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/middleware/chain.rb:128:in `block in invoke'
sidekiq_1 | /usr/local/bundle/gems/sentry-raven-2.7.1/lib/raven/integrations/sidekiq.rb:9:in `call'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/middleware/chain.rb:133:in `invoke'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:169:in `block in process'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:141:in `block (6 levels) in dispatch'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/job_retry.rb:97:in `local'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:140:in `block (5 levels) in dispatch'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/rails.rb:42:in `block in call'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/execution_wrapper.rb:85:in `wrap'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/reloader.rb:68:in `block in wrap'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/execution_wrapper.rb:85:in `wrap'
sidekiq_1 | /usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/reloader.rb:67:in `wrap'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/rails.rb:41:in `call'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:136:in `block (4 levels) in dispatch'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:204:in `stats'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:131:in `block (3 levels) in dispatch'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/job_logger.rb:7:in `call'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:130:in `block (2 levels) in dispatch'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/job_retry.rb:72:in `global'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:129:in `block in dispatch'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/logging.rb:44:in `with_context'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/logging.rb:38:in `with_job_hash_context'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:128:in `dispatch'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:168:in `process'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:85:in `process_one'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:73:in `run'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/util.rb:16:in `watchdog'
sidekiq_1 | /usr/local/bundle/gems/sidekiq-5.0.5/lib/sidekiq/util.rb:25:in `block in safe_thread'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment