Next.js Discord

Discord Forum

ECONNRESET Error When Seeding Neon Database in Next.js Tutorial

Unanswered
Morelet’s Crocodile posted this in #help-forum
Open in Discord
Morelet’s CrocodileOP
Hi everyone! đź‘‹

I'm working through the Next.js tutorial (Chapter: Setting up your database) and I'm getting a connection error when trying to seed my Neon database.

What I'm trying to do:
Following the tutorial at https://nextjs.org/learn/dashboard-app/setting-up-your-database to set up and seed a PostgreSQL database hosted on Neon.

The Error:
When I navigate to /seed route, I get:
{"error":{"errno":-4077,"code":"ECONNRESET","syscall":"read"}}

3 Replies

It seems there is a provision with the connection to the database

Did you put the databases connection string in your .env file?
You can get it from neon and connect section
If yes then please send over the seed route file so i can take a look