Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

468
Views
discordia RPC error cuando trato de ejecutar el código

cuando trato de ejecutar el código me sale este error. Escribí este código con la ayuda de un tutorial en youtube pero no sé cuál es el error que cometí en esto.

Error: Could not connect at Socket.onerror (/home/runner/Toshiro/node_modules/discord-rpc/src/transports/ipc.js:32:16) at Object.onceWrapper (node:events:510:26) at Socket.emit (node:events:390:28) at Socket.emit (node:domain:475:12) at emitErrorNT (node:internal/streams/destroy:157:8) at emitErrorCloseNT (node:internal/streams/destroy:122:3)

mi código:

 const clientId = "960430276532645888" const DiscordRPC = require("discord-rpc"); const RPC = new DiscordRPC.Client({ transport: "ipc" }); DiscordRPC.register(clientId); async function setActivity() { if (!RPC) return; RPC.setActivity({ details: `Reading`, state: `all subjects`, startTimestamp: Date.now(), largeImageKey: `books`, largeImageText: `books`, smallImageKey: `verified`, smallImageText: `verified`, instance: false, buttons: [ { label: `Join Me :)`, url: `https://www.sanfransentinel.com/combine-study.html`, }, ] }); }; RPC.on('ready', async () => { setActivity(); setInterval(() => { setActivity(); }, 15 * 1000); }) RPC.login({ clientId }).catch(err => console.error(err));

Como puedó resolver esté problema

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Lea aquí: https://github.com/iCrawl/discord-vscode/issues/85 .

Parece que pueden ser solo los permisos en su computadora.

Intente ejecutar el editor de código como administrador y asegúrese de que Discord no esté ejecutando el administrador. Cómo ejecutar una aplicación como administrador.

Si no lo está ejecutando localmente, no funcionará , la biblioteca se conecta a su cliente local de discord en ejecución. Si lo aloja en una máquina diferente, ya no podrá conectarse.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!