guys i tried doing rich presence (running on ubuntu ARM64 (armcord))

Error: Could not connect
at Socket.onerror (/home/notdemonix/autostartstuff/node_modules/discord-rpc/src/transports/ipc.js:32:16)
at Object.onceWrapper (node:events:628:26)
at Socket.emit (node:events:513:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Error: Could not connect
at Socket.onerror (/home/notdemonix/autostartstuff/node_modules/discord-rpc/src/transports/ipc.js:32:16)
at Object.onceWrapper (node:events:628:26)
at Socket.emit (node:events:513:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
tell if i should send code
6 Replies
d.js docs
d.js docs2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
chewie 🌈
chewie 🌈2y ago
djs Things to consider when getting a connection closed/could not connect error: • What transport are you using? If it's 'websocket', change that to 'ipc'. • Is the ID you are trying to login with your user ID? If so, you should be using a Client ID from the Developer Portal (https://discord.com/developers/applications) instead. • Is the ID a string? If not, JavaScript will truncate it's value causing the connection to fail. • Are you using the Discord app? It won't be able to connect to the web version. Similarly, bots cannot use RPC. • Is your code running on the same machine as the Discord app? • Are you trying to run it from WSL? If so, it won't be able to connect either. • Have you installed Discord from the snap store? If so, install it from your distro's package repository or directly from the Discord website.
NotDemonix
NotDemonix2y ago
I use ipc, but its bcz armcord doesnt run ipc 😦
chewie 🌈
chewie 🌈2y ago
sucks then, the client is against tos anyway, so doesnt get support.
NotDemonix
NotDemonix2y ago
well theres no other discord for arm64
chewie 🌈
chewie 🌈2y ago
that doesnt change this at all