question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Couldn't connect to Discord via RPC:

See original GitHub issue

I tried to use vscord but when trying to edit code it says: Couldn't connect to Discord via RPC: RPC_CONNECTION_TIMEOUT: Connection timed out

I do have the necessary settings enabled in discord: image

Heres the exact error log:

[6:23:15 PM] [INFO] Discord Rich Presence for VS Code activated.
[6:23:15 PM] [INFO] Registered Discord Rich Presence commands
[6:23:25 PM] [ERROR] Encountered following error while trying to login: RPC_CONNECTION_TIMEOUT: Connection timed out
    at Ma.login (c:\Users\kuezy\.vscode-insiders\extensions\leonardssh.vscord-5.0.10\node_modules\@xhayper\discord-rpc\dist\Client.js:250:20)
    at new Qi (c:\Users\kuezy\.vscode-insiders\extensions\leonardssh.vscord-5.0.10\src\controller.ts:34:14)
    at Object.<anonymous> (c:\Users\kuezy\.vscode-insiders\extensions\leonardssh.vscord-5.0.10\src\extension.ts:10:20)
    at Module.u._compile (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\loader.js:4:1313)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1220:10)
    at Module.load (node:internal/modules/cjs/loader:1035:32)
    at Module._load (node:internal/modules/cjs/loader:876:12)
    at Function.c._load (node:electron/js2c/asar_bundle:5:13343)
    at Function.r._load (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:120:13363)
    at Function.w._load (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:115:61309)
    at Function.v._load (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:115:60713)
    at Module.require (node:internal/modules/cjs/loader:1059:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Function.r [as __$__nodeRequire] (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\loader.js:5:101)
    at d.rb (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:115:62572)
    at async Promise.all (index 0)
[6:23:25 PM] [INFO] [002] Destroyed Discord RPC client
[6:23:25 PM] [INFO] Successfully logged in to Discord with client ID 782685898163617802

When looking at the discord client ID it says 782685898163617802 which is not my client id…

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:47 (9 by maintainers)

github_iconTop GitHub Comments

4reactions
xhaypercommented, Dec 2, 2022

GAAAAAHHHHHH!!! THIS BUG HAUNTED ME EVERYDAY!!!

2reactions
Roxas-Altcommented, Dec 8, 2022

ctrl + shift + p Then use: “developer:reload Window”

This fix the problem ( in my pc )

Read more comments on GitHub >

github_iconTop Results From Across the Web

Couldn't connect to Discord via RPC: Error: Could not connect
Open Discord user settings · Click Activity Status · Ensure "Display current activity as a status message" is enabled · Right-click Discord in...
Read more >
Couldn't connect to Discord via RPC [vscode]
My Problem. Couldn't connect to Discord via RPC. My Solution. remove vscode from flatpak or snap; remove discord from faltpak or discord ...
Read more >
Couldn't connect to discord via discord RPC - Stack Overflow
Whenever I try to run my discord.js bot, my code editor says that it couldn't connect to discord via discord RPC. I've looked...
Read more >
discord-vscode - Bountysource
I use Linux(ubuntu) and not connect vscode Discord. ... Couldn't connect to Discord via RPC: Error: Could not connect (On Pop!_OS 22.04 LTS)...
Read more >
[Solved]-Couldn't connect to discord via discord RPC-discord.js
Coding example for the question Couldn't connect to discord via discord RPC-discord.js.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found