xtekky/chatgpt-clone

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

heuko opened this issue · 0 comments

heuko commented

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)