Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'utf-8' codec can't decode byte 0xfd in position 63365: invalid start byte #33

Open
banbushi opened this issue Mar 3, 2025 · 1 comment

Comments

@banbushi
Copy link

banbushi commented Mar 3, 2025

`
Traceback (most recent call last):
File "D:\Python\alibabacloud_sample\sample.py", line 55, in main
client.get_logs_with_options('waf-project-1107686368903575-cn-hangzhou', 'waf-logstore', get_logs_request, headers, runtime)
File "C:\Programfiles\Python\3.10.0\lib\site-packages\alibabacloud_sls20201230\client.py", line 10018, in get_logs_with_options
self.execute(params, req, runtime)
File "C:\Programfiles\Python\3.10.0\lib\site-packages\alibabacloud_tea_openapi-0.3.13-py3.10.egg\alibabacloud_tea_openapi\client.py", line 1852, in execute
File "C:\Programfiles\Python\3.10.0\lib\site-packages\alibabacloud_tea_openapi-0.3.13-py3.10.egg\alibabacloud_tea_openapi\client.py", line 1842, in execute
File "C:\Programfiles\Python\3.10.0\lib\site-packages\alibabacloud_gateway_sls-0.3.1-py3.10.egg\alibabacloud_gateway_sls\client.py", line 348, in modify_response
File "C:\Programfiles\Python\3.10.0\lib\site-packages\alibabacloud_tea_util-0.3.13-py3.10.egg\alibabacloud_tea_util\client.py", line 161, in read_as_json
File "C:\Programfiles\Python\3.10.0\lib\site-packages\alibabacloud_tea_util-0.3.13-py3.10.egg\alibabacloud_tea_util\client.py", line 152, in read_as_string
File "C:\Programfiles\Python\3.10.0\lib\site-packages\alibabacloud_tea_util-0.3.13-py3.10.egg\alibabacloud_tea_util\client.py", line 75, in to_string
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfd in position 63365: invalid start byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Python\alibabacloud_sample\sample.py", line 89, in
Sample.main(sys.argv[1:])
File "D:\Python\alibabacloud_sample\sample.py", line 59, in main
chardet.detect(print(error.message))
AttributeError: 'UnicodeDecodeError' object has no attribute 'message'
`

@banbushi
Copy link
Author

banbushi commented Mar 3, 2025

我更改那个 sample.py的文件的编码了,但还是报上边的错误,没效果!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant