0

I encountered a strange issue. The execute call to get S/4 Business role authorization details, made by using S/4 SDK takes long time, then stopped without throwing an exception. the code used is shown below. The url is https://my300470-api.s4hana.ondemand.com/sap/opu/odata/SAP/APS_IAM_SIAG_BROLE_SRV/getAuthDetails?ID=%27SAP_BR_INVOICING_SPEC_CINV%27&$format=json&sap-client=100&saml2=disabled

The call works for some roles, but for some other roles, it takes long time, then stopped without throwing exception.

List<IagprivilegeauthDetails>       authDataList = new 
   DefaultS4cBusinessRoleMetadataService()

   .getAuthDetails(bRoleId).execute(configContext);
Fred Z
  • 29
  • 3
  • 2
    Can you please clarify what you mean with "it stopped"? Was the list empty/null, did it never return at all? If the call succeeds for some roles but not others it seems that the issue lies with the service you are using. So please get in contact with the creator/maintainer of the service and clarify what the problem is. Please also add your findings as an answer here, so that others might benefit from that! – Christoph Schubert Apr 02 '19 at 07:25
  • As you can see, the service works from browser. Because it is called in batch job, it never comes back without exception. – Fred Z Apr 02 '19 at 14:55
  • 1
    What exactly do you mean by "called in batch job"? Also, are there any stacktraces or logs you can provide? – Dennis H Jul 01 '19 at 06:53

1 Answers1

0

After some investigation and other reports of issues like this we found the problem: A library that we use did not close all HTTP resources properly.

After upgrading the library this should be fixed with version 2.19.0.

Christoph Schubert
  • 1,089
  • 1
  • 8
  • 16