Comments (7)
这个问题之前也有人报过,但一直不清楚是你的网络问题还是程序上的问题,建议同时用同一账号使用友商的启动器测试是否能登录。如果不能,就是你本机的网络问题,如果可以,请麻烦提供更多信息
from natsurainko.fluentlauncher.
+1
from natsurainko.fluentlauncher.
+1
请你测试一下你当前网络环境是否能正常链接微软和Mojang。如果可以,请你提供更多信息
from natsurainko.fluentlauncher.
这里AuthenticateAsync里面出现了NullReferenceException,应该是FluentCore这个方法里面的问题,我在设置里添加账户是没问题的
from natsurainko.fluentlauncher.
At Natsurainko.FluentCore/Module/Authenticator/MicrosoftAuthenticator.cs
Line 137~148
var authorization = new Tuple<string, string>("Bearer", access_token);
using var profileRes = await HttpWrapper.HttpGetAsync("https://api.minecraftservices.com/minecraft/profile", authorization);
var microsoftAuthenticationResponse = JsonConvert.DeserializeObject(await profileRes.Content.ReadAsStringAsync());
ProgressChanged?.Invoke(this, (1.0f, "Finished"));
return new MicrosoftAccount
{
AccessToken = access_token,
ClientToken = Guid.NewGuid().ToString("N"),
Name = microsoftAuthenticationResponse.Name,
Uuid = Guid.Parse(microsoftAuthenticationResponse.Id),
RefreshToken = OAuth20TokenResponse.RefreshToken,
DateTime = DateTime.Now
};
怀疑可能是 "https://api.minecraftservices.com/minecraft/profile" 返回 null ,如果是正常账号一般不会出现这种情况。或者是之前与XBL通信失败无法获得access_token导致的。
from natsurainko.fluentlauncher.
At Natsurainko.FluentCore/Module/Authenticator/MicrosoftAuthenticator.cs Line 137~148
var authorization = new Tuple<string, string>("Bearer", access_token); using var profileRes = await HttpWrapper.HttpGetAsync("https://api.minecraftservices.com/minecraft/profile", authorization); var microsoftAuthenticationResponse = JsonConvert.DeserializeObject(await profileRes.Content.ReadAsStringAsync());
ProgressChanged?.Invoke(this, (1.0f, "Finished")); return new MicrosoftAccount { AccessToken = access_token, ClientToken = Guid.NewGuid().ToString("N"), Name = microsoftAuthenticationResponse.Name, Uuid = Guid.Parse(microsoftAuthenticationResponse.Id), RefreshToken = OAuth20TokenResponse.RefreshToken, DateTime = DateTime.Now };
怀疑可能是 "https://api.minecraftservices.com/minecraft/profile" 返回 null ,如果是正常账号一般不会出现这种情况。或者是之前与XBL通信失败无法获得access_token导致的。
我又试了一遍,只有在引导界面登录才会出问题,设置里登录是正常的...
from natsurainko.fluentlauncher.
我也是这样
网络环境没有问题,mojang和微软均可以正常连接
from natsurainko.fluentlauncher.
Related Issues (20)
- [Refactor & Feature] 部分 UI 重构 与 个性化、翻译补全等功能 的计划 HOT 1
- [Bug] Build Debug version And Run unexpectedly HOT 14
- [Bug] 账号设置页面绑定错误 HOT 1
- [Bug] Minecraft 新版本更新延迟
- [Bug] 启动器新版本无法使用 HOT 2
- [Bug] can‘t open the minecraft HOT 3
- [Bug] 登录时出现的报错:System.Runtime.InteropServices.COMException (0x8001010E) HOT 4
- Error HOT 1
- [Feature] 允许在任务栏快捷启动项目中固定某些版本来快速启动,在启动后隐藏启动器界面静默启动 HOT 13
- [Feature/#26]Modrinth support HOT 4
- [Feature] 自定义安装路径 HOT 1
- [Bug] 搜索 Carpet 模组时报错 HOT 4
- [Bug] SearchJava Exception HOT 2
- [Bug] HOT 7
- [Feature]资源搜索支持中文 HOT 1
- [Bug] 无法登录/刷新微软账户 HOT 2
- fluent is not working
- [Bug] HOT 2
- Failed To Fetch Account List HOT 2
- FluentLauncher crashes when adding .minecraft folder
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from natsurainko.fluentlauncher.