You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that for the warning, the default value cannot be None.
That's because there was a change in aiohttp from version 3.10
Before aiohttp 3.10, aiohttp was using None as the default value, and would verify the certification in that case.
From aiohttp 3.10, it switched to use True as the default value.
So, someone could have used ssl=None previously with AIOHTTPTransport. He would have a typing error with mypy but it would work and gql would verify the certificate. If we set ssl to False if we receive None, then gql will not verify the cert for him in that case.
We could use another default value, like the "warning" string?
Activity
leszekhanusz commentedon Feb 17, 2025
That's pretty bad... Thanks for your report.
The annoying thing is that there are probably some people which are depending on this and changing the default will be a breaking change for them.
A major version bump will be needed to fix this.
mariuskava commentedon Feb 17, 2025
yes, there must be a breaking change.. but a patch release could contain a warning:
leszekhanusz commentedon Feb 17, 2025
Good idea!
leszekhanusz commentedon Feb 18, 2025
Note that for the warning, the default value cannot be
None.That's because there was a change in aiohttp from version 3.10
Before aiohttp 3.10, aiohttp was using
Noneas the default value, and would verify the certification in that case.From aiohttp 3.10, it switched to use
Trueas the default value.So, someone could have used
ssl=Nonepreviously withAIOHTTPTransport. He would have a typing error with mypy but it would work and gql would verify the certificate. If we set ssl toFalseif we receiveNone, then gql will not verify the cert for him in that case.We could use another default value, like the "warning" string?
mariuskava commentedon Feb 18, 2025
good point. Default string value sounds good enough or it could be a predefined sentinel = object()
https://python-patterns.guide/python/sentinel-object/#sentinel-objects
fix: ensure ssl verification happens with async client
fix: ensure ssl verification happens with async client
fix: ensure ssl verification happens with async client
fix: ensure ssl verification happens with async client (#54)
leszekhanusz commentedon Aug 17, 2025
Fixed in version 4.0.0