401 response (API key) with local docker hosted server
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
调研方向
首先使用文档中记录的 Docker pull 和 run 命令重现该问题,然后检查 Python UnstructuredClient 的配置,并将其与 issue #407 进行比较。当本地容器接受 Python 客户端的 general.partition 请求且不返回缺少 API 密钥的 401 错误时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
Trying to use a local hosted server from the docker container and accessing with the python api. I get a 401 error API key is missing, please provide an API key in the header". This is the same as #407 except the solution there didn't fix it for me.
To Reproduce
Ubuntu 20.04
docker pull downloads.unstructured.io/unstructured-io/unstructured-api:latest
docker run -p 8000:8000 -d --rm --name unstructured-api downloads.unstructured.io/unstructured-io/unstructured-api:latest
then in python:
client = unstructured_client.UnstructuredClient(
server='free-api',
server_url=os.getenv("http://0.0.0.0:8000/general/v0/general"),
)
# insert quick start example request here
res = client.general.partition(request=req) # this raises the error `SDKError: API error occurred: Status 401`
- 主要语言
- Python
- 星标
- 959
- 派生
- 194
- 平均合并
- 22 小时 3 分钟
- 30 天内合并 PR
- 6
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Unstructured-IO/unstructured-api 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 45/100
-
难度 4/5 3-5 天 新手友好度 39/100
-
难度 3/5 1-2 天 新手友好度 15/100
查看 Unstructured-IO/unstructured-api 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
sususweet/midea_auto_cloud#285 ·
维护者通常 1 天内回复
-
Short positive Table maxlen values produce oversized cells可能已有人在做 @Gambit-Checkmate 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 18 天内回复
-
难度 1/5 1-3 小时 新手友好度 68/100
MangasMango/bound-to-rot#41 · 1 条评论 ·
-
breaking change
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 68/100
dwyl/english-words#244 ·