Next.js Discord

Discord Forum

'ERR_SOCKET_CONNECTION_TIMEOUT'

Unanswered
Dogo Argentino posted this in #help-forum
Open in Discord
Dogo ArgentinoOP
Hi everyone,


I' m currently doing Chapter7 of the Next.JS course. I get the following error after implement parallel queries:

Database Error: NeonDbError: Error connecting to database: fetch failed
    at execute (webpack-internal:///(rsc)/./node_modules/@neondatabase/serverless/index.js:4689:21)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 1)
    at async fetchCardData (webpack-internal:///(rsc)/./app/lib/data.ts:62:22)
    at async Page (webpack-internal:///(rsc)/./app/dashboard/page.tsx:21:94) {
  code: null,
  sourceError: TypeError: fetch failed
      at Object.fetch (node:internal/deps/undici/undici:11522:11)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
    cause: Error [ERR_SOCKET_CONNECTION_TIMEOUT]: Socket connection timeout
        at new NodeError (node:internal/errors:399:5)
        at internalConnectMultiple (node:net:1099:20)
        at Timeout.internalConnectMultipleTimeout (node:net:1638:3)
        at listOnTimeout (node:internal/timers:575:11)
        at process.processTimers (node:internal/timers:514:7) {
      code: 'ERR_SOCKET_CONNECTION_TIMEOUT'
    }
  }
}


Anyone has an Idea how this could be resolved?
Thank you

0 Replies