Jump to content
McKay Development

rektbot

Member
  • Posts

    34
  • Joined

  • Last visited

Posts posted by rektbot

  1. I am seeing this 302 issue however the information is still being updated correctly. eg. name/customurl/avatar. go figure?

    function updateProfile() {
    
        // PROFILE SETTINGS---------------------------------------------------------
        DEBUG && console.log("UPDPROF:   Setting Name & CustomURL");
        community.editProfile({
            "name": accName,
            "customURL": accCustomURL,
        }, function(err){
            if (err) {
                DEBUG && console.log("UPDPROF:   Error Occured - " + err);
                accWithError = true;
                profileDone = true;
            }
            else {
                DEBUG && console.log("UPDPROF:   Name & CustomURL Updated!");
                profileDone = true;
            }
        });
    
  2. Hi There,

     

    Having a callback issue with the changeEmail command. Any help would be very appreciated.

     

    Code: (logOnOptions removed)

    function ChangeEmail(password){
            client.changeEmail(password, myemail, function(err) {
            console.log(err);
            emailDone = true; // just a poor handler, still get error without it.
    });
    }
    
    client.logOn(logOnOptions);
    client.on('loggedOn', function() { console.log("Logged into Steam"); ChangeEmail(password); });  
     

    Error:

    /node_modules/steam-user/components/account.js:143
                            callback(Helpers.eresultError(body.eresult));
                            ^
    TypeError: callback is not a function
    
    

    I have also tried simplifying to:

    client.changeEmail(password, myemail);
    
    
×
×
  • Create New...