-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Description
Contact Information
MaxKB Version
v2.3.0 (build at 2025-11-03T11:29, commit: d636d6e)
Problem Description
版本:v2.3.0 (build at 2025-11-03T11:29, commit: d636d6e)
问题:
写一个函数,提取文件内容。参考问题回复:#4662 (comment)
文件地址为:文件是存到数据库中的,可以通过url获取url为:http://服务域名/oss/file/文档id
但是搭建工作流的时候,报如下错误:
Exception:[Errno 13] Permission denied: 'https://192.168.0.19/oss/file/019c0dce-927e-7701-b0bb-379a99a8412b
增加端口也报错:
Exception:[Errno 13] Permission denied: 'https://192.168.0.19:8380/oss/file/019c0dd7-84eb-7b62-8e00-d9a8cb36eb6b'
Steps to Reproduce
- 创建函数
函数代码:
def read_file(file_id):
res = ''path = 'https://192.168.0.19/oss/file/'+file_id
path = 'https://192.168.0.19:8380/oss/file/'+file_id
with open(path) as inf:
res = ''.join([line.strip() for line in inf])
return res - 创建工作流
开始,
指定回复,获取id:{{开始.document[0]["file_id"]}}
函数 - 上传文件
- 运行报错
The expected correct result
No response
Related log output
Additional Information
No response
Metadata
Metadata
Assignees
Labels
No labels