Symptom
Calls to the target endpoint through the HTTP receiver adapter in Cloud Integration fail, while direct calls to the same target endpoint succeed. The HTTP receiver is configured to use OAuth 2.0 Client Credentials as the credential type.
Stack trace:
HTTP operation failed invoking url path /oauth/token with statusCode: 400
org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking https://xxxxxxx/xxxxxx/oauth/token with statusCode: 400
at org.apache.camel.component.ahc.DefaultAhcBinding.populateHttpOperationFailedException(DefaultAhcBinding.java:389)
at org.apache.camel.component.ahc.DefaultAhcBinding.onComplete(DefaultAhcBinding.java:331)
at com.sap.esb.camel.http.ahc.configurer.impl.AvatarAhcBinding.onComplete(AvatarAhcBinding.java:378)
at org.apache.camel.component.ahc.AhcProducer$AhcAsyncHandler.onCompleted(AhcProducer.java:157)
at org.apache.camel.component.ahc.AhcProducer$AhcAsyncHandler.onCompleted(AhcProducer.java:115)
at org.asynchttpclient.netty.NettyResponseFuture.loadContent(NettyResponseFuture.java:222)
at org.asynchttpclient.netty.NettyResponseFuture.done(NettyResponseFuture.java:257)
at org.asynchttpclient.netty.handler.AsyncHttpClientHandler.finishUpdate(AsyncHttpClientHandler.java:241)
at org.asynchttpclient.netty.handler.HttpHandler.handleChunk(HttpHandler.java:113)
Read more...
Environment
- Cloud Integration
- SAP Integration Suite
Keywords
cloud integration, cpi, http receiver adapter, oauth2, token cache, security material, credential change, 401 unauthorized, 500 internal server error, xsuaa, token_keys 404, tenant mismatch, brm, bpa, apim , 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.
SAP Knowledge Base Article - Preview