[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 572
  • Last Modified:

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

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
Tom Knowlton
Asked:
Tom Knowlton
  • 3
  • 3
1 Solution
 
Dan McFaddenSystems EngineerCommented:
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
 
Tom KnowltonWeb developerAuthor Commented:
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
 
Dan McFaddenSystems EngineerCommented:
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Tom KnowltonWeb developerAuthor Commented:
"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
 
Dan McFaddenSystems EngineerCommented:
I would speak with the system administrators or whomever manages the server.

Dan
0
 
Tom KnowltonWeb developerAuthor Commented:
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now