fullstackhero / dotnet-starter-kit

Production Grade Cloud-Ready .NET 8 Starter Kit (Web API + Blazor Client) with Multitenancy Support, and Clean/Modular Architecture that saves roughly 200+ Development Hours! All Batteries Included.
https://fullstackhero.net/dotnet-webapi-boilerplate/
MIT License
5.29k stars 1.58k forks source link

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

Open punkouter25 opened 2 months ago

punkouter25 commented 2 months ago

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.d131[[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.gImpl|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)

iammukeshm commented 2 months ago

Might be a CORS issue? @punkouter24