-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React Vidly App Deployment #14
Comments
Whats the error? |
I got a couple of errors on was with "Bycrpt" |
The error was when I was trying to connect Heroku with MongoDB Atlas. I've sorted that already and is all up and running. |
@arielkotch |
@DaniusK I am also trying to complete the React course and am stuck in Lecture 9 of Deployment. What do you mean by you "had to change the version of MDB Atlas string to earlier version"? Upon running
I have no issue connecting to the vidly project via MongoDB Compass. This feels like an issue with how the back-end provided with the course is implemented on m-lab versus MDB Atlas. Because this is a front-end course, Mosh should re-record this section immediately to clarify the process for deploying the back-end. I have been working on this for hours without any results and that is unacceptable |
Hi Greg,
As I remember when I was generating a token or string on Mongo DB to connect it to Heroku I had to chnage the version of Mongo DB to earliest available version and it generates quite longer string than if you choose latest version and then it worked for me. I hope it will work for you.
Thanks
Danius
…________________________________
From: Greg Compton <[email protected]>
Sent: 24 September 2019 02:18
To: mosh-hamedani/vidly-api-node <[email protected]>
Cc: Danius Kvedaras <[email protected]>; Mention <[email protected]>
Subject: Re: [mosh-hamedani/vidly-api-node] React Vidly App Deployment (#14)
@DaniusK<https://github.com/DaniusK> I am also trying to complete the React course and am stuck in Lecture 9 of Deployment.
What do you mean by you "had to change the version of MDB Atlas string to earlier version"?
Upon running heroku open it seems that I am connecting to Mongo Atlas, but I get an error
[ 'MongoError: not authorized on admin to execute command { listIndexes: "users", cursor: { }, $clusterTime: { clusterTime: 6740035423914950658, signature: { hash: [236 31 24 12 51 148 8 126 22 171 160 158 122 222 178 130 35 230 199 57], keyId: 6737669609899425792.000000 } }, lsid: { id: {4 [51 14 151 138 224 82 79 87 137 183 223 166 44 78 33 133]} } }',
I have no issue connecting to the vidly project via MongoDB Compass.
This feels like an issue with how the back-end provided with the course is implemented on m-lab versus MDB Atlas.
Because this is a front-end course, Mosh should re-record this section immediately to clarify the process for deploying the back-end. I have been working on this for hours without any results and that is unacceptable
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#14?email_source=notifications&email_token=AMLCPN462RS6NX7C4QV2A43QLFTGXA5CNFSM4IH7GGRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7MXSDA#issuecomment-534345996>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AMLCPN6LBT4Q47ULFDELWZTQLFTGXANCNFSM4IH7GGRA>.
|
I also tried to fix this but couldn't. Tried all three Node.js versions of the connection string provided by MongoDB Atlas. I also tried different versions of bcrypt. None of this seemed to make a difference. If somebody manages to solve this please share it with the rest of us. Mosh isn't going to solve it that's for sure. |
I guys! Just had this issue. Don't know if you managed to solve it, but this way worked for me:
Now this should be working :) |
Hi andre, Thanks so much. Ur solution helped |
I got the same error when I deploy the node js app. Please follow below to fix this error:
sample connection string : Now it will work. |
Hi @udayaugustin , thanks alot , but this command "npm install -s mongoose" worked for me |
Hi everyone, I just solved this question. And there are some solutions in the below link. Hoping it can help the following people. |
https://forum.codewithmosh.com/t/heroku-deployment-with-mongodb-atlas-failed/1626/5 I fixed it !!!!!!!!!!!! I stuck on it for 2 days!!!!! Steps I followed to fix this issue. First, npm update mongoose Second, Change mongoose.connect(db) mongoose.connect(db, {useNewUrlParser:true, useUnifiedTopology: true}) make sure the connection string does not have (mongodb+srv) copied connection string for node driver version 2.2.12 will look like as shown below. mongodb://:@vidlycluster-shard-00-00.knv7y.mongodb.net:27017,vidlycluster-shard-00-01.knv7y.mongodb.net:27017,vidlycluster-shard-00-02.knv7y.mongodb.net:27017/?ssl=true&replicaSet=atlas-8ezfa5-shard-0&authSource=admin&retryWrites=true&w=majority Four, Five, Hope this helps someone. It was a struggle for me to find this solution. Cheers. Ps: @programmingwithmosh Mlab is now bought by mongodb atlas. If you could update this in your course it would be really grateful. |
guys all you have to do is to update your mongoose package to the latest version by typing and then for getting rid of mongoose warnings in terminal you can modify db.js in startup folder like this |
Hello,
I'm trying to deploy React Vidly App and have a problem with that. In Mosh videos he's using mlab for MongoBD data but this is no longer available. I'm using MongoDB Atlas now and following tutorials but whatever I do the application shows error. Just wonder if there is anything else we need to do to configure the custom-environment-variables.json files as I added "db": "vidly_db" as per video. Any help would be much appreciated.
Danius
The text was updated successfully, but these errors were encountered: