사용자가 가입할 때 활성화 이메일은 정상적으로 작동합니다. 그러나 로그인하려고 시도하고 활성화 이메일을 다시 보내면 다음과 같은 프로덕션 로그가 나타납니다:
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)
이 오류는 3.2.0.beta1-dev를 실행 중인 모든 컨테이너에서 발생합니다. “production_errors.log”는 비어 있습니다.
재현 방법:
- 기본 폼으로 가입합니다.
- 활성화 이메일을 무시하고 로그인하려고 시도합니다.
- 팝업 “You can’t log in yet. We previously sent an activation email to you…”에서 “Resend Activation Email”을 클릭합니다.
- “An error occurred: The requested URL or resource could not be found.”라는 메시지가 표시됩니다.
- “OK”를 클릭하면 “We sent another activation email to you at…”라는 팝업이 나타납니다. (그러나 두 번째 활성화 이메일은 실제로 전송되지 않습니다)
함수/액션 send_activation_email이 레이트 리미팅(속도 제한)을 적용받고 있는 것을 확인했습니다.
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
이것이 404 오류의 원인이 될 수 있습니까? 이 문제를 디버깅하기 위해 확인할 수 있는 다른 로그가 있습니까?

