Mischa
03/20/2022, 3:46 PMInvoke Error {"errorType":"Error","errorMessage":"error: Error validating datasource `db`: the URL must start with the protocol `postgresql://` or `postgres://`.\n --> schema.prisma:9\n | \n 8 | provider = \"postgresql\"\n 9 | url = env(\"DATABASE_URL\")\n | \n\nValidation Error Count: 1","clientVersion":"3.6.0","stack":["Error: error: Error validating datasource `db`: the URL must start with the protocol `postgresql://` or `postgres://`."," --> schema.prisma:9"," | "," 8 | provider = \"postgresql\""," 9 | url = env(\"DATABASE_URL\")"," | ","","Validation Error Count: 1"," at Object.request (/node_modules/@prisma/client/runtime/index.js:39051:15)"," at Runtime.IY (/lib/lambdas/cognito/preSignUp.ts:25:23)"]}
• Generated 3.9.0 client with PRISMA_CLIENT_ENGINE_TYPE='dataproxy' prisma generate
• Set my DATABASE_URL
to prisma://....
• Set previewFeatures = ["dataProxy"]
in generator client {}
What am I missing here?Harjaap Singh Makkar
03/23/2022, 12:01 AMHarjaap Singh Makkar
03/23/2022, 12:01 AMHarjaap Singh Makkar
03/23/2022, 12:02 AMInvalid string length
RangeError: Invalid string length
at JSON.stringify (<anonymous>)
at _t.serialize (<https://cloud.prisma.io/studio/assets/index.js:1:49045>)
at _t.update (<https://cloud.prisma.io/studio/assets/index.js:1:12197>)
at Cc (<https://cloud.prisma.io/studio/assets/vendor.js:50:6994>)
at _t.n (<https://cloud.prisma.io/studio/assets/vendor.js:50:6688>)
at _t.update (<https://cloud.prisma.io/studio/assets/index.js:1:48902>)
at Cc (<https://cloud.prisma.io/studio/assets/vendor.js:50:6994>)
at _t.n (<https://cloud.prisma.io/studio/assets/vendor.js:50:6688>)
at <https://cloud.prisma.io/studio/assets/index.js:1:82105>
at Array.forEach (<anonymous>)
Reopening the studio or even the tab has no effectHarjaap Singh Makkar
03/23/2022, 12:02 AMHamin Lee
04/06/2022, 11:44 AMRednar Rosique
04/13/2022, 9:11 PMChris Bitoy
04/14/2022, 8:22 PMschema.prisma
file. So I configured my app to using data proxy provided, and used the the provided prisma://....
as DATABASE_URL connection string in my schema.prisma
file. However, When I tried migrating the models npx prisma migrate dev
- I got this error:
Error: Get config: Schema Parsing P1012
error: Error validating datasource `db`: the URL must start with the protocol `postgresql://` or `postgres://`.
--> schema.prisma:8
|
7 | provider = "postgresql"
8 | url = env("DATABASE_URL")
|
Validation Error Count: 1
How do I fix this?Raghav Mrituanjaya
04/17/2022, 12:12 PMSJ
04/18/2022, 4:12 PMprisma db push
with only the prisma://...
URL as the datasource.db
, and using PRISMA_CLIENT_ENGINE_TYPE=dataproxy
?
Asking, because I'm getting the following error:
$ prisma db push
Error: Get config: Schema Parsing P1012
error: Error validating datasource `db`: the URL must start with the protocol `mysql://`.
I'm assuming the correct use case is, that I'd need to use the mysql://
URL locally (because TCP works in local dev environments anyway), and then I may use the prisma://
URL in prod (e.g. in a serverless environment, because generally only HTTP connections are allowed there)
Full config:
generator client {
provider = "prisma-client-js"
previewFeatures = ["referentialIntegrity", "dataProxy"]
}
datasource db {
provider = "mysql"
url = env("DATABASE_URL")
referentialIntegrity = "prisma"
}
Slackbot
05/12/2022, 7:24 AMDoug Stone-Weaver
05/18/2022, 1:56 AMevent.waitUntil
doesn't end up creating logs, but if I just straight await
the call, it works. Obviously a Cloudflare change, but just FYIBryan Ibe
05/18/2022, 2:51 AMWe were unable to finish your PlanetScale project setup: Failed to reset database. Response code 500
. Is there a way around this?Alberto Perdomo
05/23/2022, 3:46 PMAlberto Perdomo
05/23/2022, 3:55 PMHassan
05/25/2022, 10:03 AMHassan
05/25/2022, 10:03 AMHassan
06/11/2022, 2:05 PMAndreas Straub
06/16/2022, 8:30 PMTim Feeley
06/17/2022, 6:21 PMJoshua Snyder
06/21/2022, 2:10 PMGustavo
07/14/2022, 7:35 PMElla Nan
07/22/2022, 3:29 AMprisma:error Error while querying: HealthcheckTimeout
Error while querying: HealthcheckTimeout
prisma:warn This request can be retried
This request can be retried
prisma:warn Retrying after 240ms
Retrying after 240ms
any idea what a HealthcheckTimeout is?Oliver
07/28/2022, 12:44 PMStefan Trivuncic
07/28/2022, 6:14 PMGustavo
07/31/2022, 11:14 PMZac Wellmer
08/05/2022, 3:38 PMGustavo
08/09/2022, 1:18 PMupdate({ where: { updatedAt: ... } })
.Ryan Barnes
08/10/2022, 3:51 PMVladi Stevanovic
09/23/2022, 8:22 AM