Giter VIP home page Giter VIP logo

Comments (5)

vivek20Eng avatar vivek20Eng commented on June 3, 2024

Same error

seed
node -r dotenv/config ./scripts/seed.js

node:events:497
throw er; // Unhandled 'error' event
^

AggregateError [ETIMEDOUT]:
at internalConnectMultiple (node:net:1116:18)
at internalConnectMultiple (node:net:1184:5)
at Timeout.internalConnectMultipleTimeout (node:net:1707:5)
at listOnTimeout (node:internal/timers:575:11)
at process.processTimers (node:internal/timers:514:7)
Emitted 'error' event on WebSocket instance at:
at emitErrorAndClose (/home/viveks/Documents/alokin_project/Learn/nextjs-dashboard/node_modules/ws/lib/websocket.js:1016:13)
at ClientRequest. (/home/viveks/Documents/alokin_project/Learn/nextjs-dashboard/node_modules/ws/lib/websocket.js:864:5)
at ClientRequest.emit (node:events:519:28)
at TLSSocket.socketErrorListener (node:_http_client:492:9)
at TLSSocket.emit (node:events:519:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: 'ETIMEDOUT',
[errors]: [
Error: connect ETIMEDOUT 23.23.229.9:443
at createConnectionError (node:net:1643:14)
at Timeout.internalConnectMultipleTimeout (node:net:1702:38)
at listOnTimeout (node:internal/timers:575:11)
at process.processTimers (node:internal/timers:514:7) {
errno: -110,
code: 'ETIMEDOUT',
syscall: 'connect',
address: '23.23.229.9',
port: 443
},
Error: connect ENETUNREACH 2600:1f18:240c:5421:acd1:6284:5a8a:d6e9:443 - Local (:::0)
at internalConnectMultiple (node:net:1180:16)
at Timeout.internalConnectMultipleTimeout (node:net:1707:5)
at listOnTimeout (node:internal/timers:575:11)
at process.processTimers (node:internal/timers:514:7) {
errno: -101,
code: 'ENETUNREACH',
syscall: 'connect',
address: '2600:1f18:240c:5421:acd1:6284:5a8a:d6e9',
port: 443
},

from next-learn.

melodiaz23 avatar melodiaz23 commented on June 3, 2024

Same here:

`> node -r dotenv/config ./scripts/seed.js

node:internal/modules/cjs/loader:1080
throw err;
^

Error: Cannot find module '/Users/melidiaz/Documents/portafolio/projects/natuvida/scripts/seed.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Module._load (node:internal/modules/cjs/loader:922:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:86:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Node.js v18.18.2`

from next-learn.

dalienst avatar dalienst commented on June 3, 2024

I experienced the same problem for a while and created a new postgres database on vercel. This was before I even started the NextJS server npm run dev . I started the server then ran the npm run seed. I hope this helps. Apparently the server has to be running.

from next-learn.

elmekkaoui-dev avatar elmekkaoui-dev commented on June 3, 2024

You just need to restart or stop the running server before executing the npm run seed command

from next-learn.

amiteshore avatar amiteshore commented on June 3, 2024

If you're using node 20 and encountering this issue, you can try using node 18 to see if it solves the problem. It worked for me.

Run nvm install 18, it will install node 18, then start the next server with npm run dev.

from next-learn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.