Giter Club home page Giter Club logo

Comments (13)

hker9527 avatar hker9527 commented on September 27, 2024 1

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.

devsnek avatar devsnek commented on September 27, 2024

your client id is invalid

from rpc.

jamesxsc avatar jamesxsc commented on September 27, 2024

@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.

BigBrainAFK avatar BigBrainAFK commented on September 27, 2024

The clientid is def invalid. be it by missing digits or it being your own id.

from rpc.

jamesxsc avatar jamesxsc commented on September 27, 2024

It is definitely not

from rpc.

jamesxsc avatar jamesxsc commented on September 27, 2024

Someone else had the same problem and blamed some dependency issue.

from rpc.

devsnek avatar devsnek commented on September 27, 2024

I haven't released the update where clientId is part of the options object yet...

from rpc.

jamesxsc avatar jamesxsc commented on September 27, 2024

What do you mean?

from rpc.

devsnek avatar devsnek commented on September 27, 2024

@615283 rpc.login(clientId, { scopes }).catch(console.error);

from rpc.

jamesxsc avatar jamesxsc commented on September 27, 2024

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.

shikhir-arora avatar shikhir-arora commented on September 27, 2024

Is your Discord client open when you're running that?

from rpc.

jamesxsc avatar jamesxsc commented on September 27, 2024

No oops...

from rpc.

jamesxsc avatar jamesxsc commented on September 27, 2024

HOW do I add a redirect URL in my code when I login?

from rpc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.