Closed karimsx closed 3 years ago
fixed in case there is an error with prisma, you need to enable unix domain socket :
import { enhancePrisma } from "blitz"
import { PrismaClient } from "@prisma/client"
const EnhancedPrisma = enhancePrisma(PrismaClient)
export * from "@prisma/client"
export default new EnhancedPrisma({ __internal: { useUds: true } } as any)
fixed in case there is an error with prisma, you need to enable unix domain socket :
import { enhancePrisma } from "blitz" import { PrismaClient } from "@prisma/client" const EnhancedPrisma = enhancePrisma(PrismaClient) export * from "@prisma/client" export default new EnhancedPrisma({ __internal: { useUds: true } } as any)
Meet the same issue (blitz new app
and then cannot sign up). Fixed it in your way, thx!
You are using beta software - if you have any problems, please open an issue here:
https://github.com/blitz-js/blitz/issues/new/choose
macOS Big Sur | darwin-x64 | Node: v12.19.0
blitz: 0.34.0 (global)
Package manager: npm
System:
OS: macOS 11.1
CPU: (8) x64 Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
Memory: 17.48 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 12.19.0 - ~/.nvm/versions/node/v12.19.0/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 6.14.8 - ~/.nvm/versions/node/v12.19.0/bin/npm
Watchman: Not Found
npmPackages:
@prisma/client: Not Found
blitz: Not Found
prisma: Not Found
react: Not Found
react-dom: Not Found
typescript: Not Found
But what can I do when I occur this issue just after sign up success...?
sign up / log out run well, but prisma studio ui cannot load data:
blitz prisma studio
Message: Error in Prisma Client request:
Error: connect ECONNREFUSED ::1:64584
at cb (/Users/didi/.cache/prisma/studio/dc8b5d1d/runtime/index.js:34862:17)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
Query:
prisma.user.findMany({
take: 100,
skip: 0,
select: {
id: true,
createdAt: true,
updatedAt: true,
name: true,
email: true,
hashedPassword: true,
role: true,
tokens: true,
sessions: true,
}
})
@hylerrix, its the same problem, check if prisma studio have a command line option to enable unix socket domain, else you can use dbeaver(free and opensource) to explore database if you are on linux
@hylerrix, its the same problem, check if prisma studio have a command line option to enable unix socket domain, else you can use dbeaver(free and opensource) to explore database if you are on linux
OooK :)
What is the problem?
prisma client can't connect to database
Paste all your error logs here:
Paste all relevant code snippets here:
What are detailed steps to reproduce this?
Run
blitz -v
and paste the output here: