My Oracle Support Banner

Error "401 Unauthorized" When Sending Any REST API Call To Unifier (Doc ID 2960842.1)

Last updated on JULY 18, 2023

Applies to:

Primavera Unifier Cloud Service - Version 23.5 and later
Information in this document applies to any platform.

Symptoms

An Integration client is configured to send REST API calls to Unifier and then immediately after that call is successful, the REST client is configured to send a "Basic Authentication V1 or V2" call to reset the Integration User Authentication token. The desired goal is to ensure that the Authorization Token is not valid for more than ten minutes at a time. This was working as expected until the Unifier environments were upgraded to Unifier version 23.5. After the upgrade the REST client began logging "401 Unauthorized" errors. It was found that the Integration User Token "Expiry Duration" was set to 10 minutes. In order to correct the issue or prevent the "401 Unauthorized" error, the "Expiry Duration" was changed to 10 hours and the error did not occur any longer.

ERROR
-----------------------
401 Unauthorized

STEPS
-----------------------
The issue can be reproduced at will with the following steps:

  1. REST client integrations are configured to run a REST API call and then send a Basic Authentication V1 or V2 call to reset the Auth Token.
  2. REST calls were successful when the environment was at Unifier version 23.3 but at some point they were upgraded to 23.5.
  3. After the Unifier upgrade, the REST API calls began failing with "401 Unauthorized" errors.
  4. The Integration User Auth Token was confirmed to still be valid, so that didn't account for the error.

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.