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

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

Open
heuko opened this issue May 1, 2023 · 0 comments
Open

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

heuko opened this issue May 1, 2023 · 0 comments

Comments

@heuko
Copy link

heuko commented May 1, 2023

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant