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.

Bug description

const result = await prisma.thread.findMany(); // error 500 why? 
const result = await prisma.$queryRaw`SELECT * FROM thread`; // success 

it should be the same right or is something different ? im using aws lambda and prisma 3.7.0

How to reproduce

Expected behavior

No response

Prisma information

Environment & setup

  • OS: Mint
  • Database: Postgres
  • Node.js version: 14.17

Prisma Version

prisma 3.7.0

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
darwin808commented, Dec 31, 2021

run: yarn prisma:generate

added this to my .github/workflow/main.yml and its returning 200

its kinda weird why on my other routes its working , cached maybe? btw thanks you can close this now

1reaction
sabinadamscommented, Dec 30, 2021

Can you give some more context into the code? A copy of the schema?

Are you getting a more specific error message that might be helpful?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prisma fails on Postgres query with findMany - Stack Overflow
I work at Prisma btw and this is most likely a bug that we'll want to fix. Do you mind reporting this in...
Read more >
Error message reference - Prisma
Prisma Client throws a PrismaClientUnknownRequestError exception if the query engine returns an error related to a request that does not have an error...
Read more >
Intermittent prisma crashes - RedwoodJS Community
Error : GraphQL error: Invalid prisma.product.findMany() invocation in /var/task/src/api/dist/services/products/products.js:14:25 Unknown ...
Read more >
Contacts for insects | UMN Extension
Have an insect question? You can find many answers on this website. Identify your insect View photos and descriptions of insects that you...
Read more >
find many bugs in systems code EXE: EXecution generated ...
Goal: find many bugs in systems code ... exit() or error: solve constraints for input. ... exists that causes error such as div...
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