Skip to content

EOF occurred in violation of protocol #20

@Junital

Description

@Junital

When I run gqa.ipynb, there is an error I can't fix:


SSLError Traceback (most recent call last)
SSLError: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1007)

The above exception was the direct cause of the following exception:

MaxRetryError Traceback (most recent call last)
File e:\Anaconda3\envs\visprog\lib\site-packages\requests\adapters.py:486, in HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
485 try:
--> 486 resp = conn.urlopen(
487 method=request.method,
488 url=url,
489 body=request.body,
490 headers=request.headers,
491 redirect=False,
492 assert_same_host=False,
493 preload_content=False,
494 decode_content=False,
495 retries=self.max_retries,
496 timeout=timeout,
497 chunked=chunked,
498 )
500 except (ProtocolError, OSError) as err:

File e:\Anaconda3\envs\visprog\lib\site-packages\urllib3\connectionpool.py:877, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, preload_content, decode_content, **response_kw)
...
374 request_id=result.headers.get("X-Request-Id"),
375 )
376 # Don't read the whole stream for debug logging unless necessary.

APIConnectionError: Error communicating with OpenAI


OS: Win11
conda env: visprog

I will appreciate it if there are some solutions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions