Giter Club home page Giter Club logo

Comments (4)

itsneyoa avatar itsneyoa commented on May 27, 2024 1

Turns out its an issue with the Microsoft account being type 'child' (<18), so changing the age on the account to anything over 18 works!

from hypixel-discord-chat-bridge.

Senither avatar Senither commented on May 27, 2024

Hi itsneyoa,

From reading through PrismarineJS/mineflayer#1549 and PrismarineJS/mineflayer#1577 the issue is most likely related to Mineflayer being out of date, I've gone ahead and updated the app to use the latest version of Mineflayer in the fcdc7b4 commit, so hopefully, all you'd need to do is update the app with a git pull to get the changes, and run yarn install to get the new versions of the dependencies.
I don't personally own a Microsoft Minecraft account so I can't actually test if this fixes your issue, however, let me know if it works out for you. 👍

from hypixel-discord-chat-bridge.

itsneyoa avatar itsneyoa commented on May 27, 2024

Hi,

Updating mineflayer prompted you to login with your microsoft account when running node index.js for the first time, however after that I get this chaos:

Discord client ready, logged in as Trouble Bridge#4465
Unable to authenticate with Microsoft XboxReplayError: Request failed with status code 401
    at Object.internal (~\Hypixel-Bridge\node_modules\@xboxreplay\errors\dist\index.js:33:77)
    at ~\Hypixel-Bridge\node_modules\@xboxreplay\xboxlive-auth\dist\core\xboxlive\index.js:79:32
    at processTicksAndRejections (node:internal/process/task_queues:93:5)
    at async Object.authenticatePassword (~\Hypixel-Bridge\node_modules\minecraft-protocol\src\client\microsoftAuth.js:70:21) {
  __XboxReplay__: true,
  details: { statusCode: 500, reason: 'INTERNAL_SERVER_ERROR' }
}
Retrying auth with device code flow
XboxReplayError: Request failed with status code 401
    at Object.internal (~\Hypixel-Bridge\node_modules\@xboxreplay\errors\dist\index.js:33:77)
    at ~\Hypixel-Bridge\node_modules\@xboxreplay\xboxlive-auth\dist\core\xboxlive\index.js:79:32
    at processTicksAndRejections (node:internal/process/task_queues:93:5)
    at async XboxTokenManager.getXSTSToken (~\Hypixel-Bridge\node_modules\minecraft-protocol\src\client\tokens.js:216:18)
    at async retry.msa.forceRefresh (~\Hypixel-Bridge\node_modules\minecraft-protocol\src\client\authFlow.js:105:22)
    at async retry (~\Hypixel-Bridge\node_modules\minecraft-protocol\src\client\authFlow.js:26:14)
    at async MsAuthFlow.getXboxToken (~\Hypixel-Bridge\node_modules\minecraft-protocol\src\client\authFlow.js:102:14)
    at async retry.xbl.forceRefresh (~\Hypixel-Bridge\node_modules\minecraft-protocol\src\client\authFlow.js:118:22)
    at async retry (~\Hypixel-Bridge\node_modules\minecraft-protocol\src\client\authFlow.js:26:14)
    at async MsAuthFlow.getMinecraftToken (~\Hypixel-Bridge\node_modules\minecraft-protocol\src\client\authFlow.js:117:14) {
  __XboxReplay__: true,
  details: { statusCode: 500, reason: 'INTERNAL_SERVER_ERROR' }
}
Minecraft Bot Error:  XboxReplayError: Request failed with status code 401
    at Object.internal (~\Hypixel-Bridge\node_modules\@xboxreplay\errors\dist\index.js:33:77)
    at ~\Hypixel-Bridge\node_modules\@xboxreplay\xboxlive-auth\dist\core\xboxlive\index.js:79:32
    at processTicksAndRejections (node:internal/process/task_queues:93:5)
    at async XboxTokenManager.getXSTSToken (~\Hypixel-Bridge\node_modules\minecraft-protocol\src\client\tokens.js:216:18)
    at async retry.msa.forceRefresh (~\Hypixel-Bridge\node_modules\minecraft-protocol\src\client\authFlow.js:105:22)
    at async retry (~\Hypixel-Bridge\node_modules\minecraft-protocol\src\client\authFlow.js:26:14)
    at async MsAuthFlow.getXboxToken (~\Hypixel-Bridge\node_modules\minecraft-protocol\src\client\authFlow.js:102:14)
    at async retry.xbl.forceRefresh (~\Hypixel-Bridge\node_modules\minecraft-protocol\src\client\authFlow.js:118:22)
    at async retry (~\Hypixel-Bridge\node_modules\minecraft-protocol\src\client\authFlow.js:26:14)
    at async MsAuthFlow.getMinecraftToken (~\Hypixel-Bridge\node_modules\minecraft-protocol\src\client\authFlow.js:117:14) {
  __XboxReplay__: true,
  details: { statusCode: 500, reason: 'INTERNAL_SERVER_ERROR' }

I've tried npm update to see its any of the other packages which out out of date with no luck so far
Thanks :)
- ney

from hypixel-discord-chat-bridge.

Senither avatar Senither commented on May 27, 2024

From the looks of the error message, you're getting a 401 response code which is an unauthorized request, it most likely means your login details don't match up with what your actual account uses. There is also a 500 response code in the error message tho, which an internal server error, so it could also just be an issue with logging in using a Microsoft account.

from hypixel-discord-chat-bridge.

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.