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.

prisma error {"clientVersion":"3.8.1"} in app engine

See original GitHub issue

Bug 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:open
  • Created 2 years ago
  • Reactions:1
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
worktechnotoilcommented, Feb 2, 2022

@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 .

0reactions
darkodavidoviccommented, Dec 13, 2022

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…

Read more comments on GitHub >

github_iconTop 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 >

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