My Oracle Support Banner

When Running a Request Using the Oracle Primavera Cloud Service (OPC) REST API the Error "Error 401 Unauthorized" Occcurs (Doc ID 2770346.1)

Last updated on APRIL 22, 2021

Applies to:

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

Symptoms

When attempting to load workspaces or run any request using the OPC REST API, the following error occurs.

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

STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create a bearer token using the OPC authentication service
2. Create a request with the bearer token and headers. For example:
      curl --location --request GET 'https://primavera-eu1.oraclecloud.com/api/restapi/workspace'
            --header 'Content-Type: application/json'
            --header 'x-prime-identity-app: cegbu-prime_primaveracloudwtssapp_EU-FRA_APPID'
            --header 'x-prime-tenant: idcs-1234567890abcdefghijkl'
            --header 'x-prime-tenant-code: idcs-1234567890abcdefghijkl'
            --header 'x-prime-region: EU'
            --header 'Authorization: Bearer '
3. Run the request

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


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