You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(node:14840) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'write' of nullat IPCTransport.send (C:\Users\CG\Desktop\Github\Buttons\node_modules\discord-rpc\src\transports\ipc.js:155:17)at C:\Users\CG\Desktop\Github\Buttons\node_modules\discord-rpc\src\client.js:166:22at new Promise (<anonymous>)at RPCClient.request (C:\Users\CG\Desktop\Github\Buttons\node_modules\discord-rpc\src\client.js:164:12)at buttons (C:\Users\CG\Desktop\Github\Buttons\lib\functions\buttons.js:5:12)at loopStatus (C:\Users\CG\Desktop\Github\Buttons\lib\functions\requests.js:13:9)at Object.<anonymous> (C:\Users\CG\Desktop\Github\Buttons\status.js:16:1)at Module._compile (internal/modules/cjs/loader.js:1063:30)at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)at Module.load (internal/modules/cjs/loader.js:928:32)(Use `node --trace-warnings ...` to show where the warning was created)(node:14840) 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:14840) [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.
I have infinite "Encountered following error while trying to login: Error: Could not connect" errors while trying to use the extension. And I don't get "Reconnect to Discord" text in status bar icon + error message in the bottom right corner. As I figured there is a problem inside of rpc.destroy() or in it's usage.
So I moved rpc.destroy() call+await to end of catch block to make important actions happen before struck.
I don't know the library for very much but I think it may help. Up to you, iCrawl.
P.S. Particullar error what gives me login attempt is simillar to this one discord/discord-rpc#337 . Trouble inside of rpc library? Should I try older version of your extension? Thank you
CODE
The text was updated successfully, but these errors were encountered: