We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a4b4ba commit 7884b66Copy full SHA for 7884b66
src/main/java/com/aspose/barcode/cloud/ApiClient.java
@@ -955,6 +955,9 @@ public void requestToken() throws ApiException {
955
.build();
956
957
Response response = httpClient.newCall(request).execute();
958
+ if (response.code() != 200) {
959
+ throw new ApiException("Error fetching token: " + response.message(), response.code());
960
+ }
961
GetAccessTokenResult result =
962
json.deserialize(response.body().string(), GetAccessTokenResult.class);
963
setAccessToken(result.access_token);
0 commit comments