skip to Main Content

As soon as the page loads I get the above error where do I get the authentication token.

I was expecting that after the required installation and downgraded to node v 16 it would work normally.
The react page loads and I immediately see this error.
What should I do?

2

Answers


  1. In your code maybe you are calling some API that requires an authentication header like, "Authorization": "Bearer your_token".

    Generally, a 401 error means unauthorized access. so please check your API calling code and make sure you are passing an Authorization token to the API.

    Hope this helps, Thank you.

    Login or Signup to reply.
  2. You can use browser inspector –> Go to network tab and check which specific API call is returning 401 response and check that specific part of the code

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search