NeonN
Neon2y ago
10 replies
tricky-teal

Nextjs Turbopack: NeonDbError: Error connecting to database: fetch failed

getting this error sporadically on my local, it'll spam a handful of them at a time.

NeonDbError: Error connecting to database: fetch failed
    at execute (/home/***/.next/server/chunks/ssr/3d06b_@neondatabase_serverless_index_mjs_ad6191._.js:4910:21)
    at async NeonHttpPreparedQuery.execute (/home/***/.next/server/chunks/ssr/687d2_drizzle-orm_bb01ce._.js:5651:24)
    at async fetchProfile (/home/***/.next/server/chunks/ssr/[root of the server]__b45261._.js:1428:18)
    at async /home/***/.next/server/chunks/ssr/[root of the server]__b45261._.js:1491:21


only seems to happen when using turbopack, not with webpack. had a quick search in the server for anything to do with turbo to no avail.
assuming this is a turbopack compatibility thing

node: 20.11.0
next: 14.2.2
drizzle: ^0.30.9
@neondatabase/serverless: ^0.9.1
Was this page helpful?