Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

219
Vistas
Unhandled rejection error: invalid input syntax for integer: "viewname"

I'm having an issue with this view it was working yesterday but now it wont even get to the next route after todo (eg "localhost:3000/todo/new") . my github link to my test app is https://github.com/Frosty21/node-Todo

This is the error that comes up

Unhandled rejection error: invalid input syntax for integer: "new"
    at Connection.parseE (/home/nfroese/lighthouse/Projects/other-test-projects/CRUD/server/node_modules/pg/lib/connection.
js:569:11)
    at Connection.parseMessage (/home/nfroese/lighthouse/Projects/other-test-projects/CRUD/server/node_modules/pg/lib/conne
ction.js:396:17)
    at Socket.<anonymous> (/home/nfroese/lighthouse/Projects/other-test-projects/CRUD/server/node_modules/pg/lib/connection
.js:132:22)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:191:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at TCP.onread (net.js:563:20)

Update

Figured the problem out video link to it below https://youtu.be/WYa47JkZH_U?t=1h15m2s

In Routes folder todo.js route GET '/:id' was conflicting with route GET '/new' as it was above and therefore it was going to '/:id' so moving '/new' route above resolved the issue.

Wasnt sure how he was able to render the view for the duration.

about 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda