create_connection
failed when connecting to a scoped ipv6 address
#1634
Labels
PyVer: python3
Affects Python 3
Type: Docs
The API and narrative documentation need updates
Type: Enhancement
We can do better through adding this
Description:
I was trying to create an IPv6 connection to a scoped IPv6 address, but I got an
Invalid argument
error:What I've run:
The problem is that
create_connection
did agetaddrinfo
, and then whensock.connect()
,there is another
getaddrinfo
in_socketcommon._resolve_addr(self._sock, address)
,the second
getaddrinfo
lost the IPv6 scope id, thenInvalid argument
error occurred.The text was updated successfully, but these errors were encountered: