I am getting the following error while trying to call requestAccessAndRefreshTokens() method after initializing OAuthDesktopMobileAuthCodeGrant(clientId, refreshToken,
API_ENVIRONMENT); in Java 11.
We are using the code snippet as shown below:
The errors we are getting is as follows :
One thing to note here is that this code is working fine on local but while running the same on EC2 instance, we are facing this issue.
Thanks in advance!