# React course deployment error

**URL:** <https://forum.codewithmosh.com/t/react-course-deployment-error/872>\
**Category:** Uncategorized\
**Created:** [November 23, 2020, 9:01pm UTC](https://forum.codewithmosh.com/t/react-course-deployment-error/872 "2020-11-23T21:01:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kukabshakiL125](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@kukabshakiL125](https://forum.codewithmosh.com/u/kukabshakiL125)\
**Post date:** [November 23, 2020, 9:01pm UTC](https://forum.codewithmosh.com/t/react-course-deployment-error/872/1 "2020-11-23T21:01:29Z")

</div>

help me i stuck from last 3 days here is my mongodb atlas connect

 ![yuefg](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/1X/2609de82f7eef20547908d7dbfd28e88b12be439.png)  
after this I go to terminal and paste this command  
heroku config:set vidly\_db=“mongodb+srv://kukab:kokabsaqib40@vidly.gtszv.mongodb.net/vidly?retryWrites=true&w=majority”

i put inverted “” comma from “mongodb at the end of majority” and I get the error “w” is not recognized

 ![ygy](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/1X/5b271b42f006f1d3e4e253ae0f2a0a4777259af7.png)  
when I type heroku open it shows me  
 ![sdgsk](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/1X/bd744f2d1b90aef0c873a32e293271baf82b2959.png)  
when I do logs I found following error  
 ![awgfue](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/1X/4e13796891a0d9e7ff8d6fc4c8297fc449906406.png)

---

<div class="post-metadata">

**Author:** ![A100D-JS](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/a100d-js/32/8_2.png) [@A100D-JS](https://forum.codewithmosh.com/u/A100D-JS)\
**Post date:** [November 24, 2020, 8:08am UTC](https://forum.codewithmosh.com/t/react-course-deployment-error/872/2 "2020-11-24T08:08:16Z")

</div>

Hi,  
Check this thread and see if that helps :

> [@Heroku mongodb deployment error React course](https://forum.codewithmosh.com/t/heroku-mongodb-deployment-error-react-course/297):
>
> I get an error when trying to connect heroku to mongodb atlas. In the logs, I do see a message on connection to db being successful but the following error happens: MongoError: (Unauthorized) not authorized on admin to execute command { listIndexes: “users”, cursor: { }, $clusterTime: { clusterTime: {1603819118 3}, signature: … It appears this was posted once in the forum but it can no longer be found. Any help to fix this would be greatly appreciated. Thanks, Roshin
