Skip to content

403 Forbidden When Titles.MinecraftJava #140

@Bishops-exe

Description

@Bishops-exe
  • The readme doesn't contain a resolution to my issue
  • The example doesn't contain a resolution to my issue

Versions

  • electron-version: 39.2.3
  • prismarine-auth: 2.7.0

Detailed description of a problem

(node:39776) UnhandledPromiseRejectionWarning: Error: 403 Forbidden {}
at checkStatus (C:\Users\adria\Documents\Launch-mc\node_modules\prismarine-auth\src\common\Util.js:10:11)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async XboxTokenManager.getTitleToken (C:\Users\adria\Documents\Launch-mc\node_modules\prismarine-auth\src\TokenManagers\XboxTokenManager.js:258:17)
at async retry.msa.forceRefresh (C:\Users\adria\Documents\Launch-mc\node_modules\prismarine-auth\src\MicrosoftAuthFlow.js:179:58)
at async retry (C:\Users\adria\Documents\Launch-mc\node_modules\prismarine-auth\src\MicrosoftAuthFlow.js:26:14)
at async MicrosoftAuthFlow.getXboxToken (C:\Users\adria\Documents\Launch-mc\node_modules\prismarine-auth\src\MicrosoftAuthFlow.js:166:12)
at async retry.xbl.forceRefresh (C:\Users\adria\Documents\Launch-mc\node_modules\prismarine-auth\src\MicrosoftAuthFlow.js:195:22)
at async retry (C:\Users\adria\Documents\Launch-mc\node_modules\prismarine-auth\src\MicrosoftAuthFlow.js:26:14)
at async MicrosoftAuthFlow.getMinecraftJavaToken (C:\Users\adria\Documents\Launch-mc\node_modules\prismarine-auth\src\MicrosoftAuthFlow.js:194:7)
(Use electron --trace-warnings ... to show where the warning was created)
(node:39776) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 16)

Your current code

const flow = new prismareineauth.Authflow(
        generateRandomString(16),
        join(__dirname, "../auth"),
        {
            authTitle: prismareineauth.Titles.MinecraftJava,
            flow: "live",
        },
        (res) => {
            console.log(res);
        }
    );
    flow.getMinecraftJavaToken({ fetchProfile: true }).then(console.log);

Expected behavior

To Work

Additional context

Only happens on Titles.MinecraftJava

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions