CSGO---Discord-RichPresence
CSGO---Discord-RichPresence copied to clipboard
[bug] - Client keeps timing out
I followed the setup instructions to the dot and after doing node index
the console waits for a little bit and spits out an error that looks like this:
Error: RPC_CONNECTION_TIMEOUT
at Timeout._onTimeout (D:\Documents\CSGO---Discord-RichPresence-master\node_modules\discord-rpc\src\Client.js:99:47)
at listOnTimeout (internal/timers.js:531:17)
at processTimers (internal/timers.js:475:7)
I can't think of anything I did wrong. I have the correct steam API key, AuthToken, and Client ID.
From what I can tell this is caused if you run Discord as Admin but not the script.
If this is the case here, try to run Discord either as non-admin or launch the command prompt as admin.
Yeah, I tried to do that, but still coming up with the same error.
What is your NodeJS version? node -v
v12.6.0
Discord Canary, PTB or Stable?
Discord console says Stable
Try upgrading the discord-rpc
module using npm i discord-rpc
, then simply retry.
Ok, so I did that, but along with the previous error it gave me this below it too:
(node:7720) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:7720) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I'm not good at node, so I'm not entirely sure what that means
Go into the index.js
file and at the very very bottom add a new line with process.on("unhandledRejection", console.log);
It should output a more detailed error.
Still the same error as before
I sadly have no idea what the cause of this could be. I will upgrade the discord-rpc
module to the latest version at some point in the future and hope your issue will vanish then.
Until then leave this issue open.
Alright, thanks for your time; will be sure to watch for new commits soon
The "some point in the future" turned into an hour instead. f2f9ccf9b26f97446343830cfe2ba5e04b84e025
Try deleting the entire previous version, redownloading it and running it now. I have little hope that this fixed your problem but maybe?
So I downloaded the new commit and tried just about everything I could think of as to why Discord would time out; Added firewall rules to allow the connection, changed my network type, tried Ethernet instead of WiFi. But it still refuses to work, returning the same error at the same line of code :/
I have no idea what the problem could be in this case. The error seems to be rare so there is little information about it.
This is just a warning, not an actual error.