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] Error when uploading item #681

Open
nottisa opened this issue Mar 2, 2023 · 3 comments
Open

[BUG] Error when uploading item #681

nottisa opened this issue Mar 2, 2023 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@nottisa
Copy link
Contributor

nottisa commented Mar 2, 2023

const fs = require("fs");

noblox.setCookie().then(function() { //Use COOKIE from our .env file.
    console.log("Logged in!")
}).catch(function(err) {
    console.log("Unable to log in!", err)
})


async function bob() {
    await noblox.uploadItem("test", 13, fs.createReadStream("./mage.png"))
}
bob()

Expected behavior
It should upload the image as a decal....

Error
I get this error:

              reject(new Error('Unknown redirect: ' + location))
                     ^

Error: Unknown redirect: https://www.roblox.com/request-error?id=a654406b-ff4d-450a-bad3-d64a433a22c9&mode=&code=500
    at /workspaces/plsdonatestuff/node_modules/noblox.js/lib/asset/uploadItem.js:64:22
    at tryCatcher (/workspaces/plsdonatestuff/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/workspaces/plsdonatestuff/node_modules/bluebird/js/release/promise.js:547:31)
    at Promise._settlePromise (/workspaces/plsdonatestuff/node_modules/bluebird/js/release/promise.js:604:18)
    at Promise._settlePromise0 (/workspaces/plsdonatestuff/node_modules/bluebird/js/release/promise.js:649:10)
    at Promise._settlePromises (/workspaces/plsdonatestuff/node_modules/bluebird/js/release/promise.js:729:18)
    at _drainQueueStep (/workspaces/plsdonatestuff/node_modules/bluebird/js/release/async.js:93:12)
    at _drainQueue (/workspaces/plsdonatestuff/node_modules/bluebird/js/release/async.js:86:9)
    at Async._drainQueues (/workspaces/plsdonatestuff/node_modules/bluebird/js/release/async.js:102:5)
    at Async.drainQueues (/workspaces/plsdonatestuff/node_modules/bluebird/js/release/async.js:15:14)
    at process.processImmediate (node:internal/timers:475:21)```
@Neztore
Copy link
Member

Neztore commented Nov 20, 2023

Could you look into this further? Has the API changed? have you managed to work around it?

@nottisa
Copy link
Contributor Author

nottisa commented Nov 20, 2023

I could, but at the moment I'm a bit lazy, I will probably come back to this project in a couple months... The internal API documentation has been removed, at least as far as I can tell...

@Neztore Neztore added bug Something isn't working help wanted Extra attention is needed labels Jan 6, 2024
@Neztore
Copy link
Member

Neztore commented May 18, 2024

We will deprecate this method and add the same functionality using open cloud

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

No branches or pull requests

2 participants