This is the error that is triggering a P0 incident in Chatwoot. ``` DashboardController#index is missing a template for this request format and variant. request.formats: ["application/json"] request.variant: [] ``` The user is calling `/app/accounts/api/v1/accounts/<account-id>/inboxes`. The URL is wrong, the requests are routed to dashboard controller as it starts with `/app/accounts`. The dashboard controller is not handling JSON requests and it creates errors. There are 312k errors over the last 2 years. Close to 50k during last 3 days. This fix would return not_acceptable response to the attempts. |
||
|---|---|---|
| .. | ||
| api | ||
| devise | ||
| installation | ||
| microsoft | ||
| platform/api/v1 | ||
| public/api/v1 | ||
| service | ||
| super_admin | ||
| twilio | ||
| webhooks | ||
| .keep | ||
| android_assetlinks_spec.rb | ||
| api_controller_spec.rb | ||
| apple_app_spec.rb | ||
| dashboard_controller_spec.rb | ||
| microsoft_controller_spec.rb | ||
| slack_uploads_controller_spec.rb | ||
| swagger_controller_spec.rb | ||
| widget_tests_controller_spec.rb | ||
| widgets_controller_spec.rb | ||