Jump to content
McKay Development

An error occurred while setting account details


Avolis

Recommended Posts

Consider myBoolToNormal is false.
 
a = 0;
InitializeProject();
Myfunction();
 
function Myfunction(){
   
    (community.loggedIn((err, log) =>{
        if(log == true){
            console.log("logged in");
            if (myBoolToNormal) {
                community.editProfile({
                    name: names[a]
                });
                community.uploadAvatar("C:/Users/Okan/Desktop/Desktop Authenticators/Enes/Images/"+ a +".jpg")
                console.log("sucess");
            }
            else{
       
                community.editProfile({
                    name: names[a] + "something",  
                }, (err) => {
                    if(err){
                        throw err;
                    }
                    else{
                        community.uploadAvatar("C:/Users/Okan/Desktop/Desktop Authenticators/Enes/Images/avatarToPut.jpg","jpg", (err, url) =>{
                            if(err){
                                throw err;
                            }              
                            else{
                                console.log("success");
                                a++;
                                InitializeProject();
                                Myfunction();
                            }
                           
                        });          
                    }
                })  
            }
 
        }
        else{
            Myfunction();
            console.log("running again");
        }
    }))
}
 
async function InitializeProject() {
    community =  new SteamCommunity();
    await community.setCookies([cookies[a]]);
}
 
 
 
When I run the code I get this error.
 
 
Uncaught Error Error: An error occurred while setting account details<br /> at <anonymous> (c:\Users\Okan\node_modules\steamcommunity\components\profile.js:151:15) at <anonymous> (c:\Users\Okan\node_modules\steamcommunity\components\http.js:67:15) at self.callback (c:\Users\Okan\node_modules\request\request.js:185:22) at emit (events:513:28) at <anonymous> (c:\Users\Okan\node_modules\request\request.js:1154:10) at emit (events:513:28) at <anonymous> (c:\Users\Okan\node_modules\request\request.js:1076:12) at onceWrapper (events:627:28) at emit (events:513:28) at endReadableNT (internal/streams/readable:1359:12) at processTicksAndRejections (internal/process/task_queues:82:21) --- TickObject ---
 
 
It's a very long error actually I put only the beggining of it.
 
 
I also get another error sometimes.
 
Uncaught SyntaxError SyntaxError: Unexpected token < in JSON at position 0 at <anonymous> (c:\Users\Okan\node_modules\steamcommunity\components\profile.js:149:21) at <anonymous> (c:\Users\Okan\node_modules\steamcommunity\components\http.js:67:15) at self.callback (c:\Users\Okan\node_modules\request\request.js:185:22) at emit (events:513:28) at <anonymous> (c:\Users\Okan\node_modules\request\request.js:1154:10) at emit (events:513:28) at <anonymous> (c:\Users\Okan\node_modules\request\request.js:1076:12) at onceWrapper (events:627:28) at emit (events:513:28) at endReadableNT (internal/streams/readable:1359:12) at processTicksAndRejections (internal/process/task_queues:82:21) --- TickObject ---
Edited by Avolis
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...