Solved

Chrome Developer Tools - more info on 401 (unauthorized) error?

Posted on 2016-10-24
6
67 Views
Last Modified: 2016-10-27
In my Chrome dev tools I am getting the following error:

POST https://api.local.dealersocket.com/api/permissions 401 (Unauthorized)
angular.js:12011 XHR finished loading: POST "https://api.local.dealersocket.com/api/permissions".

Screenshot:

more info

How can I get more info on this error?

I should have access to anything I need since it is our development team working on it.  I just want to get more information so I can ask the right person the right questions.  In other words, can Chrome Dev Tools provide more information?
0
Comment
Question by:knowlton
  • 3
  • 3
6 Comments
 
LVL 26

Expert Comment

by:Dan McFadden
ID: 41858392
An HTTP Error 401 is straight forward, the credentials you are hitting that API with, have not been granted access to the request resource.

To quote wikipedia:


401 Unauthorized (RFC 7235)
Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet been provided. The response must include a WWW-Authenticate header field containing a challenge applicable to the requested resource. See Basic access authentication and Digest access authentication.[33] 401 semantically means "unauthenticated",[34] i.e. the user does not have the necessary credentials.

Note: Some sites issue HTTP 401 when an IP address is banned from the website (usually the website domain) and that specific address is refused permission to access a website.

Link:  https://en.wikipedia.org/wiki/List_of_HTTP_status_codes

Dan
0
 
LVL 5

Author Comment

by:knowlton
ID: 41858675
Dan:

That is a great response and is good information.

Can the Chrome Dev Tools provide even more information about the error in the Console I am asking about?  Not about the nature of 401 errors, but rather I am asking if there is more information available via the Dev Tools interface itself?

I am sorry if I am not being clear.  I am speaking more to the usage of the Dev Tools to investigate the errors that are reported rather than a definition of what a 401 error is.
0
 
LVL 26

Accepted Solution

by:
Dan McFadden earned 500 total points
ID: 41858787
Not really... the HTTP Error codes are telling all that is required to fix the issue.  To be clear, the definition of the 401 is the information that you need to report to whomever manages that endpoint.

The dev tools are for viewing the conversation between your browser and the server.  You will need to research the errors/warnings/info items that the extension is reporting.  Its the same for the Firefox Dev Tools.

Dan
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 5

Author Closing Comment

by:knowlton
ID: 41858849
"Not really... the HTTP Error codes are telling all that is required to fix the issue.  To be clear, the definition of the 401 is the information that you need to report to whomever manages that endpoint."

I did some thinking about it, and I think you are right.  The question becomes, "Who manages the black box that is this endpoint?" - who can explain to me why I am not able to authenticate, given my current credentials?

Thank you for your comments and time spent helping me with this.
0
 
LVL 26

Expert Comment

by:Dan McFadden
ID: 41862379
I would speak with the system administrators or whomever manages the server.

Dan
0
 
LVL 5

Author Comment

by:knowlton
ID: 41862480
Agreed!

I think I can actually take a look at the source code, and even debug it.  I'll have to look into it.  We're not actively developing in the environment, this is all setup and configuration issues I am experiencing.  But anywho - I'm happy with the answer I got.  Thanks again!

Tom
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Read about why website design really matters in today's demanding market.
This video teaches users how to migrate an existing Wordpress website to a new domain.
This Micro Tutorial will demonstrate how to updated your Facebook updates after changing anything in the title or description of a shared article.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now