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

Failed to parse response: #257

Closed
JayDesignDevelope opened this issue Aug 21, 2024 · 5 comments
Closed

Failed to parse response: #257

JayDesignDevelope opened this issue Aug 21, 2024 · 5 comments

Comments

@JayDesignDevelope
Copy link

JayDesignDevelope commented Aug 21, 2024

Describe the bug
unable to get respone , previously 2 weeks back everything worked fine, but all of a sudden facing Failed to parse response:: {"message":"An error occurred","errorId":"8f9975a9-2ad5-4688-9284-bc085d65c4bf"}

To Reproduce
, line 108, in _filterResponse
raise ChatError(f"Server returns an error: {obj['message']}")
hugchat.exceptions.ChatError: Server returns an error: An error occurred
after hitting the get response froma. streamlit app , having this indeside /hugchat/message.py"
Expected behavior
response should be normal previously but now having this issue
Screenshots
image

Additional context
What Operating System are you using?- mac os, m2 chip
What Python version are you using? python 3.9
What version of hugchat are you using? 0.4.11

@JayDesignDevelope JayDesignDevelope added the bug bug! label Aug 21, 2024
Copy link

Hi! Thanks for your issue, we will deal with your issue as soon as possible.

@Aravind4525
Copy link

ERROR:root:No type found in response: {'message': 'An error occurred', 'errorId': '5c3eb302-2cc4-40b4-9c1f-e8487211fa77'}
Traceback (most recent call last):
File "D:\PyCharm Community Edition 2023.2\plugins\python-ce\helpers\pydev_pydevd_bundle\pydevd_repr_utils.py", line 213, in get_value_repr
value_representation = format % value
~~~~~~~^~~~~~~
File "C:\Users\Admin\PycharmProjects\Document Intelligence\venv\Lib\site-packages\hugchat\message.py", line 292, in str
return self.wait_until_done()
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\PycharmProjects\Document Intelligence\venv\Lib\site-packages\hugchat\message.py", line 265, in wait_until_done
raise self.error
File "D:\PyCharm Community Edition 2023.2\plugins\python-ce\helpers\pydev_pydevd_bundle\pydevd_repr_utils.py", line 209, in get_value_repr
value_representation = pydevd_repr_function(value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\reprlib.py", line 53, in repr
return self.repr1(x, self.maxlevel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\reprlib.py", line 63, in repr1
return self.repr_instance(x, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\PyCharm Community Edition 2023.2\plugins\python-ce\helpers\pydev_pydevd_bundle\pydevd_repr_utils.py", line 171, in repr_instance
return str(x)
^^^^^^
File "C:\Users\Admin\PycharmProjects\Document Intelligence\venv\Lib\site-packages\hugchat\message.py", line 292, in str
return self.wait_until_done()
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\PycharmProjects\Document Intelligence\venv\Lib\site-packages\hugchat\message.py", line 259, in wait_until_done
self.next()
File "C:\Users\Admin\PycharmProjects\Document Intelligence\venv\Lib\site-packages\hugchat\message.py", line 200, in next
raise self.error
File "C:\Users\Admin\PycharmProjects\Document Intelligence\venv\Lib\site-packages\hugchat\message.py", line 124, in next
self._filterResponse(data)
File "C:\Users\Admin\PycharmProjects\Document Intelligence\venv\Lib\site-packages\hugchat\message.py", line 108, in _filterResponse
raise ChatError(f"Server returns an error: {obj['message']}")
hugchat.exceptions.ChatError: Server returns an error: An error occurred

@Aravind4525
Copy link

I am using hugchat 0.4.9
and if i use latest version it is getting text as invalid parameter

Copy link

This issue was marked as stale because of inactivity.

Copy link

This issue was closed because of inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants