kotaemon icon indicating copy to clipboard operation
kotaemon copied to clipboard

[BUG] - <title>requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Open shnulailai opened this issue 1 year ago • 3 comments

Description

Hi: Thank you for your great work,but when I start this project,I meet some problems,how to do?Thinks to help.

Traceback (most recent call last): File "/mnt/workspace/lailai/RAG/kotaemon/app.py", line 15, in app = App() File "/mnt/workspace/lailai/RAG/kotaemon/libs/ktem/ktem/app.py", line 42, in init self._theme = gr.Theme.from_hub("lone17/kotaemon") File "/mnt/workspace/lailai/env/anaconda3/envs/kotaemon/lib/python3.10/site-packages/gradio/themes/base.py", line 187, in from_hub space_info = api.space_info(name) File "/mnt/workspace/lailai/env/anaconda3/envs/kotaemon/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "/mnt/workspace/lailai/env/anaconda3/envs/kotaemon/lib/python3.10/site-packages/huggingface_hub/hf_api.py", line 2520, in space_info data = r.json() File "/mnt/workspace/lailai/env/anaconda3/envs/kotaemon/lib/python3.10/site-packages/requests/models.py", line 978, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Reproduction steps

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

Screenshots

![DESCRIPTION](LINK.png)

Logs

No response

Browsers

No response

OS

No response

Additional information

No response

shnulailai avatar Sep 04 '24 10:09 shnulailai

same error

pzc163 avatar Sep 04 '24 12:09 pzc163

This is to be some random HuggingFace Hub down time. Please check this issue from Gradio https://github.com/gradio-app/gradio/issues/1450

You can try to set GRADIO_ANALYTICS_ENABLED=false to see if this fixes the issue. Or, just wait for some time and launch the app again.

taprosoft avatar Sep 04 '24 13:09 taprosoft

Same error, after tried:

$GRADIO_ANALYTICS_ENABLED=false python app.py

Also same error. Host envirement: conda, python3.10, macOS

mayulu avatar Sep 11 '24 05:09 mayulu