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

269
Views
Postgres Unhandled rejection error: relation "public.role" does not exist

I am trying to connect to postgresql through Node.JS (LoopBack framework) in windows but when I try to access the database this error will occur:

Unhandled rejection error: relation "public.role" does not exist
at Connection.parseE (\node_modules\pg\lib\connetion.js:569:11)
at Connection.parseMessage (\node_modules\pg\lib\connection.js:396:17)
at Socket.<anonymous> (\node_modules\pg\lib\connection.js:132:22)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at TCP.onread (net.js:548:20)
over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

That looks like invalid escaping for schema + table. What you probably wanted was: "public"."role", as in schema + table, and not "public.role" as a table name.

over 4 years ago · Santiago Trujillo Report

0

As one of the pg module developer said:

"It looks like you're trying to query a table "role" that doesn't exist in the database you're connecting to."

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