sentanos / roblox-js

!!!THIS PROJECT IS NO LONGER MAINTAINED!!! Execute ROBLOX website actions in node.js
MIT License
45 stars 45 forks source link

Error while sending message #94

Closed safazi closed 6 years ago

safazi commented 6 years ago
Unhandled rejection Error: Message failed
    at C:\Users\User\node_modules\roblox-js\lib\user\message.js:37:13
    at tryCatcher (C:\Users\User\node_modules\bluebird\js\release\util.js:16:23)

    at Promise._settlePromiseFromHandler (C:\Users\User\node_modules\bluebird\js
\release\promise.js:512:31)
    at Promise._settlePromise (C:\Users\User\node_modules\bluebird\js\release\pr
omise.js:569:18)
    at Promise._settlePromise0 (C:\Users\User\node_modules\bluebird\js\release\p
romise.js:614:10)
    at Promise._settlePromises (C:\Users\User\node_modules\bluebird\js\release\p
romise.js:693:18)
    at Async._drainQueue (C:\Users\User\node_modules\bluebird\js\release\async.j
s:133:16)
    at Async._drainQueues (C:\Users\User\node_modules\bluebird\js\release\async.
js:143:10)
    at Immediate.Async.drainQueues (C:\Users\User\node_modules\bluebird\js\relea
se\async.js:17:14)
    at runCallback (timers.js:651:20)
    at tryOnImmediate (timers.js:624:5)
    at processImmediate [as _immediateCallback] (timers.js:596:5)

all of my arguments are correct, and i am using a rbx.jar() sorry for bad formatting lmfao

Neztore commented 6 years ago

Can we see the code please

safazi commented 6 years ago
var rbx=require('roblox-js');

var username='redacted';
var password='redacted';

function login(){
    return rbx.login(username,password);
}

login().then(function(a){
    rbx.getCurrentUser('UserName').then(function(name){
        console.log(name);
    })
    rbx.message({recipient: redacted,subject:'whats brackin',body:'hi there buddy its me'}).then(function(){
        console.log('message sent');
    }).catch(function(err){
        console.log(err.message);
    });
});

logs to console: "Message failed" This means the status is not 200.

Neztore commented 6 years ago

I also cannot see your error. ROBLOX added a captcha for some messages. Ensure that you can msg that user on your account. (Manually)

On Sun, 18 Mar 2018, 18:41 safazi, notifications@github.com wrote:

var rbx=require('roblox-js');

var username='redacted'; var password='redacted';

function login(){ return rbx.login(username,password); }

login().then(function(a){ rbx.getCurrentUser('UserName').then(function(name){ console.log(name); }) rbx.message({recipient: redacted,subject:'whats brackin',body:'hi there buddy its me'}).then(function(){ console.log('message sent'); }).catch(function(err){ console.log(err.message); }); });

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/sentanos/roblox-js/issues/94#issuecomment-374030853, or mute the thread https://github.com/notifications/unsubscribe-auth/AYNwiX0Zl1KvSopHlYNt-fSZB2ngVVqWks5tfqpLgaJpZM4SvT9d .

safazi commented 6 years ago

i can send messages on that account. err.message is "Message failed"

safazi commented 6 years ago

Problem solved by manually sending a message on the account. All messages after that work fine.