You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by pe...@apache.org on 2022/12/14 11:39:54 UTC

[incubator-linkis] branch dev-1.3.2 updated: fix DWSResult exception (#4001)

This is an automated email from the ASF dual-hosted git repository.

peacewong pushed a commit to branch dev-1.3.2
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git


The following commit(s) were added to refs/heads/dev-1.3.2 by this push:
     new 34deec228 fix DWSResult exception (#4001)
34deec228 is described below

commit 34deec228b158ba3006da17d7ecee0b4fe59dadd
Author: GuoPhilipse <46...@users.noreply.github.com>
AuthorDate: Wed Dec 14 19:39:48 2022 +0800

    fix DWSResult exception (#4001)
---
 .../scala/org/apache/linkis/httpclient/dws/response/DWSResult.scala   | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-httpclient-support/src/main/scala/org/apache/linkis/httpclient/dws/response/DWSResult.scala b/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-httpclient-support/src/main/scala/org/apache/linkis/httpclient/dws/response/DWSResult.scala
index 3f00f61f5..bada2315c 100644
--- a/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-httpclient-support/src/main/scala/org/apache/linkis/httpclient/dws/response/DWSResult.scala
+++ b/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-httpclient-support/src/main/scala/org/apache/linkis/httpclient/dws/response/DWSResult.scala
@@ -82,9 +82,7 @@ trait DWSResult extends Logging with HttpResult {
       this.url = url
       this.contentType = contentType
     } { case e: Exception =>
-      throw new HttpClientResultException(
-        s"URL $url request failed! ResponseBody is $responseBody. ${e.getMessage}"
-      )
+      logger.error(e.getMessage())
     }
 
   }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org