Hi
I am at lesson 28. when I press the place order button i get error message “Invalid Token”. Which is coming from utils.js in the backend folder. I checked someone had similar issue and a suggestion was to check utils.js. I have no mistake in utils.js but still getting message. I am stuck at this point for almost 1 week. could some body help ?
in the inspect i get below error
- Request URL:http://localhost:5000/api/orders
- Request Method:POST
- Status Code:401 Unauthorized
- Remote Address:[::1]:5000
- Referrer Policy:strict-origin-when-cross-origin
Bassir Answered question March 10, 2023

hi
just an update I have managed to get rid of this problem by changing some settings in the backend utils.js. Now system creates an order in the backend. Only one issue remains, I am getting error where system is unable to read the “data.order._id” in the PlaceOrder.js. I raised a new question regarding it.