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

223
Views
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.

over 4 years ago · Santiago Trujillo
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!