Fix token mismatch issues when using CDSv2.

This commit is contained in:
Greyson Parrelli
2022-09-07 14:18:54 -04:00
committed by Cody Henthorne
parent f1bcc756d3
commit 658741be52
4 changed files with 96 additions and 55 deletions

View File

@@ -549,7 +549,11 @@ public class SignalServiceAccountManager {
if (serviceResponse.getResult().isPresent()) {
return serviceResponse.getResult().get();
} else if (serviceResponse.getApplicationError().isPresent()) {
throw new IOException(serviceResponse.getApplicationError().get());
if (serviceResponse.getApplicationError().get() instanceof IOException) {
throw (IOException) serviceResponse.getApplicationError().get();
} else {
throw new IOException(serviceResponse.getApplicationError().get());
}
} else if (serviceResponse.getExecutionError().isPresent()) {
throw new IOException(serviceResponse.getExecutionError().get());
} else {