A platform for community discussion. Free, open, simple.
DEV: include `time_left` information in rate limiting error messages (#17037)
Arpit Jalan4bc2d54685a9
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rbindex 6fff04294fa..274730156eb 100644--- a/app/controllers/application_controller.rb+++ b/app/controllers/application_controller.rb@@ -192,7 +192,7 @@ class ApplicationController < ActionController::Basee.description,type: :rate_limit,status: 429,- extras: { wait_seconds: retry_time_in_seconds },+ extras: { wait_seconds: retry_time_in_seconds, time_left: e&.time_left },headers: response_headers)end