microsoft / microsoft/OmniParser

Unauthorized for url: https://huggingface.co/microsoft/Florence-2-base/resolve/main/processor_config.json

Open
#287 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
25.4k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

Traceback (most recent call last):
File "/mnt/datadrive/miniconda3/envs/omni/lib/python3.12/site-packages/huggingface_hub/utils/_http.py", line 409, in hf_raise_for_status
response.raise_for_status()
File "/mnt/datadrive/miniconda3/envs/omni/lib/python3.12/site-packages/requests/models.py", line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/microsoft/Florence-2-base/resolve/main/processor_config.json

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/mnt/datadrive/miniconda3/envs/omni/lib/python3.12/site-packages/transformers/utils/hub.py", line 342, in cached_file
resolved_file = hf_hub_download(
^^^^^^^^^^^^^^^^
File "/mnt/datadrive/miniconda3/envs/omni/lib/python3.12/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/mnt/datadrive/miniconda3/envs/omni/lib/python3.12/site-packages/huggingface_hub/file_download.py", line 862, in hf_hub_download
return _hf_hub_download_to_cache_dir(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/datadrive/miniconda3/envs/omni/lib/python3.12/site-packages/huggingface_hub/file_download.py", line 969, in _hf_hub_download_to_cache_dir
_raise_on_head_call_error(head_call_error, force_download, local_files_only)
File "/mnt/datadrive/miniconda3/envs/omni/lib/python3.12/site-packages/huggingface_hub/file_download.py", line 1486, in _raise_on_head_call_error
raise head_call_error
File "/mnt/datadrive/miniconda3/envs/omni/lib/python3.12/site-packages/huggingface_hub/file_download.py", line 1376, in _get_metadata_or_catch_error
metadata = get_hf_file_metadata(
^^^^^^^^^^^^^^^^^^^^^
File "/mnt/datadrive/miniconda3/envs/omni/lib/python3.12/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/mnt/datadrive/miniconda3/envs/omni/lib/python3.12/site-packages/huggingface_hub/file_download.py", line 1296, in get_hf_file_metadata
r = _request_wrapper(
^^^^^^^^^^^^^^^^^
File "/mnt/datadrive/miniconda3/envs/omni/lib/python3.12/site-packages/huggingface_hub/file_download.py", line 280, in _request_wrapper
response = _request_wrapper(
^^^^^^^^^^^^^^^^^
File "/mnt/datadrive/miniconda3/envs/omni/lib/python3.12/site-packages/huggingface_hub/file_download.py", line 304, in _request_wrapper
hf_raise_for_status(response)
File "/mnt/datadrive/miniconda3/envs/omni/lib/python3.12/site-packages/huggingface_hub/utils/_http.py", line 481, in hf_raise_for_status
raise _format(HfHubHTTPError, str(e), response) from e
huggingface_hub.errors.HfHubHTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/microsoft/Florence-2-base/resolve/main/processor_config.json (Request ID: Root=1-680857af-06e8f7f063b9650603da82c4;a8eeeab6-df25-4ce6-9853-6f3046c8f46b)

Invalid credentials in Authorization header

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the model download from the Hugging Face URL and trace the request through transformers.utils.hub and huggingface_hub.file_download. Determine why the Authorization header is rejected; done means processor_config.json downloads successfully without the 401 error.

Written by the indexing model from the issue text.

Assessment

Tech stack
huggingface, python
Domain
ai, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.