Comments (9)
@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.
Sounds good, you want to work on this issue under JWoC or Mexili ? Accordingly I'll add appropriate labels.
from wordnook.
Sounds good, you want to work on this issue under JWoC or Mexili ? Accordingly I'll add appropriate labels.
Mexilli
from wordnook.
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.
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.
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.
const URL = process.env.URL;
Only this
from wordnook.
const URL = process.env.URL;
Only this
ok, thanks Sir !!
from wordnook.
@Abhijay007 Are you still working on this?
from wordnook.
Related Issues (20)
- Improving the footer HOT 6
- Dark Mode HOT 4
- Add LGM-SOC to README HOT 4
- Remove text shadow in the footer text HOT 4
- Add LGM-SOC'21 score card in readme.md HOT 5
- add and move badges to the top HOT 5
- Size of delete button in Firefox HOT 2
- Delete the unused uploaded images from the disk storage HOT 3
- Add error 404 page HOT 4
- "?" is missing in "Looking for something..." HOT 3
- Add a mailto: link from email in footer HOT 6
- Footer section HOT 8
- Dark Mode HOT 5
- Two Factor Authentication HOT 1
- Google Sign In Feature HOT 7
- Add PSoC to open-source event list HOT 5
- Bug in the search feature on the home page HOT 5
- Bug in the cancel button of edit page HOT 8
- Application not opening HOT 5
- Add Developer days to Programs section in README HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordnook.