cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Unauthorised error while connecting to Built Process automation from CPI via HTTP Receiver Adapter

tharshini74
Explorer
0 Likes
722

Hi All 

We are trying to send ODATA API details to Build Process Automation using an HTTP receiver Adapter.

tharshini_1-1723552179287.png

 

We are using OAUTH2 Client Credentials from BPA in CPI.

But while deploying the iflow ,CPI gives unauthorized error.

tharshini_0-1723551599861.png

 

Please let me know if we are missing here any steps.

Thanks

Priya

 

Accepted Solutions (0)

Answers (2)

Answers (2)

Sankara1
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello Priya,

Thank you for reaching out. The 401 Unauthorized error could be due to an incorrect API endpoint. Please refer to the attached screenshot for more details. Please let us know if you are still facing any issues.

 

tharshini74
Explorer
0 Likes

Hi Sankara

We tried using the mentioned URL,still receiving unauthorised error .

tharshini_0-1724996754854.png

Regards

Priya

Willem_Pardaens
Product and Topic Expert
Product and Topic Expert
0 Likes

Could this error be due to an incorrect API endpoint being used? In the documentation, the API endpoint includes a "/public" segment: https://spa-api-gateway-bpi-eu-prod.cfapps.us10.hana.ondemand.com/public/workflow/rest (see https://api.sap.com/api/SPA_Workflow_Runtime/overview > Configuration Details).

tharshini74
Explorer
0 Likes
Even after including the URL as per documentation ,receiving error as com.sap.it.rt.adapter.http.api.exception.HttpResponseException: An internal server error occured: HTTP operation failed invoking https://spa-api-gateway-bpi-eu-prod.cfapps.eu10.hana.ondemand.com/public/workflow/rest/v1/workflow-i... with statusCode: 415.