Open laithalsaadoon opened 3 days ago
Downgrading httpx to 0.27.2 will resolve the issue for now
Thanks. Same issue here
Since the version 0.28.0 of httpx which was released 4 days ago, they seem to change the API a little bit at SSL verifying part.
The 0.28 release includes a limited set of deprecations.
Deprecations:
We are working towards a simplified SSL configuration API.
For users of the standard verify=True or verify=False cases, or verify=<ssl_context> case this should require no changes. The following cases have been deprecated...
The verify argument as a string argument is now deprecated and will raise warnings.
The cert argument is now deprecated and will raise warnings.
Also see here: https://github.com/encode/httpx/blob/0.28.0/docs/advanced/ssl.md
So in httpx source, there is no VerifyTypes anymore,
In previous version (0.27.2) was:
verify: VerifyTypes = True,
=>
Current version (0.28.0)
verify: ssl.SSLContext | str | bool = True,
Have made a update for this issue (PR #798), I don't know if the maintainer will merge this.
Before this get accepted by the maintainer,
pip install httpx==0.27.2
can be a dirty fix instead
langserve/client.py
importsVerifyTypes
from encode/httpx ._types and results in an import error. I did a bit of digging on commit history in this repo and httpx and can't figure out what is the breaking change, or when this 'VerifyTypes' thing went missing 🤷Simply removing
VerifyTypes
fromclient.py
line 24 fixes the import error.Environment: