rakibtweets / dev_overflow_nextjs13

Dev Overflow is a problem-solving community platform designed to enhance user engagement and streamline the job application process. Built with Next.js, Clerk, and MongoDB, this platform addresses real-world challenges by providing a user-friendly interface and efficient workflows.
https://dev-overflow-nextjs13-rakibtweets.vercel.app/
15 stars 8 forks source link

Example ENV #1

Closed muhamdaily closed 9 months ago

muhamdaily commented 10 months ago

Hello, can you provide an ENV example?

rakibtweets commented 10 months ago

You can see Readme.md file, where I have provided EVN variable, Please use your own ENV variable to run this project.

muhamdaily commented 10 months ago
NEXT_PUBLIC_SERVER_URL=
...
NEXT_PUBLIC_RAPID_API_KEY=

I want to see that env above what value? Because I don't understand the ENV above, I have filled in the other ENVs

rakibtweets commented 10 months ago

NEXT_PUBLIC_SERVER_URL it's a server URL where code is running, this can be localhost or deployed public url.

NEXT_PUBLIC_RAPID_API_KEY is from https://rapidapi.com/ for job search api.

muhamdaily commented 10 months ago

Ah ok, I understand but I got an error on the MongoDB URL

MongoDB is connected
MongoDB connection failed Error: querySrv ENOTFOUND _mongodb._tcp.mimobot.bwvqjdu.mongodb.net
    at QueryReqWrap.onresolve [as oncomplete] (node:internal/dns/promises:275:17)
    at QueryReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
  errno: undefined,
  code: 'ENOTFOUND',
  syscall: 'querySrv',
  hostname: '_mongodb._tcp.mimobot.bwvqjdu.mongodb.net'
}

MongooseError: Operation `questions.find()` buffering timed out after 10000ms
    at Timeout.<anonymous> (D:\development\Apps\community\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:186:23)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)
 ⨯ Internal error: MongooseError: Operation `questions.find()` buffering timed out after 10000ms
    at Timeout.<anonymous> (D:\development\Apps\community\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:186:23)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)
MongooseError: Operation `questions.find()` buffering timed out after 10000ms
    at Timeout.<anonymous> (D:\development\Apps\community\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:186:23)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)
 ⨯ Internal error: MongooseError: Operation `questions.find()` buffering timed out after 10000ms
    at Timeout.<anonymous> (D:\development\Apps\community\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:186:23)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)
digest: "865127199"
 ⨯ Internal error: MongooseError: Operation `questions.find()` buffering timed out after 10000ms
    at Timeout.<anonymous> (D:\development\Apps\community\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:186:23)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)
 ⨯ Internal error: MongooseError: Operation `questions.find()` buffering timed out after 10000ms
    at Timeout.<anonymous> (D:\development\Apps\community\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:186:23)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)
digest: "865127199"
muhamdaily commented 10 months ago

And if I may ask, what endpoints do you take on the clerk webhook?

NEXT_CLERK_WEBHOOK_SECRET=

rakibtweets commented 10 months ago

And if I may ask, what endpoints do you take on the clerk webhook?

NEXT_CLERK_WEBHOOK_SECRET= You need to learn what webhook is. Its a event listener for clerk authentication and user profile management such as user profile update, delete, create etc.

rakibtweets commented 10 months ago

Ah ok, I understand but I got an error on the MongoDB URL

MongoDB is connected
MongoDB connection failed Error: querySrv ENOTFOUND _mongodb._tcp.mimobot.bwvqjdu.mongodb.net
    at QueryReqWrap.onresolve [as oncomplete] (node:internal/dns/promises:275:17)
    at QueryReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
  errno: undefined,
  code: 'ENOTFOUND',
  syscall: 'querySrv',
  hostname: '_mongodb._tcp.mimobot.bwvqjdu.mongodb.net'
}

MongooseError: Operation `questions.find()` buffering timed out after 10000ms
    at Timeout.<anonymous> (D:\development\Apps\community\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:186:23)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)
 ⨯ Internal error: MongooseError: Operation `questions.find()` buffering timed out after 10000ms
    at Timeout.<anonymous> (D:\development\Apps\community\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:186:23)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)
MongooseError: Operation `questions.find()` buffering timed out after 10000ms
    at Timeout.<anonymous> (D:\development\Apps\community\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:186:23)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)
 ⨯ Internal error: MongooseError: Operation `questions.find()` buffering timed out after 10000ms
    at Timeout.<anonymous> (D:\development\Apps\community\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:186:23)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)
digest: "865127199"
 ⨯ Internal error: MongooseError: Operation `questions.find()` buffering timed out after 10000ms
    at Timeout.<anonymous> (D:\development\Apps\community\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:186:23)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)
 ⨯ Internal error: MongooseError: Operation `questions.find()` buffering timed out after 10000ms
    at Timeout.<anonymous> (D:\development\Apps\community\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:186:23)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)
digest: "865127199"

It's a mongodb connection error on your side, please check your connection URL and Database accesspoint.

muhamdaily commented 10 months ago

Thank you very much for your help, I'll try to check it out