PrismarineJS / node-minecraft-protocol

Parse and serialize minecraft packets, plus authentication and encryption.
https://prismarinejs.github.io/node-minecraft-protocol/
BSD 3-Clause "New" or "Revised" License
1.2k stars 241 forks source link

Error: Failed to obtain profile data for X, does the account own minecraft? #1295

Open lasherna opened 3 months ago

lasherna commented 3 months ago

[ ] The FAQ doesn't contain a resolution to my issue

Versions

Detailed description of a problem

Error: Failed to obtain profile data for redated@redated.com, does the account own minecraft? at Object.authenticate (/redated/redatedt/node_modules/minecraft-protocol/src/client/microsoftAuth.js:31:40) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Using microsoft account to login after a few days of using the bot I get the error that the account doesn't own the game, the only temporary (and not 100% of the time) fix is deleting the .minecraft/npm-cache files, stoping and starting the script doesn't fix.

Additional context

Only happens on one of the accounts, the migrated/old one doesn't have that problem.