REST Invoke API returns HTTP 401 Unauthorized

book

Article ID: 125464

calendar_today

Updated On:

Products

CA Application Test Service Virtualization CA Continuous Application Insight (PathFinder) CA Service Virtualization (DevTest / LISA / VSE / Application Test)

Issue/Introduction

When REST Invoke API call is tested in DevTest, sometimes get the "HTTP 401 Unauthorized" response.

Example API call is "http://host:port/api/Dcm/VSEs/VSE/"

The API call can be tested from Postman, DevTest, SoapUI..

Cause

Here are few causes could give the HTTP Unauthorized response:

. Incorrect header information.
. Incorrect Port number.
 

Environment

Any DevTest environment.

Resolution

Providing the correct Authorization information/Port number should resolve the issue.