dotnet-starter-kit icon indicating copy to clipboard operation
dotnet-starter-kit copied to clipboard

Made a SQL DB.. Changed string.. rand host and I can't login.. Any idea?

Open punkouter26 opened this issue 1 year ago • 3 comments

Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] Unhandled exception rendering component: TypeError: Failed to fetch System.Net.Http.HttpRequestException: TypeError: Failed to fetch ---> TypeError: Failed to fetch --- End of inner exception stack trace --- at System.Net.Http.BrowserHttpInterop.<CancelationHelper>d__131[[System.Runtime.InteropServices.JavaScript.JSObject, System.Runtime.InteropServices.JavaScript, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].MoveNext() at System.Net.Http.BrowserHttpHandler.CallFetch(HttpRequestMessage request, CancellationToken cancellationToken, Nullable1 allowAutoRedirect) at System.Net.Http.BrowserHttpHandler.<SendAsync>g__Impl|53_0(HttpRequestMessage request, CancellationToken cancellationToken, Nullable1 allowAutoRedirect) at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken) at FSH.Starter.Blazor.Infrastructure.Auth.Jwt.JwtAuthenticationHeaderHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) in C:\Users\punko\Downloads\dotnet-starter-kit\src\apps\blazor\infrastructure\Auth\Jwt\JwtAuthenticationHeaderHandler.cs:line 32 at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken) at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) at FSH.Starter.Blazor.Infrastructure.Api.ApiClient.TokenGenerationEndpointAsync(String tenant, TokenGenerationCommand body, CancellationToken cancellationToken) in C:\Users\punko\Downloads\dotnet-starter-kit\src\apps\blazor\infrastructure\Api\ApiClient.cs:line 3209 at FSH.Starter.Blazor.Infrastructure.Auth.Jwt.JwtAuthenticationService.LoginAsync(String tenantId, TokenGenerationCommand request) in C:\Users\punko\Downloads\dotnet-starter-kit\src\apps\blazor\infrastructure\Auth\Jwt\JwtAuthenticationService.cs:line 57 at FSH.Starter.Blazor.Client.Components.ApiHelper.ExecuteCallGuardedAsync(Func1 call, ISnackbar snackbar, FshValidation customValidation, String successMessage) in C:\Users\punko\Downloads\dotnet-starter-kit\src\apps\blazor\client\Components\ApiHelper.cs:line 54 at FSH.Starter.Blazor.Client.Pages.Auth.Login.SubmitAsync() in C:\Users\punko\Downloads\dotnet-starter-kit\src\apps\blazor\client\Pages\Auth\Login.razor.cs:line 61 at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) at Microsoft.AspNetCore.Components.Forms.EditForm.HandleSubmitAsync() at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)

punkouter26 avatar Aug 29 '24 18:08 punkouter26

Might be a CORS issue? @punkouter24

iammukeshm avatar Aug 30 '24 04:08 iammukeshm

Yes it CORS issue. Can you fix and push update.

h-pannu avatar May 12 '25 21:05 h-pannu

I’m experiencing the same issue and would appreciate any help in resolving it. I’m trying to run the latest version from the master branch. Image

contactthebonzi-creator avatar Aug 04 '25 19:08 contactthebonzi-creator