You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure to understand the question. All was working before but I think I'm using this db locally. I just put in the datasource url my db connection string and use this with a local server
I am trying to ask are you trying to connect to your vultr server where postgres is hosted from your development machine or you are running you prisma2 application on the same vultr box in which your database is hosted?
@iherger@williamluke4 Can you please make sure all the information about what you are actually doing is provided in your comment - so it is easy and straightforward for @pantharshit00 to try to reproduce the problem.
I have a few issues currently with the Prisma2 platform and I think it all stems from this issue (unless majorly mistaken).
I have tried all the params above without success, on both localhost and hosted on DO. The same error seems to show up on a variety of steps. Sometimes on prisma2 lift up, lift save, dev. Sometimes not at all, but later on during prisma2 dev.
I have created this #999 which seems to be the same error on #919.
I'd really grateful if someone had a temporary workaround while the devs iron this out.
I have 2.0.0-preview018.2 and the problem is still there
The devs haven't replied, but I am pretty sure it's fixed. I haven't had the issue ever since I updated. Now it's mostly the lift engine panicking at every turn.
Can you make sure you have prisma 18.2 throughout your stack? Your global pckg, your local file and your server, if any?
Setup local environment with a Prisma schema pointed to the local DB and run the prisma2 generate -- works without any problem
Prepare new Postgress on Heroku and change the link in the local schema to the remote one and call again the prisma2 generate (on my local) -- seen the error
Fixed the postgress URL by the parameter: sslaccept=accept_invalid_certs and call the command again -- now it works fine, the remote database were generated.
I have tried to replicate that again to provide more details with the 2.0.0-preview018.2 and it works FINE. So the error was on my side somewhere, probably by using the npx that uses 017 version.
Activity
pantharshit00 commentedon Nov 6, 2019
Can you please tell me where your database is hosted?
yovanoc commentedon Nov 6, 2019
On a random Vultr server
pantharshit00 commentedon Nov 6, 2019
You are trying to access the postgres instance over localhost on the vultr instance or you are using that vultr instance locally on your machine?
yovanoc commentedon Nov 6, 2019
I'm not sure to understand the question. All was working before but I think I'm using this db locally. I just put in the datasource url my db connection string and use this with a local server
pantharshit00 commentedon Nov 6, 2019
I am trying to ask are you trying to connect to your vultr server where postgres is hosted from your development machine or you are running you prisma2 application on the same vultr box in which your database is hosted?
yovanoc commentedon Nov 6, 2019
Oh no the database is in the vultr server, and i'm locally trying to use this database
iherger commentedon Nov 6, 2019
I am having the same problem.
PS: it works alright with preview015
williamluke4 commentedon Nov 7, 2019
Currently receiving the same error
williamluke4 commentedon Nov 7, 2019
@iherger Preview 15 fails for me,
[email protected], binary version: 20b6dc1
janpio commentedon Nov 7, 2019
@iherger @williamluke4 Can you please make sure all the information about what you are actually doing is provided in your comment - so it is easy and straightforward for @pantharshit00 to try to reproduce the problem.
iherger commentedon Nov 7, 2019
@janpio , @pantharshit00
prisma2 lift saveproduces the error aboveThe same three steps with a local postgresql database work fine.
13 remaining items
jwld commentedon Nov 20, 2019
Encountering the same issue with a postgres database hosted on heroku. Adding
sslaccept=accept_invalid_certsto the connection url fixed it.BiscuiTech commentedon Nov 26, 2019
I have a few issues currently with the Prisma2 platform and I think it all stems from this issue (unless majorly mistaken).
I have tried all the params above without success, on both localhost and hosted on DO. The same error seems to show up on a variety of steps. Sometimes on prisma2 lift up, lift save, dev. Sometimes not at all, but later on during prisma2 dev.
I have created this #999 which seems to be the same error on #919.
I'd really grateful if someone had a temporary workaround while the devs iron this out.
tomhoule commentedon Dec 4, 2019
This is fixed upstream, the change should make it in preview 18 :) More context in prisma/specs#325
BiscuiTech commentedon Dec 6, 2019
Has this been fixed in 18? Because the notes do not mention this issue.
dizzyn commentedon Dec 15, 2019
I have 2.0.0-preview018.2 and the problem is still there
BiscuiTech commentedon Dec 16, 2019
The devs haven't replied, but I am pretty sure it's fixed. I haven't had the issue ever since I updated. Now it's mostly the lift engine panicking at every turn.
Can you make sure you have prisma 18.2 throughout your stack? Your global pckg, your local file and your server, if any?
dizzyn commentedon Dec 16, 2019
I have just tried this approach:
prisma2 generate-- works without any problemprisma2 generate(on my local) -- seen the errorsslaccept=accept_invalid_certsand call the command again -- now it works fine, the remote database were generated.So IMHO the problem is still there
BiscuiTech commentedon Dec 16, 2019
@janpio
Could we get a clarification on this?
dizzyn commentedon Dec 16, 2019
--- NO LONGER VALID ---
I have tried to replicate that again to provide more details with the 2.0.0-preview018.2 and it works FINE. So the error was on my side somewhere, probably by using the npx that uses 017 version.
Sorry for that and thank you for the good work.
janpio commentedon Dec 17, 2019
By my knowledge this should work as expected, sorry I did not get to confirm this earlier - but happy you figured it out yourself.