domoinc / domo-java-sdk

Java - Domo API SDK
https://developer.domo.com/
MIT License
25 stars 18 forks source link

Cannot convert access token to JSON #12

Closed vikas-tikoo-zefr closed 7 years ago

vikas-tikoo-zefr commented 7 years ago

We have recently started getting the following error intermittently while trying to list the datasets.

Caused by: com.domo.sdk.request.RequestException: Error making request url:https://api.domo.com/v1/datasets?limit=49&offset=0 reponseBody:{\"error\":\"invalid_token\",\"error_description\":\"Cannot convert access token to JSON\"}\n\tat com.domo.sdk.request.Transport.getJson(Transport.java:40)\n\tat com.domo.sdk.datasets.DataSetClient.list(DataSetClient.java:81) Any suggestions?

We use com.domo.sdk.datasets.DataSetClient.list to get hold of the dataset Id, given a dataset name. Is there a better way to resolve a dataset name to id? Thanks!

vikas-tikoo-zefr commented 7 years ago

nvm, it was an issue in our worker environment.