Use the SAP Cloud SDK for Java to reduce development effort when building applications on SAP Business Technology Platform that communicate with SAP solutions and services such as SAP S/4HANA Cloud, SAP SuccessFactors, and many others.
Apache License 2.0
22
stars
11
forks
source link
OAuth2ServiceException: Error retrieving JWT token, when trying to get Destinations. #587
I have upgraded to use the 5.11.0 version of cloud sdk in my code base. However, when I am trying to get the destinations with the DestinationAccessor, I am getting the excpetion
2024-09-13T05:32:07.996+0000 [APP/PROC/WEB/0] STDOUT Caused by: com.sap.cloud.security.xsuaa.client.OAuth2ServiceException: Error retrieving JWT token. Server URI https://1(sensitive url)/oauth/token. Http status code 401. Response body '{"error":"invalid_client","error_description":"Bad credentials"}'.
Important information:
Your code -- DestinationAccessor.getDestination(destinationName);
Expected outcome -- Destination object
Actual outcome - Error above
The same request with the same destionations was working with cloud sdk version 4.28
But after upgrading to 5.11.0, getting the above error.
Impact / Priority
Our Go live is in a few days. This is of high priority.
Affected development phase: e.g.Release
Impact: Blocked
Timeline: e.g. Go-Live code freeze is due in 1week.
Please paste your stracktrace here within the backticks (replacing this comment)
Application Logs
Cannot paste the complete stack trace due to sensitive information.
Issue Description
I have upgraded to use the 5.11.0 version of cloud sdk in my code base. However, when I am trying to get the destinations with the DestinationAccessor, I am getting the excpetion
2024-09-13T05:32:07.996+0000 [APP/PROC/WEB/0] STDOUT Caused by: com.sap.cloud.security.xsuaa.client.OAuth2ServiceException: Error retrieving JWT token. Server URI https://1(sensitive url)/oauth/token. Http status code 401. Response body '{"error":"invalid_client","error_description":"Bad credentials"}'.
Important information:
The same request with the same destionations was working with cloud sdk version 4.28 But after upgrading to 5.11.0, getting the above error.
Impact / Priority
Our Go live is in a few days. This is of high priority.
Affected development phase: e.g.Release
Impact: Blocked
Timeline: e.g. Go-Live code freeze is due in 1week.
Application Logs Cannot paste the complete stack trace due to sensitive information.
SDK Version:
5.11.0
Project type, for example:
Platform: