Closed typeofweb closed 4 years ago
I figured that if I hardcode getFreePort()
to always return the same port which I manually opened, the Operation not permitted
error is gone.
Is there a way to override the port?
@mmiszy
Try using the UDS mode (Unix domain sockets). That won't open the port in the first place.
const client = new PrismaClient({ __internal: { useUds: true }} as any); // omit as any if you are not using typescript
We plan to make this the default in the near future.
Thank you, that solves it.
Sorry, I wasn't sure which repo is the right one to open issues.
It is alright, we usually transfer issues to appropriate place so no need to open things twice in the future :)
Bug description
Trying to run even the simplest query results in an error:
Operation not permitted (os error 1)
How to reproduce
My code:
Expected behavior
Prisma information
Environment & setup