Skip to content

Commit

Permalink
wfe: on rate limit error, serve 500
Browse files Browse the repository at this point in the history
This affects NewAccount and NewOrder.
  • Loading branch information
jsha committed Nov 8, 2024
1 parent 2058d98 commit 8157375
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wfe2/wfe.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down Expand Up @@ -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
}
}

Expand Down

0 comments on commit 8157375

Please sign in to comment.