From dc02cd8cb4ea1bc3db33715619ba71297caad8c8 Mon Sep 17 00:00:00 2001 From: yinjiaqi Date: Fri, 17 Jan 2025 15:21:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8DSDK=20=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E5=AF=BC=E8=87=B4=E6=88=AA=E6=96=AD=E6=B5=81?= =?UTF-8?q?=E5=BC=8F=E8=BF=AD=E4=BB=A3=E5=99=A8=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 5 +++++ python/core/_client.py | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 install.sh diff --git a/install.sh b/install.sh new file mode 100644 index 000000000..b7ce022b9 --- /dev/null +++ b/install.sh @@ -0,0 +1,5 @@ +# linux系统快捷安装包shell脚本 +python3 -m pip uninstall appbuilder-sdk -y +rm -rf dist +python3 -u setup.py bdist_wheel +python3 -m pip install dist/*.whl diff --git a/python/core/_client.py b/python/core/_client.py index 2468fe657..5952dd68c 100644 --- a/python/core/_client.py +++ b/python/core/_client.py @@ -114,6 +114,11 @@ def check_response_header(response: requests.Response): """ status_code = response.status_code if status_code == requests.codes.ok: + response_headers = "\n\t".join([f"{key} : {value}" for key, value in response.headers.items()]) + message = "\nrequest_id : {} \nhttp status : {}\nresponse headers : \n\t{}".format( + __class__.response_request_id(response), status_code, response_headers + ) + logger.debug(message) return message = "request_id={} , http status code is {}, body is {}".format( __class__.response_request_id(response), status_code, response.text From 7dbaf79adcf0ac239566c995b6835456c3bf0639 Mon Sep 17 00:00:00 2001 From: yinjiaqi Date: Fri, 17 Jan 2025 15:22:31 +0800 Subject: [PATCH 2/2] update --- install.sh | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 install.sh diff --git a/install.sh b/install.sh deleted file mode 100644 index b7ce022b9..000000000 --- a/install.sh +++ /dev/null @@ -1,5 +0,0 @@ -# linux系统快捷安装包shell脚本 -python3 -m pip uninstall appbuilder-sdk -y -rm -rf dist -python3 -u setup.py bdist_wheel -python3 -m pip install dist/*.whl