Natsurainko.FluentLauncher icon indicating copy to clipboard operation
Natsurainko.FluentLauncher copied to clipboard

Account not refreshing

Open rhuda21 opened this issue 10 months ago • 1 comments

Describe the bug

When trying to refresh a Ely.by account after successful initial login shows a 404 unauthorized error. This also happens when trying to load a Minecraft game

Steps to reproduce the bug

Logging in with yggdrasil account with server url - https://account.ely.by/api/authlib-injector then clicking refresh

Expected behavior

I expected the token to be refreshed for the account

Environment

Windows Build Number: 26100.1 (Windows 11 Pro Insider) Fluent Launcher version: 2.2.8.0

Attachment

Log File from Error:

System.Net.Http.HttpRequestException System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (Unauthorized). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at Nrk.FluentCore.Authentication.YggdrasilAuthenticator.ParseResponseAsync(HttpResponseMessage responseMessage) at Nrk.FluentCore.Authentication.YggdrasilAuthenticator.RefreshAsync(YggdrasilAccount account) at Natsurainko.FluentLauncher.Services.Accounts.AccountService.RefreshAccount(Account account) at Natsurainko.FluentLauncher.Services.Accounts.AccountService.RefreshActiveAccount() at Natsurainko.FluentLauncher.ViewModels.Settings.AccountViewModel.Refresh() at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask) at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state) at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.<Post>b__0()

rhuda21 avatar Apr 13 '24 16:04 rhuda21

Also reproduced in v2.2.7.0 (before refactoring auth APIs) @natsurainko

gaviny82 avatar Apr 14 '24 23:04 gaviny82

Same as #232

natsurainko avatar Jun 30 '24 09:06 natsurainko