Jump to content


Photo

getting error in callback function getTradeURL

node.js node-steam-user

Best Answer Dr. McKay , 29 May 2019 - 08:26 PM

Run npm update and it will throw properly.

Go to the full post


  • Please log in to reply
3 replies to this topic

#1 MrPotato

MrPotato

    Advanced Member

  • Member
  • PipPipPip
  • 66 posts

Posted 28 May 2019 - 11:05 PM

client.getTradeURL(function(err, details) {
     if(err) return console.log("error: " + err);
     console.log(badvar);
});

log:

error: ReferenceError: badvar is not defined



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,212 posts

Posted 29 May 2019 - 12:54 AM

I would hazard a guess that badvar is not defined.



#3 MrPotato

MrPotato

    Advanced Member

  • Member
  • PipPipPip
  • 66 posts

Posted 29 May 2019 - 11:36 AM

yes, but when i get error inside the function, the function calls again with err



#4 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,212 posts

Posted 29 May 2019 - 08:26 PM   Best Answer

Run npm update and it will throw properly.


  • MrPotato likes this





Also tagged with one or more of these keywords: node.js, node-steam-user

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users