SAP Knowledge Base Article - Preview

3165588 - ODataAdapter remote source using OAuth2 fails with "Cannot generate token. Bad request"


  • Using OData Adapter Remote Source, test connection fails using OAuth2 with error:
    • OAuth2 access token: 'HttpClient.request: OAuth2 request failed with error:
      Response HTTP code: 400
      Response HTTP body: {"status":"400","timeStamp":"2022-03-16T17:41:03+0000","error":{"errorId":"80ed8438-37e3-4f0f-86b2-df7510a8b3c0","message":null,"code":"invalid_request","description":"Cannot generate token. Bad request","details":null}}' at BuiltinProcedure/impl/BP_CheckRemoteSource.cpp:87
  • But Postman connects successfully to the same server using OAuth2.



SAP HANA Smart Data Integration


SAP HANA smart data integration 2.0


KBA , HAN-DP-SDI , SAP HANA smart data integration (SDI) , 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.