Merge branch 'master', remote-tracking branch 'origin' into release_v1.9.47
This commit is contained in:
commit
97a8a40df4
|
|
@ -111,8 +111,12 @@ public class OpenAiPlugin extends BasePlugin {
|
||||||
|
|
||||||
if (HttpStatusCode.valueOf(401).isSameCodeAs(statusCode)) {
|
if (HttpStatusCode.valueOf(401).isSameCodeAs(statusCode)) {
|
||||||
actionExecutionResult.setIsExecutionSuccess(false);
|
actionExecutionResult.setIsExecutionSuccess(false);
|
||||||
actionExecutionResult.setErrorInfo(
|
String errorMessage = "";
|
||||||
new AppsmithPluginException(AppsmithPluginError.PLUGIN_AUTHENTICATION_ERROR));
|
if (responseEntity.getBody() != null && responseEntity.getBody().length > 0) {
|
||||||
|
errorMessage = new String(responseEntity.getBody());
|
||||||
|
}
|
||||||
|
actionExecutionResult.setErrorInfo(new AppsmithPluginException(
|
||||||
|
AppsmithPluginError.PLUGIN_AUTHENTICATION_ERROR, errorMessage));
|
||||||
return Mono.just(actionExecutionResult);
|
return Mono.just(actionExecutionResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user