My Oracle Support Banner

When Generating an Authentication Token for the Oracle Primavera Cloud Service (OPC) REST API a 500 Error Occurs (Doc ID 2910856.1)

Last updated on MAY 08, 2024

Applies to:

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

Symptoms

When attempting to generate an OAuth token for OPC, the following error occurs.

ERROR
-----------------------
HTTP/1.1 500 Server Error


STEPS
-----------------------

The issue can be reproduced at will with the following steps:
1  Create a user that can access Primavera Oracle Cloud (OPC) web
2  Configure the user permission in OPC as an application administrator and enable the boundary setting to allow API and Gateway access
3. Base encode the username and password. e.g. echo -n '<username>:<password>' | base64
4. Attempt to generate the OAuth Token. e.g. curl --verbose --insecure --include --request POST "https://primavera-eu1.oraclecloud.com/primediscovery/apitoken/request?scope=http://primavera-eu1.oraclecloud.com/api" --header "Authorization: Basic <RESULT FROM STEP 3>”


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.