cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Data Access API - Error server response "statuscode": 401 and "Invalid credentials supplied"

Data Access API - Error server response "statuscode": 401 and "Invalid credentials supplied"

Problem:

When the user tries to Authorize using base64encode string (userid:password) in swagger-ui "https://<SiteID>.flexnetoperations.com/data/swagger-ui.html" document page to run Data Access API reports and getting the following error when Click Try it out with the endpoint ../api/v1/report/{group}
{
"statusCode": 401,
"statusMessage": "Invalid credentials supplied."
}

Symptoms:

The user can login successfully into Producer Portal using the same userid and password.

Diagnosis:

Try to check the Curl command after Authorization to know the Basic keyword is present or not

check Curl.JPG

Solution:

The right format as per the authorizations page is below and we need to add Basic word before the base64 encoded token

Basic.JPG

Server Response: 

Response 200.JPG

Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Oct 29, 2021 08:20 AM
Updated by:
Contributors