Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

401 response (API key) with local docker hosted server

オープン
#456 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
docker, python
領域
api, backend, devops

調査の方向性

まず、ドキュメントに記載された 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
スター
953
フォーク
192
平均マージ
1日 1時間
マージ済み PR(30日)
5

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Unstructured-IO/unstructured-api のほかの issue

Unstructured-IO/unstructured-api の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。