AttributeError: 'WindowsPath' object has no attribute 'set_alpn_protocols' #984
Replies: 1 comment
|
That traceback means httpcore received a At the failing line, httpcore does this conceptually: ssl_context = default_ssl_context() if self._ssl_context is None else self._ssl_context
ssl_context.set_alpn_protocols(...)So if the object is a The first useful check is to inspect how the OpenAI client / underlying HTTPX client is configured, particularly any custom import ssl
ctx = ssl.create_default_context(cafile=str(ca_bundle_path))and that context is what the transport-level If you didn't configure SSL explicitly, also check environment-driven CA settings and the exact versions of I checked current httpcore as well: the sync proxy connection's |
Uh oh!
There was an error while loading. Please reload this page.
Using the openai package I get an APIConnectionError with direct cause
AttributeError: 'WindowsPath' object has no attribute 'set_alpn_protocols'
which lies within httpcore. Here is the relevant traceback:
httpcore version = '1.0.7'
Could you please help me fix this issue? Thanks in advance!
All reactions