Solved

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

Posted on 2016-10-24
6
44 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
This Micro Tutorial demonstrates how to disable your ad blocker for some sites. In case Marketers would like to see ads on a site, this allows them to possibly view their competitors without have ads run on every site they visit.
This Micro Tutorial demonstrates how to quickly find related content for YourTango's posts using MozBar Chrome extension.

760 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

19 Experts available now in Live!

Get 1:1 Help Now