From 81573751e2fd275ff3061b52b21bb4419260bb08 Mon Sep 17 00:00:00 2001 From: Jacob Hoffman-Andrews Date: Fri, 8 Nov 2024 14:36:02 -0800 Subject: [PATCH] wfe: on rate limit error, serve 500 This affects NewAccount and NewOrder. --- wfe2/wfe.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wfe2/wfe.go b/wfe2/wfe.go index b4c60c084b5..095c6c96627 100644 --- a/wfe2/wfe.go +++ b/wfe2/wfe.go @@ -802,7 +802,8 @@ func (wfe *WebFrontEndImpl) NewAccount( wfe.sendError(response, logEvent, probs.RateLimited(err.Error()), err) return } else { - wfe.log.Warning(err.Error()) + wfe.sendError(response, logEvent, web.ProblemDetailsForError(err, "While checking rate limits"), err) + return } } @@ -2446,7 +2447,8 @@ func (wfe *WebFrontEndImpl) NewOrder( return } } else { - wfe.log.Warning(err.Error()) + wfe.sendError(response, logEvent, web.ProblemDetailsForError(err, "While checking rate limits"), err) + return } }