C#C
C#2y ago
damnnn

Resending confirmation email results in "A failure has occurred" error

Hi. I'm encountering an error while trying to resend a confirmation email in my ASP.NET Core application. The error message I'm receiving is:

{
"type": "https://tools.ietf.org/html/rfc9110#section-15.6.1",
"title": "A failure has occurred.",
"status": 500,
"traceId": "00-c71e0f8c6ac4b719b1fe02064c9d75e3-598ddc56be83a968-00",
"errorCodes": "customValue"
}
I'm using MediatR for handling requests and responses. Here's the relevant code snippets

When I debugged the code, I received the following error: ErrorOr { IsError = True, Errors = System.Collections.Generic.List1[ErrorOr.Error], ErrorsOrEmptyList = System.Collections.Generic.List1[ErrorOr.Error], Value = , FirstError = Error { Code = User email is not confirmed! Reasons: Invalid token., Description = A failure has occurred., Type = Failure, NumericType = 0, Metadata = } }

It seems like there's an issue with the token or email confirmation process. How can I resolve this error and successfully resend the confirmation email? Thank you for your help!
Screenshot_2024-05-14_at_17.24.26.png
Screenshot_2024-05-14_at_17.24.32.png
Screenshot_2024-05-14_at_17.24.54.png
Screenshot_2024-05-14_at_17.25.10.png
IETF Datatracker
The Hypertext Transfer Protocol (HTTP) is a stateless application-level protocol for distributed, collaborative, hypertext information systems. This document describes the overall architecture of HTTP, establishes common terminology, and defines aspects of the protocol that are shared by all versions. In this definition are core protocol element...
Was this page helpful?