AgentGPT
AgentGPT copied to clipboard
npx prisma db push, throw error?
npx prisma db push
> Downloading Prisma engines for Node-API for rhel-openssl-1.1.x [ ] 0%Error: request to https://binaries.prisma.sh/all_commits/659ef412370fa3b41cd7bf6e94587c1dfb7f67e7/rhel-openssl-1.1.x/migration-engine.gz.sha256 failed, reason: connect EINVAL 0.0.254.149:80 - Local (0.0.0.0:0)
what's wrong with it?
That sounds like an internet, dns, or firewall issue. Have you denied any prompts for firewall access? Depending on OS.
Hey are you still experiencing this issue?
yes,it's always throw error,and i used follow steps to solve the issue
1、download component by manual(yes, wget is ok)
wget https://binaries.prisma.sh/all_commits/659ef412370fa3b41cd7bf6e94587c1dfb7f67e7/rhel-openssl-1.1.x/libquery_engine.so.gz
wget https://binaries.prisma.sh/all_commits/659ef412370fa3b41cd7bf6e94587c1dfb7f67e7/rhel-openssl-1.1.x/migration-engine.gz
wget https://binaries.prisma.sh/all_commits/659ef412370fa3b41cd7bf6e94587c1dfb7f67e7/rhel-openssl-1.1.x/prisma-fmt.gz
wget https://binaries.prisma.sh/all_commits/659ef412370fa3b41cd7bf6e94587c1dfb7f67e7/rhel-openssl-1.1.x/query-engine.gz
2、set environment
vim ~./bash_profile
ENGINE_DIR="${WGET_DIR}"
export PRISMA_QUERY_ENGINE_LIBRARY="${WGET_DIR}/libquery_engine.so.node"
export PRISMA_QUERY_ENGINE_BINARY="${WGET_DIR}/query-engine"
export PRISMA_MIGRATION_ENGINE_BINARY="${WGET_DIR}/migration-engine"
export PRISMA_FMT_BINARY="${WGET_DIR}/prisma-fmt"
then, run npx prisma db push is ok now
Awesome :) closing