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: [object Object] #66

Closed
bziya opened this issue May 13, 2018 · 9 comments
Closed

Couldn't connect to Discord via RPC: [object Object] #66

bziya opened this issue May 13, 2018 · 9 comments

Comments

@bziya
Copy link

bziya commented May 13, 2018

I keep getting this error:
VSCode Error

Here are my software specs:
VSCode:
VSCode Version Info

Discord Canary:
Discord Canary Version Info

Operating System (Mac OS):
screen shot 2018-05-13 at 2 04 09 pm

@TheTeaCup
Copy link

getting the same problem

@ghost
Copy link

ghost commented Jun 12, 2018

same

@bziya
Copy link
Author

bziya commented Jun 15, 2018

Is this issue dead? The lack of attention this is getting is a little bit ridiculous.

Edit: This issue is more than a month old and still no response from a dev.

@iCrawl
Copy link
Owner

iCrawl commented Jun 15, 2018

Looking through various of other issues of that kind should have gotten you that answer pretty quickly, namely:

#61
#54
#49
#21
#9
#8

I'm just kind of sick of people not looking through past issues at this point, so I left this one open.

@spkane
Copy link

spkane commented Jan 11, 2019

It might help folks if the error message including a link to a troubleshooting doc or something, that had a few suggestions. Most of the "answers" in all of these issues, are very vague and don't have any follow through on possible root causes.

@spkane
Copy link

spkane commented Jan 11, 2019

@iCrawl (Adding a pointer in your README to this might be be helpful).

The issue for most people, is likely that that the underlying Discord RPC library here https://github.com/discordjs/RPC uses a naive approach to determining the IPC path to the discord-ipc-0 file. It looks like it was written for Windows, and has had some Linux logic added as well, but still does not properly support Mac OS X.

I created an issue here with some details:
discordjs/RPC#54

Basically, the fix is likely that you need to search your system for the IPC file:

find / -name "*discord-ipc*" 2> /dev/null
/private/var/folders/kh/388s01ns6r9480zhlk51nb200000gn/T/discord-ipc-0

edit .vscode/extensions/icrawl.discord-vscode-3.2.1/node_modules/discord-rpc/src/transports/IPC.js accordingly:

function getIPCPath(id) {
  return `/private/var/folders/kh/388s01ns6r9480zhlk51nb200000gn/T/discord-ipc-${id}`;
}

and then restart Visual Studio Code.

At this point it . should work.

@sheerlox
Copy link

sheerlox commented Feb 23, 2019

If you installed Discord / VSCode using Snap / Ubuntu Software Center, here is a fix.

I am using Ubuntu 18.10, Snap was the origin of my Can't connect to Discord, as it sandboxes apps.
It has been confirmed by a Discord collaborator: discord/discord-rpc#213 (comment)

So if you installed any of those two using Snap, here's the fix:

  • sudo snap remove vscode discord
  • download the .deb files from the official websites
  • install the .deb files using the sudo dpkg -i package.dpkg command
  • DO NOT USE UBUNTU SOFTWARE CENTER, AS IT USES SNAP.

@iCrawl (Adding a pointer in your README to this might be be helpful).

@Luann0233
Copy link

@SherloxTV Thank you S2

@GabrielMessiasdaRosa
Copy link

You save the day, thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants