Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The request message was already sent. Cannot send the same request message multiple times. #62

Closed
clarity99 opened this issue Oct 26, 2023 · 0 comments · Fixed by #63
Closed
Labels
bug Something isn't working

Comments

@clarity99
Copy link

clarity99 commented Oct 26, 2023

with beta-3 when trying to login commit the exception is thrown:
The request message was already sent. Cannot send the same request message multiple times.

System.InvalidOperationException: The request message was already sent. Cannot send the same request message multiple times.
         at System.Net.Http.HttpClient.CheckRequestMessage(HttpRequestMessage request)
         at System.Net.Http.HttpClient.CheckRequestBeforeSend(HttpRequestMessage request)
         at System.Net.Http.HttpClient.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken)
         at Passwordless.PasswordlessHttpHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) in /Users/robertivanc/src/passwordless-dotnet/src/Passwordless/PasswordlessHttpHandler.cs:line 22
         at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
         at Passwordless.PasswordlessClient.VerifyTokenAsync(String verifyToken, CancellationToken cancellationToken) in /Users/robertivanc/src/passwordless-dotnet/src/Passwordless/PasswordlessClient.cs:line 83
         at Passwordless.AspNetCore.Services.Implementations.PasswordlessService`2.LoginUserAsync(PasswordlessLoginRequest loginRequest, CancellationToken cancellationToken) in /Users/robertivanc/src/passwordless-dotnet/src/Passwordless.AspNetCore/Services/Implementations/PasswordlessService.cs:line 200
         at Passwordless.AspNetCore.PasswordlessApiEndpointRouteBuilderExtensions.<MapPasswordless>g__PasswordlessLogin|3_1[TRegisterBody](PasswordlessLoginRequest loginRequest, IPasswordlessService`1 passwordlessService, CancellationToken cancellationToken) in /Users/robertivanc/src/passwordless-dotnet/src/Passwordless.AspNetCore/PasswordlessApiEndpointRouteBuilderExtensions.cs:line 69
         at Microsoft.AspNetCore.Http.RequestDelegateFactory.ExecuteTaskResult[T](Task`1 task, HttpContext httpContext)
         at Microsoft.AspNetCore.Http.RequestDelegateFactory.<>c__DisplayClass90_2.<<HandleRequestBodyAndCompileRequestDelegateForJson>b__2>d.MoveNext()
      --- End of stack trace from previous location ---
         at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)

to reproduce clone this repo, commit
#41b2f46b62869bab699885979eae1cf6594bf25e and run AspNetIdentity.example, when logging in or registering on gets this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants