You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What I am trying to do:
Post a comment on a user's profile. Expected behaviour:
The comment gets successfully posted OR I get an error callback in case something bad happened. Actual behaviour:
The comment does not get posted and I do not get an error callback, not even null. But not only that, I do not get any callback at all. Just like console.log or if-else don't exist; i.e. 'some error' or 'no error' are not printed. What's weird is that this piece of the code has worked flawlessly until I updated my NodeJS (or node-steamcommunity (or both)) to the most recent version(s). Additional notes:
I am sure this code worked before the updates. I have made no changes to the code. However, I am unsure if the bug is related to NodeJS itself or node-steamcommunity. I wish I could debug it myself, but I have no experience in debugging NodeJS codes. Code itself:
constSteamUser=require('steam-user');constclient=newSteamUser();varSteamCommunity=require('steamcommunity');varcommunity=newSteamCommunity();//*some code unrelated to callbacks and node-steamcommunitycommunity.postUserComment('765611XXXXXXXXXXX','some funny comment',err=>{if(err){console.log('some error')console.log(err)}else{console.log('no error')}});
The text was updated successfully, but these errors were encountered:
There is no code path that wouldn't result in the callback being invoked (provided it's been supplied). I suspect there was some bug in the Node.js 13.x version you tried.
Did you have any trouble with any other callbacks?
What I am trying to do:
Post a comment on a user's profile.
Expected behaviour:
The comment gets successfully posted OR I get an error callback in case something bad happened.
Actual behaviour:
The comment does not get posted and I do not get an error callback, not even null. But not only that, I do not get any callback at all. Just like console.log or if-else don't exist; i.e. 'some error' or 'no error' are not printed. What's weird is that this piece of the code has worked flawlessly until I updated my NodeJS (or node-steamcommunity (or both)) to the most recent version(s).
Additional notes:
I am sure this code worked before the updates. I have made no changes to the code. However, I am unsure if the bug is related to NodeJS itself or node-steamcommunity. I wish I could debug it myself, but I have no experience in debugging NodeJS codes.
Code itself:
The text was updated successfully, but these errors were encountered: