Coder Social home page Coder Social logo

Comments (7)

xingxing2008 avatar xingxing2008 commented on August 20, 2024

这个问题之前也有人报过,但一直不清楚是你的网络问题还是程序上的问题,建议同时用同一账号使用友商的启动器测试是否能登录。如果不能,就是你本机的网络问题,如果可以,请麻烦提供更多信息

from natsurainko.fluentlauncher.

Myb-Wannyn avatar Myb-Wannyn commented on August 20, 2024

+1

from natsurainko.fluentlauncher.

xingxing2008 avatar xingxing2008 commented on August 20, 2024

+1

请你测试一下你当前网络环境是否能正常链接微软和Mojang。如果可以,请你提供更多信息

from natsurainko.fluentlauncher.

gaviny82 avatar gaviny82 commented on August 20, 2024

image
这里AuthenticateAsync里面出现了NullReferenceException,应该是FluentCore这个方法里面的问题,我在设置里添加账户是没问题的

from natsurainko.fluentlauncher.

xingxing2008 avatar xingxing2008 commented on August 20, 2024

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.

gaviny82 avatar gaviny82 commented on August 20, 2024

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.

GHOSTEEEEEER avatar GHOSTEEEEEER commented on August 20, 2024

我也是这样
网络环境没有问题,mojang和微软均可以正常连接

from natsurainko.fluentlauncher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.