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

280
Views
No se pueden enviar mensajes de Kafka aunque existan el tema y el productor

Estoy trabajando en TypeScript con la biblioteca KafkaJS localmente, con un solo agente kafka. Conecté con éxito a un productor, verifiqué que se creó mi tema y estoy generando mensajes con:

 const changeMessage = { key: id, value: JSON.stringify(person), headers: { changeType: status, }, };

Ahora cuando voy a enviar el mensaje:

 try { const sendResponse = await producer.send({ topic: topicName2, messages: [changeMessage], }); log.responseFragment( { id, topicName2 }, `Sending changed/added person ${id} to topic ${topicName2}` ); } catch (error) { log.error( { error }, `Could not send personChangedAdded ${id} to topic ${topicName2}` ); }

Aquí está el error que me devuelve:

 Could not send personChange to topic topicName2 error: { "name": "KafkaJSError", "retriable": true }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

No pude definir log.responseFragment() , y cuando lo cambié a un simple log.info() el problema se resolvió.

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!