getting read ECONNRESET when executeRaw
See original GitHub issueBug 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:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I found the cause of the issue. I have been closed the authentication accidentally.
Thx for your help.
Have a good day.
I’ll share it asap. Thx for your quick response…