When a user signs up the activation email works fine. However attempting to Sign In and resend the activation emails results in the following production log:
Started POST "/u/action/send_activation_email" for (removed ip and timestamp)
Processing by UsersController#send_activation_email as */*
Completed 404 Not Found in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 542)
This error occurs on all of containers running 3.2.0.beta1-dev. “production_errors.log” is empty.
Steps to reproduce:
- Sign up with the default form
- Ignore the activation email and attempt to sign in
- Click “Resend Activation Email” on the popup “You can’t log in yet. We previously sent an activation email to you…”
- “An error occurred: The requested URL or resource could not be found.”
- Click “OK” and then the following popup appears “We sent another activation email to you at…” (However the second activation email is not actually sent)
I see the function/action send_activation_email
is rate limited.
def send_activation_email
if current_user.blank? || !current_user.staff?
RateLimiter.new(nil, "activate-hr-#{request.remote_ip}", 30, 1.hour).performed!
RateLimiter.new(nil, "activate-min-#{request.remote_ip}", 6, 1.minute).performed!
end
Would this result in the 404 error? Is there any other logs I can look at to debug this issue?