Skip to content

Instantly share code, notes, and snippets.

@gadonski
Created August 17, 2023 11:15
Show Gist options
  • Save gadonski/0f6bd1f123af3ca3b100cb9665502f30 to your computer and use it in GitHub Desktop.
Save gadonski/0f6bd1f123af3ca3b100cb9665502f30 to your computer and use it in GitHub Desktop.
, [2023-08-17T11:14:59.917908 #1] INFO -- : source=rack-timeout id=8e1ad9ca-2ef2-42ec-b351-a032f0f0789e timeout=15000ms state=ready
I, [2023-08-17T11:14:59.929077 #1] INFO -- : [8e1ad9ca-2ef2-42ec-b351-a032f0f0789e] Started POST "/api/v1/accounts/1/inboxes" for 172.68.191.150 at 2023-08-17 11:14:59 +0000
I, [2023-08-17T11:14:59.945498 #1] INFO -- : [8e1ad9ca-2ef2-42ec-b351-a032f0f0789e] Processing by Api::V1::Accounts::InboxesController#create as JSON
I, [2023-08-17T11:14:59.951340 #1] INFO -- : [8e1ad9ca-2ef2-42ec-b351-a032f0f0789e] Parameters: {"name"=>"New Inbox", "channel"=>{"type"=>"api", "webhook_url"=>""}, "account_id"=>"1", "inbox"=>{"name"=>"New Inbox"}}
I, [2023-08-17T11:15:00.235485 #1] INFO -- : [8e1ad9ca-2ef2-42ec-b351-a032f0f0789e] [ActiveJob] Enqueued ActionCableBroadcastJob (Job ID: b4a5bef8-7da5-4257-8e56-7c88b89422c1) to Sidekiq(critical) with arguments: ["x3FgxnhcMDwgNZHgvZf1UnT8", "AQvwgtRdZM8c5CAbER2Z4Fq8"], "account.cache_invalidated", {:cache_keys=>{:label=>"0000000000", :inbox=>"1692270900", :team=>"0000000000"}, :account_id=>1, :performer=>{:id=>1, :name=>"André de Freitas Gadonski", :available_name=>"André", :avatar_url=>"", :type=>"user", :availability_status=>"online", :thumbnail=>""}}
I, [2023-08-17T11:15:00.239533 #1] INFO -- : [8e1ad9ca-2ef2-42ec-b351-a032f0f0789e] [ActiveJob] Enqueued EventDispatcherJob (Job ID: 61cf484c-972d-42b9-b5af-694ed59ffe59) to Sidekiq(critical) with arguments: "account.cache_invalidated", Thu, 17 Aug 2023 11:15:00.215304614 UTC +00:00, {:cache_keys=>{:label=>"0000000000", :inbox=>"1692270900", :team=>"0000000000"}, :account=>#<GlobalID:0x00007f3566a02420 @uri=#<URI::GID gid://chatwoot/Account/1>>}
I, [2023-08-17T11:15:00.258577 #1] INFO -- : [8e1ad9ca-2ef2-42ec-b351-a032f0f0789e] Rendered api/v1/accounts/inboxes/create.json.jbuilder (Duration: 14.1ms | Allocations: 1096)
I, [2023-08-17T11:15:00.259650 #1] INFO -- : [8e1ad9ca-2ef2-42ec-b351-a032f0f0789e] Completed 500 Internal Server Error in 308ms (ActiveRecord: 79.8ms | Allocations: 13109)
F, [2023-08-17T11:15:00.262369 #1] FATAL -- : [8e1ad9ca-2ef2-42ec-b351-a032f0f0789e]
[8e1ad9ca-2ef2-42ec-b351-a032f0f0789e] ActionView::Template::Error (undefined method `business_name' for #<Inbox id: 20, channel_id: 18, account_id: 1, name: "New Inbox", created_at: "2023-08-17 11:15:00.063353407 +0000", updated_at: "2023-08-17 11:15:00.063353407 +0000", channel_type: "Channel::Api", enable_auto_assignment: true, greeting_enabled: false, greeting_message: nil, email_address: nil, working_hours_enabled: false, out_of_office_message: nil, timezone: "UTC", enable_email_collect: true, csat_survey_enabled: false, allow_messages_after_resolved: true, auto_assignment_config: {}, lock_to_single_conversation: false, portal_id: nil, sender_name_type: nil>):
[8e1ad9ca-2ef2-42ec-b351-a032f0f0789e] 17: json.allow_messages_after_resolved resource.allow_messages_after_resolved
[8e1ad9ca-2ef2-42ec-b351-a032f0f0789e] 18: json.lock_to_single_conversation resource.lock_to_single_conversation
[8e1ad9ca-2ef2-42ec-b351-a032f0f0789e] 19: json.sender_name_type resource.sender_name_type
[8e1ad9ca-2ef2-42ec-b351-a032f0f0789e] 20: json.business_name resource.business_name
[8e1ad9ca-2ef2-42ec-b351-a032f0f0789e] 21:
[8e1ad9ca-2ef2-42ec-b351-a032f0f0789e] 22: if resource.portal.present?
[8e1ad9ca-2ef2-42ec-b351-a032f0f0789e] 23: json.help_center do
[8e1ad9ca-2ef2-42ec-b351-a032f0f0789e]
[8e1ad9ca-2ef2-42ec-b351-a032f0f0789e] app/views/api/v1/models/_inbox.json.jbuilder:20
[8e1ad9ca-2ef2-42ec-b351-a032f0f0789e] app/views/api/v1/accounts/inboxes/create.json.jbuilder:1
[8e1ad9ca-2ef2-42ec-b351-a032f0f0789e] app/controllers/concerns/switch_locale.rb:24:in `set_locale'
[8e1ad9ca-2ef2-42ec-b351-a032f0f0789e] app/controllers/concerns/switch_locale.rb:16:in `switch_locale_using_account_locale'
[8e1ad9ca-2ef2-42ec-b351-a032f0f0789e] app/controllers/concerns/request_exception_handler.rb:11:in `handle_with_exception'
[8e1ad9ca-2ef2-42ec-b351-a032f0f0789e] app/controllers/concerns/switch_locale.rb:24:in `set_locale'
[8e1ad9ca-2ef2-42ec-b351-a032f0f0789e] app/controllers/concerns/switch_locale.rb:11:in `switch_locale'
I, [2023-08-17T11:15:00.263038 #1] INFO -- : source=rack-timeout id=8e1ad9ca-2ef2-42ec-b351-a032f0f0789e timeout=15000ms service=345ms state=completed
I, [2023-08-17T11:15:00.347508 #1] INFO -- : source=rack-timeout id=ff4a44f7-e73d-4416-8dcd-da1af4ad07e2 timeout=15000ms state=ready
I, [2023-08-17T11:15:00.348904 #1] INFO -- : [ff4a44f7-e73d-4416-8dcd-da1af4ad07e2] Started GET "/api/v1/accounts/1/inboxes" for 172.68.191.150 at 2023-08-17 11:15:00 +0000
I, [2023-08-17T11:15:00.353344 #1] INFO -- : [ff4a44f7-e73d-4416-8dcd-da1af4ad07e2] Processing by Api::V1::Accounts::InboxesController#index as JSON
I, [2023-08-17T11:15:00.353427 #1] INFO -- : [ff4a44f7-e73d-4416-8dcd-da1af4ad07e2] Parameters: {"account_id"=>"1"}
I, [2023-08-17T11:15:00.403746 #1] INFO -- : [ff4a44f7-e73d-4416-8dcd-da1af4ad07e2] Rendered api/v1/accounts/inboxes/index.json.jbuilder (Duration: 39.4ms | Allocations: 7871)
I, [2023-08-17T11:15:00.406946 #1] INFO -- : [ff4a44f7-e73d-4416-8dcd-da1af4ad07e2] Completed 200 OK in 53ms (Views: 34.2ms | ActiveRecord: 8.7ms | Allocations: 10810)
I, [2023-08-17T11:15:00.408395 #1] INFO -- : source=rack-timeout id=ff4a44f7-e73d-4416-8dcd-da1af4ad07e2 timeout=15000ms service=61ms state=completed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment