|
/

使用 python SDK 上传符号表失败

Zz*
发布于 2 年前
1270来自广东省
应用性能监控 U-APM
API调用

使用 Python 示例:

https://developer.umeng.com/docs/193624/detail/194577#a2bbedf0792xc

报错如下:

Traceback (most recent call last):

File "xxx/upload_to_umeng.py", line 60, in main

client.upload_symbol_file_advance(upload_symbol_file_request, headers, util_models.RuntimeOptions())

File "/Users/zengyu.zhan/Downloads/Archive/path/to/venv/lib/python3.12/site-packages/alibabacloud_umeng_apm20220214/client.py", line 1285, in upload_symbol_file_advance

auth_response = auth_client.authorize_file_upload_with_options(auth_request, runtime)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "xxx/path/to/venv/lib/python3.12/site-packages/alibabacloud_openplatform20191219/client.py", line 67, in authorize_file_upload_with_options

self.call_api(params, req, runtime)

File "xxx/path/to/venv/lib/python3.12/site-packages/alibabacloud_tea_openapi/client.py", line 1915, in call_api

return self.do_request(params, request, runtime)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "xxx/path/to/venv/lib/python3.12/site-packages/alibabacloud_tea_openapi/client.py", line 1412, in do_request

raise e

File "xxx/path/to/venv/lib/python3.12/site-packages/alibabacloud_tea_openapi/client.py", line 1347, in do_request

_response = TeaCore.do_action(_request, _runtime)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "xxx/path/to/venv/lib/python3.12/site-packages/Tea/core.py", line 182, in do_action

timeout = (int(connect_timeout) / 1000, int(read_timeout) / 1000)

^^^^^^^^^^^^^^^^^^^^

TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "xxx/upload_to_umeng.py", line 92, in <module>

Sample.main(sys.argv[1:])

File "xxx/upload_to_umeng.py", line 63, in main

UtilClient.assert_as_string(error.message)

^^^^^^^^^^^^^

AttributeError: 'TypeError' object has no attribute 'message'

1个回答
 
2 年前
来自浙江省

你好,可以在官网提交工单核实

Loading ...
登录社区,分享你的经验