xtekky / chatgpt-clone

ChatGPT interface with better UI
https://g4f.ai
GNU General Public License v3.0
3.45k stars 1.03k forks source link

ValueError: invalid literal for int() with base 16: b'' #81

Open heuko opened 1 year ago

heuko commented 1 year ago

I run with docker. Mac M1, I am seeing this error when response form chatgpt it long.

chatgpt-clone  | Error on request:
chatgpt-clone  | Traceback (most recent call last):
chatgpt-clone  |   File "/root/.local/lib/python3.8/site-packages/urllib3/response.py", line 761, in _update_chunk_length
chatgpt-clone  |     self.chunk_left = int(line, 16)
chatgpt-clone  | ValueError: invalid literal for int() with base 16: b''
chatgpt-clone  | 
chatgpt-clone  | During handling of the above exception, another exception occurred:
chatgpt-clone  | 
chatgpt-clone  | Traceback (most recent call last):
chatgpt-clone  |   File "/root/.local/lib/python3.8/site-packages/urllib3/response.py", line 444, in _error_catcher
chatgpt-clone  |     yield
chatgpt-clone  |   File "/root/.local/lib/python3.8/site-packages/urllib3/response.py", line 828, in read_chunked
chatgpt-clone  |     self._update_chunk_length()
chatgpt-clone  |   File "/root/.local/lib/python3.8/site-packages/urllib3/response.py", line 765, in _update_chunk_length
chatgpt-clone  |     raise InvalidChunkLength(self, line)
chatgpt-clone  | urllib3.exceptions.InvalidChunkLength: InvalidChunkLength(got length b'', 0 bytes read)