question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

getting read ECONNRESET when executeRaw

See original GitHub issue

Bug description

We are using Prisma 2.20.1. Our DB (Postgre 13.1 R1) runs on Amazon AWS RDS.

PrismaClientKnownRequestError2 [PrismaClientKnownRequestError]:
Invalid prisma.queryRaw() invocation:

read ECONNRESET
at cb (..\node_modules@prisma\client\runtime\index.js:34862:17)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async resolve (..\src\query\abc.js:18:23) {
code: 'ECONNRESET',
clientVersion: '2.20.1',
meta: undefined
}

How to reproduce

When we execute a function as below code, the Prisma gives the above error.

 const oos = await ctx.prisma
            .$queryRaw`SELECT * FROM func_get_dashboard(${userAuth.storeId})`;

Expected behavior

The code should be work normally.

Environment & setup

  • OS: Windows 10
  • Database: Postgre 13.1 R1
  • Node.js version: Latest
  • Prisma version: 2.20.1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
volkankorkmazcommented, Apr 27, 2021

I found the cause of the issue. I have been closed the authentication accidentally.

Thx for your help.

Have a good day.

1reaction
volkankorkmazcommented, Apr 26, 2021

I’ll share it asap. Thx for your quick response…

Read more comments on GitHub >

github_iconTop Results From Across the Web

BigQuery read ECONNRESET - node.js - Stack Overflow
When using Firebase Cloud Functions in combination with Google BigQuery. Sometimes an error is thrown randomly when this function is triggered.
Read more >
Execute Raw SQL Query in Entity Framework 6
Entity Framework 6.x allows you to execute the raw SQL query for the underlying relational database using SqlQuery() and ExecuteSqlCommand methods.
Read more >
Getting read ECONNRESET - Agents - New Relic Explorers Hub
Hi, I'm getting a lot of read ECONNRESET error from New relic I think. I have only this stacktrace pointing to newrelic.
Read more >
Raw database access (Reference) - Prisma
Raw queries with relational databases · $queryRaw to return actual records (for example, using SELECT ) · $executeRaw to return a count of...
Read more >
How to Execute Raw SQL in SQLAlchemy - GeeksforGeeks
Read ; Discuss; Courses; Practice; Video ... Pass the SQL query to the execute() function and get all the results using fetchall() function....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found