prisma error {"clientVersion":"3.8.1"} in app engine
See original GitHub issueBug description
this is my prisma code .when i try to deploy prisma + nodejs into app engine . i got this error message .everything working fine in locally . but when i try to deploy the code in app engine then i got this error message .
{“clientVersion”:“3.8.1”}
const express = require("express");
const route = express();
const { PrismaClient } = require("../prisma/generated/client");
const prisma = new PrismaClient();
route.get("/", async (req, res) => {
try {
const allUsers = await prisma.account.findMany();
res.send({
result: allUsers,
});
} catch (error) {
res.send({
error: error,
});
}
});
module.exports = route;
How to reproduce
Expected behavior
No response
Prisma information
Environment & setup
Prisma Version
prisma : 3.8.1
@prisma/client : 3.8.1
Current platform : darwin
Query Engine (Node-API) : libquery-engine 34df67547cf5598f5a6cd3eb45f14ee70c3fb86f (at node_modules/@prisma/engines/libquery_engine-darwin.dylib.node)
Migration Engine : migration-engine-cli 34df67547cf5598f5a6cd3eb45f14ee70c3fb86f (at node_modules/@prisma/engines/migration-engine-darwin)
Introspection Engine : introspection-core 34df67547cf5598f5a6cd3eb45f14ee70c3fb86f (at node_modules/@prisma/engines/introspection-engine-darwin)
Format Binary : prisma-fmt 34df67547cf5598f5a6cd3eb45f14ee70c3fb86f (at node_modules/@prisma/engines/prisma-fmt-darwin)
Default Engines Hash : 34df67547cf5598f5a6cd3eb45f14ee70c3fb86f
Studio : 0.452.0
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:14 (5 by maintainers)
Top Results From Across the Web
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 >Troubleshoot App Engine errors - Google Cloud
deployer) role. This error occurs if the account that you used to deploy your app doesn't have the App Engine Deployer ( roles/appengine....
Read more >Error while adding GCP account (permission denied)
... the 'Permission denied" error again? Keeping only the 3 required permissions: ProjectViewer; CustomRedLock Viewer; Compute EngineCompute Security Admin.
Read more >Incidents - Google Cloud Service Health
Incident affecting Google App Engine, Google Cloud Datastore, Cloud Logging. App Engine seeing elevated error rates.
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
@Jolg42 , yep exactly worked in locally but not worked in deployment .this is the actual response i got in try catch block . {“clientVersion”:“3.8.1”} thats it .
Solution: 1: npm uninstall prisma @prisma/client 2: npm install -D prisma 3: npm install @prisma/client 4: npx prisma generate Note: Try/Catch block will return {“clientVersion”:“x.x.x”} as error even if your data inside create/update has wrong value pairs in your payload you want to create/update. Note2: Error can occur when you use prisma with SQLITE. In MySQL/Postgres, you can see what is the error more accurate. Note3: Some prisma features are not available with SQLITE, such as error reporting/createMany metod, etc…