Next.js Discord

Discord Forum

Build error only on Vercel (Error during get)

Unanswered
Blue orchard bee posted this in #help-forum
Open in Discord
Blue orchard beeOP
I'm getting an error from my get functions only on Vercel deployment. my database is connected and I also don't have issues on my local builds. Is this a server side rendering issue?

3 Replies

Blue orchard beeOP
MongoDB: connected
MongoDB: already connected
Error during GET: MongooseError: Operation `reviews.find()` buffering timed out after 10000ms
    at Timeout.<anonymous> (/vercel/path0/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js:185:23)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)
Error during GET: MongooseError: Operation `reviews.find()` buffering timed out after 10000ms
    at Timeout.<anonymous> (/vercel/path0/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js:185:23)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)
TypeError: e.map is not a function
    at l (/vercel/path0/.next/server/app/page.js:1:2992)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at runNextTicks (node:internal/process/task_queues:64:3)
    at listOnTimeout (node:internal/timers:540:9)
    at process.processTimers (node:internal/timers:514:7) {
  digest: '1755028732'
}
for map() i checked if its an array
Blue orchard beeOP
dam nevermind i figured it out. I needed an else statement