SAP Knowledge Base Article - Preview

3078316 - CPI outbound call to SUNAT failed due to unaccepted User-Agent – Cloud Integration


You want to make an outbound call from Cloud Integration to ‘’ (token service) / ‘’ (actual service) with OAuth2 credentials. However, in Cloud Platform you will receive an HTTP 401 error, but same request will work from Postman.

In the ljs-trace log you will see following error:

2021 04 14 Connection


"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."



SAP Cloud Integration


Cloud Integration all versions


HCI, HANA Cloud Integration, SAP Cloud Platform Integration, SAP Cloud Integration, CPI, OAuth2 credential, Sunat, user-agent, HTTP 401, Postman , KBA , LOD-HCI-PI-CON-HTP , HTTP Adapter , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.