prisma: CLI errors with `TypeError [ERR_INVALID_URL]: Invalid URL` when `HTTP(S)_PROXY` en var has is set to a URL without a protocol
Bug description
npx prisma studio cue me: Downloading Prisma engines for Node-API for windows [ ] 0%Error: Invalid URL
“prisma”: “^5.0.0”
How to reproduce
npx prisma xxx
Expected behavior
No response
Prisma information
datasource db {
provider = "mysql"
url = env("DATABASE_URL")
}
Environment & setup
- OS: windows
- Database: MySQL
- Node.js version: V16.18.0
Prisma Version
5.0.0
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 30 (14 by maintainers)
I have a proxy option with that exact config, but it’s disabled. Maybe, and most probably, my organization sets that value internally. However, the “Automatically detect settings” is enabled under the “proxy” panel in my PC’s settings menu.
As far as I know, i don’t have any of those set. The project i’m running the command on has just been created last week, and is a basic one. Nonetheless, I tried running the command on separate cmds on different projects/folders, and nothing seemed to work. I tried to set NO_PROXY like you recommended at
and it stayed the same: