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

195
Views
Error: sintaxis de entrada no válida para el tipo entero: "" en el servidor express con backend de postgres

Con la esperanza de que alguien pueda ayudar con el siguiente error del servidor express ya que no está seguro de qué buscar y por qué este tipo de error sigue apareciendo. Está utilizando un backend de base de datos postgres. Parece que también bloquea el servidor.

 error: invalid input syntax for type integer: "" at Parser.parseErrorMessage (/home/app/server/node_modules/pg-protocol/dist/parser.js:278:15) at Parser.handlePacket (/home/app/server/node_modules/pg-protocol/dist/parser.js:126:29) at Parser.parse (/home/app/server/node_modules/pg-protocol/dist/parser.js:39:38) at Socket.<anonymous> (/home/app/server/node_modules/pg-protocol/dist/index.js:10:42) at Socket.emit (events.js:375:28) at addChunk (internal/streams/readable.js:290:12) at readableAddChunk (internal/streams/readable.js:265:9) at Socket.Readable.push (internal/streams/readable.js:204:10) at TCP.onStreamRead (internal/stream_base_commons.js:188:23) { length: 101, severity: 'ERROR', code: '22P02', detail: undefined, hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, column: undefined, dataType: undefined, constraint: undefined, file: 'numutils.c', line: '323', routine: 'pg_strtoint32' }

¿Hay algo específico que deba buscar en función de este error: invalid input syntax for type integer ?

ACTUALIZADO : según el comentario a continuación, ¿podría la siguiente consulta de inserción causar este error?

 const insertLogQuery = ` insert into log (log_id, run_id, s_id, q_id, message) values ($1, $2, $3, $4, $5) `; const insertLog = await pool.query(insertLogQuery, [ id, null, null, null, reason ]);

donde las columnas: run_id , s_id y q_id se definen como números enteros.

Si es así, ¿puede alguien decirme cuál es el mejor enfoque para evitar este error basado en este código?

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!