Comments (13)
The problem exists in current version 3.0.0
too. Falling back to 3.0.0-beta.12
solved my problem.
FYI, the error message is { code: 4000, message: 'No Client ID Specified' }
from rpc.
your client id is invalid
from rpc.
@devsnek My ID is not invalid, I have checked multiple times. My code is here: https://github.com/615283/roon-discord-rp/blob/master/roon-discord-rp.js
from rpc.
The clientid is def invalid. be it by missing digits or it being your own id.
from rpc.
It is definitely not
from rpc.
Someone else had the same problem and blamed some dependency issue.
from rpc.
I haven't released the update where clientId is part of the options object yet...
from rpc.
What do you mean?
from rpc.
@615283 rpc.login(clientId, { scopes }).catch(console.error);
from rpc.
Now getting
(node:14688) UnhandledPromiseRejectionWarning: Error: Could not connect
at Socket.onerror (C:\Users\james\WebstormProjects\roon-discord-rp\node_modules\discord-rpc\src\transports\IPC.js:32:16)
at Object.onceWrapper (events.js:315:30)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
(node:14688) 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(). (rejection id: 1)
(node:14688) [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.
@devsnek
from rpc.
Is your Discord client open when you're running that?
from rpc.
No oops...
from rpc.
HOW do I add a redirect URL in my code when I login?
from rpc.
Related Issues (20)
- Discord RPC via Browser HOT 2
- Events fire twice HOT 1
- Subscriptions not working HOT 5
- Better Documentation 📖 HOT 5
- Subscriptions not working (VOICE_STATE_CREATE, VOICE_STATE_UPDATE, VOICE_STATE_DELETE) HOT 1
- ERROR in ./node_modules/discord-rpc/src/client.js 8:4-21 HOT 1
- Unhandled Promise Rejection: ReferenceError: Can't find variable: process
- Buttons not working properly HOT 3
- rpc scope not found HOT 1
- GET_SELECTED_VOICE_CHANNEL method
- discord-rpc in conjunction with Vue 2
- Error when attempting to run example from my linux VPS
- Error: child "id" fails because ["id" must be a string] HOT 1
- RPC Documentation Missing HOT 2
- Error: connection closed
- Socket error HOT 1
- Could not connect on Linux HOT 1
- Will this package be depreceated? HOT 2
- Buttons not working? HOT 2
- How do you connect to an existing RPC connection?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rpc.