I just got this error when I run `npx prisma studi...
# orm-help
c
I just got this error when I run
npx prisma studio
right after updating some fields in my
model.schema
file. The error says:
Copy code
Message: Error in Prisma Client request: 

Could not parse URL of the datasource
  
Query:
{
  "modelName": "User",
  "operation": "findMany",
  "args": {
    "take": 100,
    "skip": 0,
    "select": {
      "id": true,
      "name": true,
      "email": true,
      "image": true,
      "emailVerified": true,
      "Role": true,
      "accounts": true,
      "profile": true,
      "Program": true,
      "sessions": true,
      "profileId": true,
      "Announcement": true,
      "announcementId": true
    }
  }
}
Copy code
//.env (data proxy setup)
MIGRATE_DATABASE_URL='<postgresql://me>...'
DATABASE_URL='<prisma://aws-us-east>...'
Steps to recreate error: 1. Updated schema file 2. Ran
npx prisma db push
3. Ran
npx prisma studio
Can you please help resolve?
n
Was this working before and just stopped working since you updated models?
c
yes, it was. Also, everytime I run migrate I get a message:
Copy code
The migration `20220428153614_updated_erum_role` failed.
? We need to reset the PostgreSQL database "mentorsparlor-dat2....".
Do you want to continue? All data will be lost. › (y/N)
I dont want to reset
Basically its everytime I updated the schema file
n
c
Thanks, I’ll give it a read. Also, running
prisma migrate dev or npx prisma db push
doesn’t update my table on https://cloud.prisma.io/
is there another command that I should be running instead?
n
Did you pushed the updated schema to github?
You would need to push the updated schema to github for the schema changes to reflect
c
ah i see. Thanks, I’ll try it now
👍 works. Thank you. I just learned something new about prisma
🙌 1