Jump to content
McKay Development

Search the Community

Showing results for tags 'error'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News & Announcements
    • Releases & Updates
  • Help & Support
    • General
    • Guides
    • node-steam-user
    • node-steamcommunity
    • node-steam-tradeoffer-manager
    • node-steam-session

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Skype


Location


Interests

Found 14 results

  1. I'm trying to reconnect the user and I'm handling all possible errors. As you can see in the logs, the first module I wrote in the stack trace is `SteamAccountClient.login()`, which calls `client.logOn() (a method from steam-user)` This image shows the code for `SteamAccountClient.login()`. It's wrapping `client.logOn()` in a try-catch block, so no error should've be thrown. I noticed an internal use of the `logOn()` method within a timeout, but without any try-catch block. This could be why my app is crashing, even though it's shown in the stack trace.
  2. Hey! I'm trying to make some requests with httpProxy, but I'm facing issues already with the initial connection. This is my code: import SteamUser from 'steam-user'; const client = new SteamUser({ httpProxy: 'http://USER:[email protected]:60000', // webCompatibilityMode: true, }); client.on('debug', (msg) => console.log(msg)); client.logOn({ anonymous: true }); client.on('loggedOn', async function (details) { console.log('Logged into Steam as ' + client.steamID.getSteam3RenderedID()); console.log('with public ip: ' + client.publicIP); client.logOff(); process.exit(); }); I'm using Node v16.20.2 and compared an older version of steam-user (4.19.4) and newer version (5.0.4) with a same/similar result. 4.19.4 debug log: [T1] Connecting to TCP CM: 205.196.6.214:27018 and stays stuck here. 4.19.4 debug log with webCompatibilityMode: true: Forcing protocol to EConnectionProtocol.WebSocket because webCompatibilityMode is enabled [W1] Randomly chose WebSocket CM ext3-sto2.steamserver.net:27024 [W1] WebSocket disconnected with error: unable to get local issuer certificate [W1] Handling connection close and keeps repeating a similar message over and over again. 5.0.4 debug log: GetCMListForConnect error: unable to get local issuer certificate Emitted 'error' event on SteamUser instance at: at SteamUser._doConnection (/node_modules/.pnpm/[email protected]/node_modules/steam-user/components/09-logon.js:299:10) at processTicksAndRejections (node:internal/process/task_queues:96:5) { code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY', proxyConnecting: false Repeats the first line few times and then throws the error. 5.0.4 debug log with webCompatibilityMode: true: Forcing protocol to EConnectionProtocol.WebSocket because webCompatibilityMode is enabled GetCMListForConnect error: unable to get local issuer certificate Emitted 'error' event on SteamUser instance at: at SteamUser._doConnection (/node_modules/.pnpm/[email protected]/node_modules/steam-user/components/09-logon.js:299:10) at processTicksAndRejections (node:internal/process/task_queues:96:5) { code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY', proxyConnecting: false Repeats the first 2 lines few times and then throws the error. I'd happily provide any more details if necessary. I would really appreciate any directions or insight into what might cause the issue.
  3. node_modules/steam-user/components/helpers.js:247 let parts = jwt.split('.'); ^ TypeError: jwt.split is not a function
  4. This happens when requiring the steam-user package. I've tried installing the lzma package manually and using different versions of node but still nothing. I'm pretty new to this stack as a whole so please be nice, just trying to get the package to work.
  5. Could i have some help with the Access denied error when using getEncryptedAppTicket The problem i am having is that getEncryptedAppTicket returns Access Denied Also clientSteam.accountName returns undefined even though clientSteam.steamID is returning a Valid User ID Code Below: clientSteam.logOn({ 'accountName': username, 'password': password }); clientSteam.on('loggedOn', details => { console.log('[Steam]: Signed into Steam as ' + clientSteam.steamID + '.' + ' ' + clientSteam.accountName ); clientSteam.getEncryptedAppTicket(AppId, null, (err, ticket) => { if (err) { console.log("[Steam]: AppTicket error: " + err); return; }
  6. calling getManifest returns the error: Error: Fail at Object.exports.eresultError (test\node_modules\steam-user\components\helpers.js:96:12) at SteamUser.<anonymous> (test\node_modules\steam-user\components\cdn.js:155:27) at SteamUser._handleMessage (test\node_modules\steam-user\components\messages.js:629:34) at SteamUser._handleNetMessage (test\node_modules\steam-user\components\messages.js:552:7) at SteamUser._processMulti (test\node_modules\steam-user\components\messages.js:676:8) { eresult: 2 } ^ this seems to be an issue with "getCDNAuthToken" as when we're simply calling getManifest(730, 731, manifestid, (result) => { console.log(e) }) simply returns the error "eresult: 2"
  7. I have copied this code and need help what i need to change to make it work... Items that bot is requiring opponent has, so the item is existing and if the guy doesnt have the item, console says that. I got this error and dont know why.. . the script is here if(isNaN(amount) || amount === undefined){ console.log('invalid number'); } else{ var count = 0; var i = 0; console.log("Creating Offer, please wait!"); //Check Players inventory for the keys, and make sure we have enough sets to supply var offer = manager.createOffer(_message); offer.getPartnerInventoryContents(440, 2, function(err, inventory, currencies){ if(err){ console.log(err); } var a = []; for(var i = 0; i < inventory.length; ++i){ if(inventory.market_hash_name == 'Refined Metal' && a.length < amount){ console.log("Adding Item"); a.push(inventory.id); offer.addTheirItem({id: inventory.id, appid: 440, contextid: 2}); console.log("Length of a "+a.length); console.log(a); ++count; } } inventory.forEach(function(val){ if(val.market_hash_name == 'Refined Metal'){ console.log("Adding Item"); offer.addTheirItem({id: val.instanceid, appid: 440, contextid: 2}); ++count; } }); if(count < amount){ console.log("count: "+count); console.log("You don't have enough keys for me to send this trade."); } else{ offer.send(function(err, status){ if(err){ console.log(err); console.log("An Error has Occured while sending offer."); } if(status == "pending"){ console.log("Confirming Offer!"); } if(status == "sent"){ console.log("Offer Sent!"); } }); } }); }
  8. I'm trying to compile "Unrestricted FOV" plugin but I'm getting the following error: Can you help me, please?)
  9. I am trying to set cookies for two different bots running in the same file, and when I get to the second bot, the script errors: Error: Access Denied at SteamCommunity.<anonymous> (C:\Users\easto\node_modules\steamcommunity\components\webapi.js:15:20) at Request._callback (C:\Users\easto\node_modules\steamcommunity\components\http.js:67:15) at Request.self.callback (C:\Users\easto\node_modules\request\request.js:185:22) at emitTwo (events.js:126:13) at Request.emit (events.js:214:7) at Request.<anonymous> (C:\Users\easto\node_modules\request\request.js:1161:10) at emitOne (events.js:116:13) at Request.emit (events.js:211:7) at Gunzip.<anonymous> (C:\Users\easto\node_modules\request\request.js:1083:12) at Object.onceWrapper (events.js:313:30) The second bot successfully logins, it only errors when setting the cookies for the second bot.
  10. Hello world :3. I'm trying to catch any posible error output when i login. First i tried with try catch, but it didn't work in any way i tried, then investigating i got to know that it needed to be done by adding an event listener to the error event, but when i try to implement the event listener, i get the error that evenlistener is not a function: client.logOn.addEventListener("error", function(err) { if ( err ) { console.log('Critical error!!!!! '+ err + ' Check data of:'+client.steamID) } }, true); Since i already did this post, i'll add one more question; How can i call the value from a diferent place, for example if i want to show the value of "limited" from client.on('accountLimitations'), and call it in a fs.writefile that i have inside client.on('loggedOn', i have to do it by making a global.limited, or how can i?, the other way i tried was client.accountLimitations.limited, but it always gets a undefined or null result. Sorry for the bother and noob questions :v Thanks for taking the time to read my problem. Have a great day.
  11. Hello I wrote a bot, I put it on hosting and when I turn on the bot I have this error. How to fix it?
  12. I get a number of different errors when running the bot and they are always to do with the offers. This is what I have so far with the new offer for a stranger and the owner offer stuff. Just to let anyone know this bot sells TF2 Scrap for Steam Emoticons. The Code: manager.on('newOffer', (offer) => { let counter = 0 if (offer.itemsToGive.length == offer.itemsToReceive.length) { for (let i = 0; i < offer.itemsToGive.length; i++) { if (offer.itemsToReceive[i].type.includes("Emoticon") && offer.itemsToGive[i].name == "Scrap Metal") { counter++ } } if (counter == offer.itemsToGive.length) { offer.accept(function(err, status) { if (err) { console.log("Unable to accept offer: " + err.message); } else { console.log("Offer accepted: " + status); if (status == "pending") { community.acceptConfirmationForObject(config.identity, offer.id, function(err) { if (err) { console.log("Can't confirm trade offer: " + err.message); } else { console.log("Trade offer " + offer.id + " confirmed"); } }) } } }) } } else if (offer.itemsToGive.length == 0){ offer.accept((err, status) => { if (err) { console.log(err); } else { console.log(`Donation accepted. Status: ${status}.`); } }); } else { offer.decline(err => { if (err) { console.log(err); } else { console.log('Donation declined (wanted our items).'); } }); } }); //owner send trade, bot instantly accepts manager.on('newOffer', (offer) => { if (offer.partner.getSteamID64() === config.ownerID) { acceptOffer(offer); console.log("Successfully accepted") } else { delcineOffer(offer); } }); Some examples of errors I get, "Cannot read property 'partner' of undefined" that error is from the owner code. Then when removing that code the bot works, but it means I cannot send trades as the owner with out logging onto the bot's account and accepting it manually. I hope someone can help me. Thanks Unmet
  13. Sometimes when i use getUserDetails(), i receive the error: has declined your trade request. why i'm getting this error, and how may i avoid this?
  14. Hello, When I send offer i get error: "callback is not a function" in steam-tradeoffer-manager/lib/helpers.js in 45 line. That is my code: function sendOffer(customer, bot, customerItems, botItems) { var botInventory = manager.getUserInventoryContents(customer, 753, 6, true, function(err, inventory, currencies) { return inventory; }); var customerInventory = manager.getUserInventoryContents(bot, 753, 6, true, function(err, inventory, currencies) { return inventory; }); var Exchange = manager.createOffer(customer); var message = "Thank You for trading with me. Here's your cards. This offer expires in 10 minutes."; var ExchangeBot = GetExchangeItems(botInventory, botItems); var ExchangeUser = GetExchangeItems(customerInventory, customerItems); Exchange.addTheirItems(ExchangeUser); Exchange.addMyItems(ExchangeBot); Exchange.send(message, 'Dh58A2w', function(err, status) { console.log('Exchange ID:' + Exchange.id + ' send: ', status); }); } And I have second question. How to send offers to friends without token?
×
×
  • Create New...