-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Couldn't connect to Discord via RPC: #145
Comments
Client ID is the id that VSCord use, not user id. |
Can you enable debug mode and send me the log? |
Alright i am getting this bug too |
alright you can try reconnecting it if it fix it |
And how can I reconnect the extension in VS code? |
ctrl + sift + p and there should be a reconmect command |
restart you discord then reconnect, see id it work |
what the hell... this is so weird, another weird bug to the list, you can try debug mode to see if anything good come up in output |
Uhh, if I just would know how to debug extensions xddd |
its in settings |
Yep, got it. Here you go:
|
i know that it's super annoying and stuff, but i can't get it to re-produce it on my mac machine WHICH is really a bad sign on fixing this bug, i really can't figure out what cause it it all, i also use astro on my project and the same bug didn't happened. I think this extension is haunted. |
same on my windows machine, everything just works, it's really weird. |
The funniest part is that it did start to happen after one of updates, it's not like problem on my side that's the funniest part and I have no idea what does it happens. I also managed like 2 times to make it work, like the extension was running somehow, BUT after disconnecting it of discord etc i couldnt reconnect it no matter what cause I was getting the error that I did show you in my previous comment. Ye, this extension has hard time ngl. I started to use it cause of Astro files, but welp I can't even use it anymore hah. |
Stranger things I'd say then hah, it's so weird. |
I also have no idea on my side either |
Can use send your exact windows version and also the exact vscode / vscodium / vsinsider build numbers you can get windows version by doing Idk if I can recreate it by going to your version of things. But working fine for me on windows so semi confused why this is happening |
@xhayper to hackly recreate this you can just spam the hell outta disconnecting and reconnecting eventually you will get a error for disconnecting when going to reconnect it wont fully reconnect. It got something to do with the client not fully destorying the rpc when it errors. Making it stuck in a loop where it can send presence or reconnect because it is disabeld. Tryied to see if the A check could be added to |
when an error happened the whole discord rpc lib would die... right? |
Yes but no not when the timeout happens. It somehow doesn't. For some reason it just like nope and is still active but not active |
Im now getting this now sometimes as well interesting
will send the log file to you @xhayper on discord as it doesn't wanna on here Maybe relatated maybe not. also #111 I think the same bug |
This is weird... |
…sending activity
devops: Added extra debug for issue: #145
Hey guys, just checkin' up on this issue. Any way to fix it so far? |
Nope, we are actively hunting for the source |
its the timeout issue again.... |
Thats what I've got (DEBUG OUTPUT): [4:18:12 PM] [INFO] [data.ts] ext(): Extension
[4:18:12 PM] [INFO] [data.ts] ext(): Changed to Extension
[4:18:12 PM] [INFO] [data.ts] [data.ts] ext(): Git extension is active
[4:18:12 PM] [INFO] [data.ts] api(): true
[4:18:12 PM] [INFO] [data.ts] api(): gitApi
[4:18:12 PM] [INFO] [data.ts] updateGit()
[4:18:12 PM] [INFO] [data.ts] gitRepoPath():
[4:18:12 PM] [INFO] [data.ts] updateGit(): repo
[4:18:12 PM] [INFO] [data.ts] api(): true
[4:18:12 PM] [INFO] [data.ts] api(): gitApi
[4:18:12 PM] [INFO] [data.ts] updateGit()
[4:18:12 PM] [INFO] [data.ts] gitRepoPath():
[4:18:12 PM] [INFO] [data.ts] updateGit(): repo
[4:18:12 PM] [INFO] Discord Rich Presence for VS Code activated.
[4:18:12 PM] [INFO] Registered Discord Rich Presence commands
[4:18:12 PM] [INFO] [data.ts] listeners(): Open Repo RyzenRP - Systembot
[4:18:12 PM] [INFO] [data.ts] updateGit()
[4:18:12 PM] [INFO] [data.ts] gitRepoPath(): d:\Users\Kuezy\04 Projects\[CUDA - DEVELOPMENT]\10 Develoment\30 Customer Builds\RyzenRP - Systembot
[4:18:12 PM] [INFO] [data.ts] updateGit(): repo d:\Users\Kuezy\04 Projects\[CUDA - DEVELOPMENT]\10 Develoment\30 Customer Builds\RyzenRP - Systembot
[4:18:12 PM] [INFO] [data.ts] listeners(): Open Repo RyzenRP - Systembot
[4:18:12 PM] [INFO] [data.ts] updateGit()
[4:18:12 PM] [INFO] [data.ts] gitRepoPath(): d:\Users\Kuezy\04 Projects\[CUDA - DEVELOPMENT]\10 Develoment\30 Customer Builds\RyzenRP - Systembot
[4:18:12 PM] [INFO] [data.ts] updateGit(): repo d:\Users\Kuezy\04 Projects\[CUDA - DEVELOPMENT]\10 Develoment\30 Customer Builds\RyzenRP - Systembot
[4:18:12 PM] [INFO] [data.ts] listeners(): Change State initialized
[4:18:12 PM] [INFO] [data.ts] updateGit()
[4:18:12 PM] [INFO] [data.ts] gitRepoPath(): d:\Users\Kuezy\04 Projects\[CUDA - DEVELOPMENT]\10 Develoment\30 Customer Builds\RyzenRP - Systembot
[4:18:12 PM] [INFO] [data.ts] updateGit(): repo d:\Users\Kuezy\04 Projects\[CUDA - DEVELOPMENT]\10 Develoment\30 Customer Builds\RyzenRP - Systembot
[4:18:12 PM] [INFO] [data.ts] listeners(): Change State initialized
[4:18:12 PM] [INFO] [data.ts] updateGit()
[4:18:12 PM] [INFO] [data.ts] gitRepoPath(): d:\Users\Kuezy\04 Projects\[CUDA - DEVELOPMENT]\10 Develoment\30 Customer Builds\RyzenRP - Systembot
[4:18:12 PM] [INFO] [data.ts] updateGit(): repo d:\Users\Kuezy\04 Projects\[CUDA - DEVELOPMENT]\10 Develoment\30 Customer Builds\RyzenRP - Systembot
[4:18:15 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[4:18:15 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor: got unallowed scheme, got 'output'
[4:18:19 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[4:18:21 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[4:18:21 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor: got unallowed scheme, got 'output'
[4:18:22 PM] [ERROR] Encountered following error while trying to login: RPC_CONNECTION_TIMEOUT: Connection timed out
at $a.login (c:\Users\kuezy\.vscode-insiders\extensions\leonardssh.vscord-5.0.14\node_modules\@xhayper\discord-rpc\dist\Client.js:250:20)
at new Zi (c:\Users\kuezy\.vscode-insiders\extensions\leonardssh.vscord-5.0.14\src\controller.ts:35:14)
at Object.<anonymous> (c:\Users\kuezy\.vscode-insiders\extensions\leonardssh.vscord-5.0.14\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:13379)
at Function.w._load (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:115:61900)
at Function.v._load (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:115:61293)
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.pb (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:115:63164)
at async Promise.all (index 0)
[4:18:22 PM] [INFO] [002] Destroyed Discord RPC client
[4:18:22 PM] [INFO] Successfully logged in to Discord with client ID 782685898163617802 |
Ye, update on 27th was working for me, IDK WHY, but the extension was working for the whole day of me coding, but on 29th the new update came out and the extension in my case came back to the error and didnt work at all. If I can help you with sending some logs or something you can tell me how and where I can find them, so i will send yaa them maybe it will help you... |
ctrl + shift + p This fix the problem ( in my pc ) |
Nope, that did not fix the issue on my end.. |
Hi, just checkin' up on this issue. Anything new as for now? |
Had this issue for ages, uninstalled, re-installed, didn't fix it. Finally I decided to restart discord which fixed the issue |
That's timeout issue then... hmm |
@xhayper Looks like if vscode.git is initialized it will not correctly load the extension. Causing the reconnect commands not working or any commands. But still show up in the command menu. I hope this is related to the whole cause atleast https://gyazo.com/a3e73e3aa64f4eaf8c019a72a0451c53 |
So for anyone looking to help us in this could you please go to help > toggle dev tools and then find the error for |
I found out there's a bug with discord-rpc have a bug where |
that might explain why a lot of stuff just doesn't work when disconnected. |
98db028 should fix git issue. |
Reconnecting works now |
Hi - yes it works now on both my laptop and workstation. Thanks for helping! |
Same issue for me, but only when I'm running VSCodium. Regular VSCode runs the extension fine. |
could you open your logs? |
Here you go:
|
I solved the issue! Turns out I was using the Flatpak version of VSCodium. Manually installing the .deb provided by VSCodium's website fixed the issue. |
Still happening more often now. |
Gahh .... |
Heyo, issue is now re-occuring with Visual Studio Code - Insiders: [3:48:53 PM] [INFO] [data.ts] ext(): Extension
[3:48:53 PM] [INFO] [data.ts] ext(): Changed to Extension
[3:48:53 PM] [INFO] [data.ts] [data.ts] ext(): Git extension is active
[3:48:53 PM] [INFO] [data.ts] api(): true
[3:48:53 PM] [INFO] [data.ts] api(): gitApi
[3:48:53 PM] [INFO] [data.ts] updateGit()
[3:48:53 PM] [INFO] [data.ts] repo(): no file open
[3:48:53 PM] [INFO] [data.ts] gitRepoPath(): f:\Projects\Team Increase\General Management\12 Development
[3:48:53 PM] [INFO] [data.ts] updateGit(): repo f:\Projects\Team Increase\General Management\12 Development
[3:48:53 PM] [INFO] [data.ts] api(): true
[3:48:53 PM] [INFO] [data.ts] api(): gitApi
[3:48:53 PM] [INFO] [data.ts] updateGit()
[3:48:53 PM] [INFO] [data.ts] repo(): no file open
[3:48:53 PM] [INFO] [data.ts] gitRepoPath(): f:\Projects\Team Increase\General Management\12 Development
[3:48:53 PM] [INFO] [data.ts] updateGit(): repo f:\Projects\Team Increase\General Management\12 Development
[3:48:53 PM] [INFO] Discord Rich Presence for VS Code activated.
[3:48:53 PM] [INFO] Registered Discord Rich Presence commands
[3:48:58 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[3:49:02 PM] [INFO] Reconnecting to Discord Gateway...
[3:49:02 PM] [INFO] [004] Debug: Logging in with client ID "782685898163617802"
[3:49:02 PM] [INFO] [004] Debug: Login - isConnected false isReady 782685898163617802
[3:49:02 PM] [INFO] [004] Debug: login - [object Object]
[3:49:03 PM] [ERROR] Encountered following error while trying to login: RPC_CONNECTION_TIMEOUT: Connection timed out
at $a.login (c:\Users\kuezy\.vscode-insiders\extensions\leonardssh.vscord-5.0.18\node_modules\.pnpm\@xhayper+discord-rpc@1.0.15\node_modules\@xhayper\discord-rpc\dist\Client.js:250:20)
at new Zi (c:\Users\kuezy\.vscode-insiders\extensions\leonardssh.vscord-5.0.18\src\controller.ts:44:14)
at Object.<anonymous> (c:\Users\kuezy\.vscode-insiders\extensions\leonardssh.vscord-5.0.18\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.l._load (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:121:13353)
at Function.b._load (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:116:61972)
at Function.E._load (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:116:61365)
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 f.pb (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:116:63236)
at async Promise.all (index 0)
[3:49:03 PM] [INFO] [002] Destroyed Discord RPC client
[3:49:03 PM] [INFO] Successfully logged in to Discord with client ID 782685898163617802
[3:49:13 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[3:49:13 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor: got unallowed scheme, got 'output'
[3:49:16 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[3:49:17 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[3:49:17 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor: got unallowed scheme, got 'output'
|
I was having the same issue, until I closed all discord instances (from other users in my machine) and restarted discord in my user. I don't know if it was what fixed it, but it is worth a try later. |
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](https://user-images.githubusercontent.com/101394236/202863784-b6e03f30-9167-4b17-a83a-3b57c5af9442.png)
Heres the exact error log:
When looking at the discord client ID it says
782685898163617802
which is not my client id...The text was updated successfully, but these errors were encountered: