[help]-Agent Zero v0.9.7 - Projects can't download files a0 created
when i download the files a0 created ,errors log below,how to fix it?
ERROR [werkzeug] Error on request:
Traceback (most recent call last):
File "/opt/venv-a0/lib/python3.12/site-packages/werkzeug/serving.py", line 370, in run_wsgi
execute(self.server.app)
File "/opt/venv-a0/lib/python3.12/site-packages/werkzeug/serving.py", line 334, in execute
write(data)
File "/opt/venv-a0/lib/python3.12/site-packages/werkzeug/serving.py", line 274, in write
self.send_header(key, value)
File "/opt/pyenv/versions/3.12.4/lib/python3.12/http/server.py", line 526, in send_header
("%s: %s\r\n" % (keyword, value)).encode('latin-1', 'strict'))
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 43-47: ordinal not in range(256)
ERROR [werkzeug] Error on request:
Traceback (most recent call last):
File "/opt/venv-a0/lib/python3.12/site-packages/werkzeug/serving.py", line 370, in run_wsgi
execute(self.server.app)
File "/opt/venv-a0/lib/python3.12/site-packages/werkzeug/serving.py", line 334, in execute
write(data)
File "/opt/venv-a0/lib/python3.12/site-packages/werkzeug/serving.py", line 274, in write
Can you provide one of the files so that we can test on our end? Thank you.
Or, does your filename contain non latin characters? Can you provide the full file name? Thanks.
Ok, I found it, the problem seems to be in file name, I fixed it in development and will push it with the next version.
If you want to patch your version, you can copy this file https://github.com/agent0ai/agent-zero/blob/development/python/api/download_work_dir_file.py into your corresponding file. You can tell A0 to do it for you and just restart it.
Thanks
Jan, Thank you for reply me,I found if downlowd all of output file is ok,but the single file is error I can downlowd output.zip,but I can't downlowd 01_案件分析 file or起诉状.md maybe don't support chinese? or the file name is too long? thank again!
Agent Zero is great!
------------------ 原始邮件 ------------------ 发件人: "agent0ai/agent-zero" @.>; 发送时间: 2025年11月20日(星期四) 晚上8:18 @.>; @.@.>; 主题: Re: [agent0ai/agent-zero] [help]-Agent Zero v0.9.7 - Projects can't download files a0 created (Issue #816)
frdel left a comment (agent0ai/agent-zero#816)
Can you provide one of the files so that we can test on our end? Thank you.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>