Can't Seed postgres DB in nextjs.org/learn
Unanswered
Red-faced Cormorant posted this in #help-forum
Red-faced CormorantOP
Hello,
I've been working with the nextjs.org/learn example using the Vercel postgres DB for the whole day, once I changed computers, I clone my repo from Github and set my .env as described in the docs, only to find that whenever I try to go to localhost:3000/dashboard I get a spew of errors, after redoing EVERYTHING according to the steps in hopes that I messed up somewhere along the way, I encountered a new error when I try to seed my DB. I also notice that my server status is infinitely loading.
The Error:
css
I've been working with the nextjs.org/learn example using the Vercel postgres DB for the whole day, once I changed computers, I clone my repo from Github and set my .env as described in the docs, only to find that whenever I try to go to localhost:3000/dashboard I get a spew of errors, after redoing EVERYTHING according to the steps in hopes that I messed up somewhere along the way, I encountered a new error when I try to seed my DB. I also notice that my server status is infinitely loading.
The Error:
css
node:events:492
throw er; // Unhandled 'error' event
^
Error: getaddrinfo EAI_AGAIN ep-raspy-star-a43hh3ti-pooler.us-east-1.postgres.vercel-storage.com
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26)
Emitted 'error' event on WebSocket instance at:
at emitErrorAndClose (C:\Users\johna\Desktop\Projects\NextJS-dashboard\node_modules\ws\lib\websocket.js:1016:13)
at ClientRequest.<anonymous> (C:\Users\johna\Desktop\Projects\NextJS-dashboard\node_modules\ws\lib\websocket.js:864:5)
at ClientRequest.emit (node:events:514:28)
at TLSSocket.socketErrorListener (node:_http_client:495:9)
at TLSSocket.emit (node:events:514:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -3001,
code: 'EAI_AGAIN',
syscall: 'getaddrinfo',
hostname: 'ep-raspy-star-a43hh3ti-pooler.us-east-1.postgres.vercel-storage.com'
}2 Replies
Toyger
this one looks like something wrong with your network or dns, it can't get host ip of
you can try to set your main dns to google 8.8.8.8 or cloudflare 1.1.1.1
ep-raspy-star-a43hh3ti-pooler.us-east-1.postgres.vercel-storage.com you can try to set your main dns to google 8.8.8.8 or cloudflare 1.1.1.1
@Toyger this one looks like something wrong with your network or dns, it can't get host ip of `ep-raspy-star-a43hh3ti-pooler.us-east-1.postgres.vercel-storage.com`
you can try to set your main dns to google 8.8.8.8 or cloudflare 1.1.1.1
Red-faced CormorantOP
Thank you so much, that seemed to fix all the problems I was experiencing