# React course, section calling backend services

**URL:** <https://forum.codewithmosh.com/t/react-course-section-calling-backend-services/2163>\
**Category:** React\
**Created:** [January 21, 2021, 8:28pm UTC](https://forum.codewithmosh.com/t/react-course-section-calling-backend-services/2163 "2021-01-21T20:28:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simran](https://avatars.discourse-cdn.com/v4/letter/s/439d5e/32.png) [@Simran](https://forum.codewithmosh.com/u/Simran)\
**Post date:** [January 21, 2021, 8:28pm UTC](https://forum.codewithmosh.com/t/react-course-section-calling-backend-services/2163/1 "2021-01-21T20:28:44Z")

</div>

![Screenshot (1)](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/1X/2cd547cc210868f648bb77fce6eb5cd97c46856e.png)

I am getting a 401 error every time I click the delete button. I downloaded the source code provided by mosh at the start of the section but still getting the same error.  
Someone, Please help.

---

<div class="post-metadata">

**Author:** ![Augustine\_Awuori](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/augustine_awuori/32/873_2.png) [@Augustine\_Awuori](https://forum.codewithmosh.com/u/Augustine_Awuori)\
**Post date:** [February 6, 2021, 4:15pm UTC](https://forum.codewithmosh.com/t/react-course-section-calling-backend-services/2163/2 "2021-02-06T16:15:09Z")

</div>

Ensure that the current user is an admin. You can manually add in the mongodb. The backend (Node.js) allows only the admin to modify the data. Such as creating, deleting and so on. Exception with status code 401 means unauthorized access.

---

<div class="post-metadata">

**Author:** ![oriya](https://avatars.discourse-cdn.com/v4/letter/o/2bfe46/32.png) [@oriya](https://forum.codewithmosh.com/u/oriya)\
**Post date:** [February 10, 2021, 12:22pm UTC](https://forum.codewithmosh.com/t/react-course-section-calling-backend-services/2163/3 "2021-02-10T12:22:13Z")

</div>

Hii Augustine!  
did you successfully installed the backed vidly-api-node in your folder?  
i installed it but when i run npm test in order to run test on the vidly-api-node i got errors!!  
I think their is a problems with the backed vidly that is existing in the github page…

---

<div class="post-metadata">

**Author:** ![Augustine\_Awuori](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/augustine_awuori/32/873_2.png) [@Augustine\_Awuori](https://forum.codewithmosh.com/u/Augustine_Awuori)\
**Post date:** [February 13, 2021, 6:41am UTC](https://forum.codewithmosh.com/t/react-course-section-calling-backend-services/2163/4 "2021-02-13T06:41:06Z")

</div>

I couldn’t get it from GitHub. I just used the provided folder at the beginning of the section.  
At first I got some errors. And then I ran the following commands:  
npm install node-gyp -g  
npm install bcrypt -g  
npm install bcrypt --save  
This worked for me
