Unable to generate API token
Wednesday, May 12, 2021 at 08:53amHello,
I am in the process of testing the migration of API key to API Token. I created a client app in the test account, got the client id and client secret. But I can't retrieve the Token API from the ApiTokenConfig
Here is the error message I get:
Caused by: java.lang.RuntimeException: com.silanis.esl.sdk.EslException: Unable to create access token for ApiTokenConfig{baseUrl='http://localhost:8881/api', clientAppId='.......................', clientAppSecret='................', tokenType=OWNER, senderEmail='null'}
I hid clientAppId and clientAppSecret by dots
Is there a configuration missing on your side so that I can retrieve the ApiToken?
Thanks
Reply to: Unable to generate API token
Wednesday, May 12, 2021 at 09:09amHi Amine,
From the error message:
-Are you specifying the base URL as "http://localhost:8881/api"? Have you set up a reverse proxy at local?
-Could you also try to remove the "/api" in the path?
-Are you able to make SDK calls with this endpoint, instead of the actual OSS instance URL?
Duo
Reply to: Unable to generate API token
Wednesday, May 12, 2021 at 10:20amThanks @Duo_Liang
The problem was in the base URL.