Comments (5)
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.
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.
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.
You just need to restart or stop the running server before executing the npm run seed
command
from next-learn.
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)
- Docs: Minor syntax error in the streaming doc HOT 1
- Chapter 6: Create Postgre SQL database error
- Chapter 6: after running seeding script I got console logs that my database had been seeded, but I don't have any data HOT 4
- chapter 6 Cannot destructure property 'invoices' of 'require(...).default' as it is undefined HOT 1
- Unknown at rule @tailwindcss(unknownAtRules) HOT 1
- Bcrypt doesn't work , replace it with bcryptjs HOT 1
- 'RevenueChart' cannot be used as a JSX component.
- Error when I install Nextjs HOT 2
- Chapter 12 : missing button type="submit"
- Can't Fetch data for <RevenueChart/> HOT 1
- Example site styles broken on first load? HOT 1
- Chapter 13:Why is the exception thrown outside the try block in the deleteInvoice function caught by the catch block? HOT 3
- issue with npm run seed HOT 4
- In chapter6: connecting the databases having an error.
- Postgress Browse and Query UI is hiding the first row.
- Chapter 2: Non-equilateral triangle with Tailwind play
- Chapter 14: Fixing grammar in Client Side Validation example
- Chapter 13: No instructions to remove/comment throw new Error example
- Chapter 14: Type Error inside create-form and edit-form HOT 1
- Chapter 15: Error type should be 'CallbackRouteError' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next-learn.