Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] configureGamePass errors with 404 (Not Found) #784

Closed
phoriah opened this issue Mar 16, 2024 · 3 comments
Closed

[BUG] configureGamePass errors with 404 (Not Found) #784

phoriah opened this issue Mar 16, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@phoriah
Copy link

phoriah commented Mar 16, 2024

Describe the bug
A simple configureGamePass request errors with 404 (Not Found) status

To Reproduce

const noblox = require("noblox.js");

(async () => {
  await noblox.setCookie(""); // Add Cookie

  await noblox.configureGamePass(
    0, // Replace with Gamepass ID you have access to
    "Game Pass Title",
    "Game Pass Description",
    1234
  );
})();

Expected behavior
I expect it to update name, description and price of the gamepass under specified id.
This is probably due to the fact that Roblox overhauled their gamepass dashboard & API related to it.
Screenshots

            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: An unexpected error occurred with status code 404.
    at c:\DIR\node_modules\noblox.js\lib\games\configureGamePass.js:127:15
    at tryCatcher (c:\DIR\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (c:\DIR\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (c:\DIR\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (c:\DIR\node_modules\bluebird\js\release\promise.js:649:10)
    at Promise._settlePromises (c:\DIR\node_modules\bluebird\js\release\promise.js:729:18)
    at _drainQueueStep (c:\DIR\node_modules\bluebird\js\release\async.js:93:12)
    at _drainQueue (c:\DIR\node_modules\bluebird\js\release\async.js:86:9)
    at Async._drainQueues (c:\DIR\node_modules\bluebird\js\release\async.js:102:5)
    at Async.drainQueues [as _onImmediate] (c:\DIR\node_modules\bluebird\js\release\async.js:15:14)
    at process.processImmediate (node:internal/timers:478:21)```
@Neztore
Copy link
Member

Neztore commented Apr 6, 2024

The API being used:

url: '//www.roblox.com/game-pass/update',

Will have been removed as you suggest. Do you know what the new API is?

@Neztore Neztore added the bug Something isn't working label Apr 6, 2024
@phoriah
Copy link
Author

phoriah commented Apr 18, 2024

The API being used:

url: '//www.roblox.com/game-pass/update',

Will have been removed as you suggest. Do you know what the new API is?

I think they POST to https://apis.roblox.com/game-passes/v1/game-passes/{GAMEPASSID}/details with Payload Options such as:
IsForSale, Price, Name, Description
You could do further testing by going to https://create.roblox.com/dashboard/creations and click on any experience on a logged-in account (all accounts have at least one experience) then under Monetization click Passes and create any test pass while monitoring the network tab, as well as updating info on the gamepass after it's creation.

@Regalijan
Copy link
Member

This was fixed in #813

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants