Skip to content

Supabase connection issue #26

@zolbayars

Description

@zolbayars
Error while getting the best recent pnl: PrismaClientInitializationError: 
Invalid `prisma.$queryRaw()` invocation:


Can't reach database server at `aws-0-ap-northeast-2.pooler.supabase.com`:`6543`

Please make sure your database server is running at `aws-0-ap-northeast-2.pooler.supabase.com`:`6543`.
    at Rn.handleRequestError (/Users/zolbayar/workspace/crypto-trading-report-generator/node_modules/@prisma/client/runtime/library.js:174:7601)
    at Rn.handleAndLogRequestError (/Users/zolbayar/workspace/crypto-trading-report-generator/node_modules/@prisma/client/runtime/library.js:174:6754)
    at /Users/zolbayar/workspace/crypto-trading-report-generator/node_modules/@prisma/client/runtime/library.js:177:3010
    at async /Users/zolbayar/workspace/crypto-trading-report-generator/node_modules/@prisma/client/runtime/library.js:177:3225
    at async Proxy._executeRequest (/Users/zolbayar/workspace/crypto-trading-report-generator/node_modules/@prisma/client/runtime/library.js:177:11403)
    at async getBestDaysPnLBeforeThisWeek (webpack-internal:///(api)/./lib/analytics.ts:65:16)
    at async handler (webpack-internal:///(api)/./pages/api/analytics/loss-limit.ts:9:31) {
  clientVersion: '4.16.2',
  errorCode: undefined
}
Error while getting merged trades: PrismaClientInitializationError: 
Invalid `prisma.trade.findFirst()` invocation:


Can't reach database server at `aws-0-ap-northeast-2.pooler.supabase.com`:`6543`

Please make sure your database server is running at `aws-0-ap-northeast-2.pooler.supabase.com`:`6543`.
    at Rn.handleRequestError (/Users/zolbayar/workspace/crypto-trading-report-generator/node_modules/@prisma/client/runtime/library.js:174:7601)
    at Rn.handleAndLogRequestError (/Users/zolbayar/workspace/crypto-trading-report-generator/node_modules/@prisma/client/runtime/library.js:174:6754)
    at /Users/zolbayar/workspace/crypto-trading-report-generator/node_modules/@prisma/client/runtime/library.js:177:3010
    at async /Users/zolbayar/workspace/crypto-trading-report-generator/node_modules/@prisma/client/runtime/library.js:177:3225
    at async t._executeRequest (/Users/zolbayar/workspace/crypto-trading-report-generator/node_modules/@prisma/client/runtime/library.js:177:11403)
    at async getTrades (webpack-internal:///(api)/./lib/trades.ts:101:36)
    at async handler (webpack-internal:///(api)/./pages/api/dashboard/merged-trades.ts:18:24) {
  clientVersion: '4.16.2',
  errorCode: undefined
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions