This Serverless Function has timed out.Your connection is working correctly. Vercel is working correctly.
please reply guys for this error.
Check External API Calls: Split Functionality: Optimize Your Code: Use Asynchronous Operations:Check your code and again review this point
Check External API Calls: Split Functionality: Optimize Your Code: Use Asynchronous Operations:Check your code and again review this point
Bro please can you help me bit. I am new to Nextjs . I did not understand can you explain me in detail . Help me bro
Your connection is working correctly.
Vercel is working correctly. how to add .env file in vercel deploy
did ya figure it out?
Check External API Calls: Split Functionality: Optimize Your Code: Use Asynchronous Operations:Check your code and again review this point
Bro please can you help me bit. I am new to Nextjs . I did not understand can you explain me in detail . Help me bro
Yes Where you got the error tell me.
This Edge Function has crashed. Your connection is working correctly.
Vercel is working correctly. how to add .env file in vercel deploy
When you deploy your project then follew these steps:-
- Open your project link go to varcel.
- Go to Setting.
- Go to Enviornment Veriable.
- Copy Each and envery .env.local file string and correspoded to secrekey and paste here. Then Your Project work well.
Its a mongoDB error, just change your network access setting and change the ip to 0.0.0.0
Its a mongoDB error, just change your network access setting and change the ip to 0.0.0.0
lmao. it was that easy. thanks
@aftab404 Thanks. I was stumbled whole day for this error.
Its a mongoDB error, just change your network access setting and change the ip to 0.0.0.0
thanks
Its a mongoDB error, just change your network access setting and change the ip to 0.0.0.0
ok, does this happen because the app is trying to access the db but this ap is not added to have access, thus creating the error?
0.0.0.0 means anyone can access your backend, else you can check your specific pc or server ip and use that instead
On Thu 18. Jan 2024 at 10:11 PM, Rares @.***> wrote:
Its a mongoDB error, just change your network access setting and change the ip to 0.0.0.0
ok, does this happen because the app is trying to access the db but this ap is not added to have access, thus creating the error?
— Reply to this email directly, view it on GitHub https://github.com/adrianhajdin/threads/issues/22#issuecomment-1899210593, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOE6WIJV5JXIFVRHIQQ5IW3YPGFZFAVCNFSM6AAAAAA3GBMXXKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJZGIYTANJZGM . You are receiving this because you were mentioned.Message ID: @.***>
Its a mongoDB error, just change your network access setting and change the ip to 0.0.0.0
Bro, you save my day.
Its a mongoDB error, just change your network access setting and change the ip to 0.0.0.0
it was 0.0.0.0 by default, error is not solved
how can i solve this issue,,
it was 0.0.0.0 by default.
Got the same error.
This can happen when your database is not connected,
In my case , it got fixed when (i successfully connect to mongodb) i.e i add await connectMongoDB(); just before calling "await User.findOne()"
example : //connectMongoDB looks like this :
import mongoose from "mongoose"; export const connectMongoDB = async () => { try { await mongoose.connect(process.env.MONGODB_URI); console.log("Connected to MongoDB"); } catch (error) { console.log("Error connecting to MongoDB: ", error); } }; //part of callback function in auth.ts
import { connectMongoDB } from '@/lib/mongodb'; async session({ session }) { await connectMongoDB(); if (session?.user?.email) { const sessionUser = await User.findOne({ email: session.user.email }); if (sessionUser) { // Safely assign id only if sessionUser is found session.user.id = sessionUser._id.toString(); console.log('userId', session.user.id); } } return session; },
Its a mongoDB error, just change your network access setting and change the ip to 0.0.0.0
AAA SI HAPPY WITH THIS!
Its a mongoDB error, just change your network access setting and change the ip to 0.0.0.0
God bless you.......
Its working
Its a mongoDB error, just change your network access setting and change the ip to 0.0.0.0
GOD 🛐
This Edge Function has crashed.
Your connection is working correctly.