Giter Club home page Giter Club logo

Comments (9)

Abhijay007 avatar Abhijay007 commented on August 25, 2024 1

@Abhijay007 Are you still working on this?

Yes, @Pranav016 sir if you want I will make a new PR with a single commit, now I figured out where I made the mistake.

from wordnook.

Pranav016 avatar Pranav016 commented on August 25, 2024

Sounds good, you want to work on this issue under JWoC or Mexili ? Accordingly I'll add appropriate labels.

from wordnook.

Abhijay007 avatar Abhijay007 commented on August 25, 2024

Sounds good, you want to work on this issue under JWoC or Mexili ? Accordingly I'll add appropriate labels.

Mexilli

from wordnook.

Abhijay007 avatar Abhijay007 commented on August 25, 2024

sir, I am getting this error while starting the project on the browser (http://localhost:3000/)

(node:10824) UnhandledPromiseRejectionWarning: MongooseError: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string.
    at NativeConnection.Connection.openUri (C:\Users\user\Desktop\Blog Site\BlogSite\node_modules\mongoose\lib\connection.js:693:11)
    at C:\\notmyusername\user\Desktop\Blog Site\BlogSite\node_modules\mongoose\lib\index.js:345:10
    at C:\\notmyusername\user\Desktop\Blog Site\BlogSite\node_modules\mongoose\lib\helpers\promiseOrCallback.js:31:5
    at new Promise (<anonymous>)
    at promiseOrCallback (C:\Users\user\Desktop\Blog Site\BlogSite\node_modules\mongoose\lib\helpers\promiseOrCallback.js:30:10)
    at Mongoose._promiseOrCallback (C:\notmyusername\user\Desktop\Blog Site\BlogSite\node_modules\mongoose\lib\index.js:1135:10)
    at Mongoose.connect (C:\\notmyusername\user\Desktop\Blog Site\BlogSite\node_modules\mongoose\lib\index.js:344:20)
    at Object.<anonymous> (C:\\notmyusername\user\Desktop\Blog Site\BlogSite\app.js:50:10)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47
(Use `node --trace-warnings ...` to show where the warning was created)
(node:10824) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:10824) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

do I need to install anything else other than the setup mentioned in the project readme?

from wordnook.

Pranav016 avatar Pranav016 commented on August 25, 2024

sir, I am getting this error while starting the project on the browser (http://localhost:3000/)

(node:10824) UnhandledPromiseRejectionWarning: MongooseError: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string.
    at NativeConnection.Connection.openUri (C:\Users\user\Desktop\Blog Site\BlogSite\node_modules\mongoose\lib\connection.js:693:11)
    at C:\\notmyusername\user\Desktop\Blog Site\BlogSite\node_modules\mongoose\lib\index.js:345:10
    at C:\\notmyusername\user\Desktop\Blog Site\BlogSite\node_modules\mongoose\lib\helpers\promiseOrCallback.js:31:5
    at new Promise (<anonymous>)
    at promiseOrCallback (C:\Users\user\Desktop\Blog Site\BlogSite\node_modules\mongoose\lib\helpers\promiseOrCallback.js:30:10)
    at Mongoose._promiseOrCallback (C:\notmyusername\user\Desktop\Blog Site\BlogSite\node_modules\mongoose\lib\index.js:1135:10)
    at Mongoose.connect (C:\\notmyusername\user\Desktop\Blog Site\BlogSite\node_modules\mongoose\lib\index.js:344:20)
    at Object.<anonymous> (C:\\notmyusername\user\Desktop\Blog Site\BlogSite\app.js:50:10)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47
(Use `node --trace-warnings ...` to show where the warning was created)
(node:10824) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:10824) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

do I need to install anything else other than the setup mentioned in the project readme?

Read the setup in the README carefully, you have not changed the url in app.js.

from wordnook.

Abhijay007 avatar Abhijay007 commented on August 25, 2024

Read the setup in the README carefully, you have not changed the url in app.js.

sir, do I need to change this part:
of app.js

//Connecting to Mongo Database using ODM Mongoose-
const URL = process.env.URL;
mongoose.connect(URL, {useNewUrlParser: true, useUnifiedTopology: true});

from wordnook.

Pranav016 avatar Pranav016 commented on August 25, 2024
const URL = process.env.URL;

Only this

from wordnook.

Abhijay007 avatar Abhijay007 commented on August 25, 2024
const URL = process.env.URL;

Only this

ok, thanks Sir !!

from wordnook.

Pranav016 avatar Pranav016 commented on August 25, 2024

@Abhijay007 Are you still working on this?

from wordnook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.