Skip to content
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: RPC_CONNECTION_TIMEOUT #194

Closed
authorless opened this issue Mar 22, 2023 · 18 comments
Closed

Couldn't connect to Discord via RPC: RPC_CONNECTION_TIMEOUT #194

authorless opened this issue Mar 22, 2023 · 18 comments
Labels
bug Something isn't working

Comments

@authorless
Copy link

I ran into a problem where RPC can't get a connection.
I've already tried all the ways. I waited 10 minutes after creating the bot; entered the user id (my own); entered the application id and all in vain. Help me please...

@authorless
Copy link
Author

And also gives an error: "Failed to reconnect to Discord Gateway"

@xhayper
Copy link
Collaborator

xhayper commented Mar 22, 2023

Restart your discord, see if it fix the issue

@authorless
Copy link
Author

authorless commented Mar 22, 2023

Restarting Discord didn't help me.
Still gets this error: Failed to reconnect to Discord Gateway

@authorless
Copy link
Author

authorless commented Mar 22, 2023

I am attaching a screenshot of the console error. I hope that my screenshot can help find a solution to this problem.
image

@QuentiumYT
Copy link

Also just a question, is it possible to disable this annoying notification if we don't want to start discord when coding? Would be amazing to just add an option to silent these (keeping the "reconnect to discord gateway" in the status bar)

@jahirfiquitiva
Copy link

I agree with @QuentiumYT ... I requested that option some time ago #16 ... they "fixed" it for a while, but it's showing up again.

Besides, I don't always want Discord open, so it would be nice to be able to hide this notification.

@xhayper xhayper added the bug Something isn't working label Mar 25, 2023
@NielsNL1
Copy link

NielsNL1 commented Mar 25, 2023

And also gives an error: "Failed to reconnect to Discord Gateway"

i had the same problem and did this, it worked for me.

@neptunecorsiva
Copy link

And also gives an error: "Failed to reconnect to Discord Gateway"

i had the same problem and did this, it worked for me.

did what exactly?

@NielsNL1
Copy link

And also gives an error: "Failed to reconnect to Discord Gateway"

i had the same problem and did this, it worked for me.

did what exactly?

Restart discord

@ghost
Copy link

ghost commented Mar 29, 2023

you can restart the extension in the vscode with already running discord, and it should work. just tried it right now and it works ;)

@aquaslvt
Copy link

aquaslvt commented Apr 4, 2023

I have the same problem and all of the solutions didn't work

@xhayper
Copy link
Collaborator

xhayper commented Apr 4, 2023

Gosh, this issue came to haunt me everyday,

RPC_CONNECTION_TIMEOUT happeneds when:
A. Discord decided to stop respond to your request because you open too much RPC connection
B. You don't have discord open
C. IPC path is incorrect
D. Can't connect to IPC path

There's so many factor....

@xhayper
Copy link
Collaborator

xhayper commented Apr 4, 2023

I don't know how to tackle any of these problems at all

@jahirfiquitiva
Copy link

@xhayper maybe adding a setting/option to disable this notification is enough. that way we can easily decide whether to ignore it or not

@xhayper
Copy link
Collaborator

xhayper commented Apr 4, 2023

Good idea

@aquaslvt
Copy link

Any updates on this?

@xhayper
Copy link
Collaborator

xhayper commented Jul 15, 2023

Alright, re-visiting this old issue.

If you are on linux, and are using snap / flatpak version of vscode, please switch to the official version downloaded from the site itself.

If you are on windows, update the extension to the latest version

If you still get this bug, feels free to open a new issue

@xhayper
Copy link
Collaborator

xhayper commented Jul 15, 2023

For the notification part, i will work on it tomorrow, sorry for not working on it

@xhayper xhayper closed this as completed Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants