discordjs / RPC

A simple RPC client for Discord
MIT License
459 stars 190 forks source link

Error when attempting to run example from my linux VPS #170

Closed Peter-MJ-Parker closed 1 year ago

Peter-MJ-Parker commented 1 year ago

I can run the same code when running from my local windows PC but when I try to run it on my server, it crashes with the following error. (I did edit the code here ). Anyone know why the RPC cannot connect when ran from a server? I just want to run the code all the time without my PC being on.

Error: Could not connect
    at Socket.onerror (/home/marv1/apps/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:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)