vercel / next-learn

Learn Next.js Starter Code
https://next-learn-dashboard.vercel.sh/
MIT License
3.67k stars 1.89k forks source link

seed successful but no data in vercel storage #761

Closed abdulrehman3725 closed 3 months ago

abdulrehman3725 commented 3 months ago
╰─➤  pnpm seed

> @ seed /Volumes/Work Partition/All Websites/nextjs-dashboard
> node -r dotenv/config ./scripts/seed.js

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

Error: connect ETIMEDOUT 2600:1f18:240c:544d:621b:957c:81:5e5b:443
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
Emitted 'error' event on WebSocket instance at:
    at emitErrorAndClose (/Volumes/Work Partition/All Websites/nextjs-dashboard/node_modules/.pnpm/ws@8.14.2_bufferutil@4.0.8_utf-8-validate@6.0.3/node_modules/ws/lib/websocket.js:1016:13)
    at ClientRequest.<anonymous> (/Volumes/Work Partition/All Websites/nextjs-dashboard/node_modules/.pnpm/ws@8.14.2_bufferutil@4.0.8_utf-8-validate@6.0.3/node_modules/ws/lib/websocket.js:864:5)
    at ClientRequest.emit (node:events:514:28)
    at TLSSocket.socketErrorListener (node:_http_client:501: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: -60,
  code: 'ETIMEDOUT',
  syscall: 'connect',
  address: '2600:1f18:240c:544d:621b:957c:81:5e5b',
  port: 443
}

Node.js v18.17.0
 ELIFECYCLE  Command failed with exit code 1.
abdulrehman3725 commented 3 months ago

I got the solution here -> https://github.com/vercel/next-learn/issues/542

I just updated my node version from 18.17.0 to 21 and it worked.

So if anyone faces the same just update back and forth your node version it would work.

abdulrehman3725 commented 3 months ago

Now the command is running but when I see data in my vercel account I do not see tables. Anyone tell what could be the issue?

╰─➤  pnpm seed

> @ seed /Volumes/Work Partition/All Websites/nextjs-dashboard
> node -r dotenv/config ./scripts/seed.js

Created "users" table
Seeded 1 users
Created "customers" table
Seeded 10 customers
Created "invoices" table
Seeded 15 invoices
Created "revenue" table
Seeded 12 revenue
abdulrehman3725 commented 3 months ago

@delbaoliveira

Can you please help. Thanks

abdulrehman3725 commented 3 months ago

got that issue solved

it needs to search or select table.