Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shnulailai opened this issue Sep 4, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@shnulailai
Copy link

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 shnulailai added the bug Something isn't working label Sep 4, 2024
@pzc163
Copy link

pzc163 commented Sep 4, 2024

same error

@taprosoft
Copy link
Collaborator

This is to be some random HuggingFace Hub down time. Please check this issue from Gradio gradio-app/gradio#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.

@mayulu
Copy link

mayulu commented Sep 11, 2024

Same error, after tried:

$GRADIO_ANALYTICS_ENABLED=false python app.py

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants