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

175
Views
Error de Nodejs "La devolución de llamada ya se llamó error".

Por alguna razón, esta parte del código está causando una devolución de llamada que ya se llama problema, si no ingresa al ciclo "if", regresa con precisión. No se puede averiguar por qué funciona parcialmente. ¿Por qué las declaraciones de devolución actúan de manera diferente?

 **if (!args.is_table) { return cbk(null, {peers: forwards.peers}); }**

Aquí está el error:

 ***if (fn === null) throw new Error("Callback was already called."); ^ Error: Callback was already called.*** module.exports = (args, cbk) => { return new Promise((resolve, reject) => { return asyncAuto({ // Final forwards table allForwards: ['forwards', ({forwards}, cbk) => { if (!args.is_table) { return cbk(null, {peers: forwards.peers}); } const isWideSize = !size || size.get().width > wideSizeCols; return cbk(null, { peers: forwards.peers, rows: [] .concat([notNull([ 'Alias', 'Earned In', 'Earned Out', 'Inbound', 'Outbound', !!isWideSize ? 'Public Key' : null, ]).map(n => !args.is_monochrome ? bold(n) : n)]) .concat(forwards.peers.map(peer => { return notNull([ chartAliasForPeer({ alias: peer.alias, icons: peer.icons, is_disconnected: peer.is_disconnected, is_forwarding: peer.is_forwarding, is_inactive: peer.is_inactive, is_pending: peer.is_pending, is_private: peer.is_private, public_key: peer.public_key, }).display, formatTokens({ is_monochrome: args.is_monochrome, tokens: peer.liquidity_outbound, }).display, !!isWideSize ? peer.public_key : null, ]); })), }); }], }, returnResult({reject, resolve, of: 'allForwards'}, cbk)); }); };
about 4 years ago · Juan Pablo Isaza
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!