Learning Next.js, Chapter 7: "Error: Failed to fetch revenue data."
Answered
Crème D’Argent posted this in #help-forum
Crème D’ArgentOP
Hey, I am currently going through the official learning course but got stuck on Chapter 7.
I keep getting the "Error: Failed to fetch revenue data." error. The message of the error itself is "Database Error: Error: Server error (HTTP status 404): Not Found".
I've attached the screenshots of the
I'm certain that I have data in the database as I've checked it on supabase. Also, for test purposes, I've tried using
Would appreciate any ideas / suggestions on how I could make this work.
I keep getting the "Error: Failed to fetch revenue data." error. The message of the error itself is "Database Error: Error: Server error (HTTP status 404): Not Found".
I've attached the screenshots of the
app/dashboard/page.tsx and app/lib/data.ts files as well as the error itself.I'm certain that I have data in the database as I've checked it on supabase. Also, for test purposes, I've tried using
db from "@vercel/postgres" and I managed to fetch the target data using db.Would appreciate any ideas / suggestions on how I could make this work.
Answered by Crème D’Argent
Solved
I've changed the database provider on Vercel from Supabase to Neon and it has solved the issue and now I'm able to use
I've changed the database provider on Vercel from Supabase to Neon and it has solved the issue and now I'm able to use
sql from @vercel/postgres. Not sure why, but with Supabase I was not able to use it.1 Reply
Crème D’ArgentOP
Solved
I've changed the database provider on Vercel from Supabase to Neon and it has solved the issue and now I'm able to use
I've changed the database provider on Vercel from Supabase to Neon and it has solved the issue and now I'm able to use
sql from @vercel/postgres. Not sure why, but with Supabase I was not able to use it.Answer