jamesxsc / roon-discord-rp

Apache License 2.0
9 stars 4 forks source link

Activity won't show up in Discord. #10

Closed alexcomo95 closed 2 years ago

alexcomo95 commented 3 years ago

I think everything is set up properly. While running, I can see my activity in the CLI. However, my activity won't show up in Discord. It may be related to this error shown at the service's initialization:

(node:15420) UnhandledPromiseRejectionWarning: Error: connection closed at IPCTransport. (roon-discord-rp\node_modules\discord-rpc\src\client.js:111:16) at Object.onceWrapper (events.js:520:26) at IPCTransport.emit (events.js:400:28) at roon-discord-rp\node_modules\discord-rpc\src\transports\ipc.js:141:18 at decode (roon-discord-rp\node_modules\discord-rpc\src\transports\ipc.js:92:5) at Socket. (roon-discord-rp\nodemodules\discord-rpc\src\transports\ipc.js:120:7) at Socket.emit (events.js:400:28) at emitReadable (internal/streams/readable.js:555:12) at processTicksAndRejections (internal/process/task_queues.js:81:21) (Use node --trace-warnings ... to show where the warning was created) (node:15420) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https:/ /nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:15420) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Not sure what it means exactly, aside that a promise was rejected and unhandled. Am I missing a step or is something broken?

alexcomo95 commented 3 years ago

Nevermind about the error. It was me playing around with the script, not sure what to do initially. And I stupidly forgot I altered the clientId. Still, it won't show my activity. How am I supposed to troubleshoot this?

alexcomo95 commented 3 years ago

For those who face the same problem, this implementation actually attempts to connects with Discord. I'm not looking back. Maybe this project's dev can get inspiration from it? https://github.com/williamtdr/roon-discord-publish

jamesxsc commented 2 years ago

The guy forked this repo, if that works better I recommend using that - I don't have time to maintain this repo at the moment.