Skip to content

It cannot be automatically calibrated normally due to the wrong LABEL_STUDIO_API_KEY #845

@fan106

Description

@fan106

label studio can connect to my model, but when i try to auto-label, the studio has no response.below this the out put of my docker
[2025-12-17 05:19:41,131] [DEBUG] [label_studio_ml.api::log_response_info::193] Response body: b'{"detail":"HTTPError: 401 Client Error: Unauthorized for url: http://172.17.0.1:8080/data/upload/3/c29f36f7-mmexport1633684900217.jpg","request":{},"result":{"traceback":"Traceback (most recent call last):\n File \"/opt/conda/lib/python3.10/site-packages/label_studio_ml/exceptions.py\", line 39, in exception_f\n return f(*args, **kwargs)\n File \"/opt/conda/lib/python3.10/site-packages/label_studio_ml/api.py\", line 69, in _predict\n response = model.predict(tasks, context=context, **params)\n File \"/app/mmdetection.py\", line 160, in predict\n prediction = self.predict_one_task(task)\n File \"/app/mmdetection.py\", line 166, in predict_one_task\n image_path = get_local_path(image_url, task_id=task.get('id'))\n File \"/opt/conda/lib/python3.10/site-packages/label_studio_sdk/_extensions/label_studio_tools/core/utils/io.py\", line 188, in get_local_path\n filepath = download_and_cache(\n File \"/opt/conda/lib/python3.10/site-packages/label_studio_sdk/_extensions/label_studio_tools/core/utils/io.py\", line 250, in download_and_cache\n r.raise_for_status()\n File \"/opt/conda/lib/python3.10/site-packages/requests/models.py\", line 1021, in raise_for_status\n raise HTTPError(http_error_msg, response=self)\nrequests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: http://172.17.0.1:8080/data/upload/3/c29f36f7-mmexport1633684900217.jpg\\n"},"status":500}\n'

this seems my api is wrong ,but i ensure the api is my personal access token.
there are the setting in my .yaml

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions