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

Socket error #175

Open
kernelwernel opened this issue Dec 14, 2022 · 1 comment
Open

Socket error #175

kernelwernel opened this issue Dec 14, 2022 · 1 comment

Comments

@kernelwernel
Copy link

For some reason, the code works on my host machine but when I try to make it into a docker container, it gives me this error:

Error: Could not connect
    at Socket.onerror (/root/trollge/node_modules/discord-rpc/src/transports/ipc.js:32:16)
    at Object.onceWrapper (events.js:421:26)
    at Socket.emit (events.js:314:20)
    at emitErrorNT (internal/streams/destroy.js:92:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)

I tried to run this on my VPS and the same thing happened. Any help?

@CarlosNunezMX
Copy link

CarlosNunezMX commented Jan 30, 2024

Same error but trying in Bun

import {register, Client} from "discord-rpc"
register(':D');
const rpc = new Client({transport: 'ipc'});
rpc.on('ready', () => {
    console.log('Client is ready');
})
rpc.login({clientId: ":D});

Enviroment Details

DiscordRPC ^4.0.1
Bun 1.0.22
Discord installed with snap
Running in KDE Neon (Ubuntu)

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

2 participants