Solved

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

Posted on 2016-10-24
6
225 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:Tom Knowlton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 28

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:Tom 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 28

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
Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

 
LVL 5

Author Closing Comment

by:Tom 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 28

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:Tom 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Wordpress Security 29 107
How can I improve my website to a higher score via webometrics rules? 4 96
How to build a web site 17 98
PDF Turn Look 7 32
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
This Micro Tutorial will demonstrate how marketers can use the Mobile Emulation Tool in Chrome Developer Tool. This will let you preview your site on any mobile device.

739 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