hugchat icon indicating copy to clipboard operation
hugchat copied to clipboard

ChatError: Failed to parse response: {"type":"status","status":"started"}

Open samedovzaur opened this issue 1 year ago • 9 comments

It gives the same error although code is correct for sure checked couple of times.

samedovzaur avatar Sep 20 '23 16:09 samedovzaur

Yes, started happening today. Was working fine before.

hpsc3 avatar Sep 20 '23 18:09 hpsc3

I made it work like 10 mins before this error but it still gives the error I think it is something related to hf login process cuz there is not any wrong thing in the code(As I assume)

samedovzaur avatar Sep 20 '23 18:09 samedovzaur

Traceback (most recent call last): File "/home/ubuntu/.local/lib/python3.6/site-packages/hugchat/hugchat.py", line 263, in chat obj = json.loads(res[1:-1]) File "/usr/local/lib/python3.6/json/init.py", line 354, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.6/json/decoder.py", line 342, in decode raise JSONDecodeError("Extra data", s, end) json.decoder.JSONDecodeError: Extra data: line 1 column 7 (char 6)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "solr2.py", line 157, in result = call_nlp_api(url, subject, standard_level, searchinput, email, passwd) File "solr2.py", line 9, in call_nlp_api chat_response = start_chat_with_bot(email, passwd, searchinput) File "solr2.py", line 146, in start_chat_with_bot chat_response = start_chat(email, passwd, input_text) File "solr2.py", line 132, in start_chat use_cache=True # Enable response caching File "/home/ubuntu/.local/lib/python3.6/site-packages/hugchat/hugchat.py", line 267, in chat raise ChatError(f"Failed to parse response: {res}") hugchat.exceptions.ChatError: Failed to parse response: {"type":"status","status":"started"}

AravindRohit avatar Sep 22 '23 06:09 AravindRohit

For me it is getting this error from yesterday but my code is correct from yesterday only it is getting error how to solve this

AravindRohit avatar Sep 22 '23 06:09 AravindRohit

Sir, Please tell me how to fix this?

AravindRohit avatar Sep 22 '23 06:09 AravindRohit

Yes, started happening today. Was working fine before.

Yes, from yesterday is giving error how to fix this sir

AravindRohit avatar Sep 22 '23 06:09 AravindRohit

Sir, Please tell me how to fix this?

I have not solved it yet sir! (swithced to openai & llama 2. again)

samedovzaur avatar Sep 22 '23 06:09 samedovzaur

Sir, Please tell me how to fix this?

I have not solved it yet sir! (swithced to openai & llama 2. again)

Okay sir

AravindRohit avatar Sep 22 '23 06:09 AravindRohit

When you will be able to fix this sir?

AravindRohit avatar Sep 22 '23 09:09 AravindRohit