Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
net: "connectex: invalid argument" when dialing an Artifactory server over IPv6 #42395
Working from home on a company-owned laptop (no admin rights) with Windows 10. From the office everything is OK, from home office the situation is different. The GOPROXY URL is IPv6 and then it gets redirected by the server. I can connect just fine to artifactory (the GOPROXY we use) both from shell and from browser, but "go get" fails with "connectex: invalid argument". The error is very vague and hard to debug.
Here you can see the output from curl, proving everything is ok server side:
That means ConnectEx Windows API
returned WSAEINVAL. We can add error numbers, for example, WSAEINVAL is 10022
But I find it is not difficult to search Windows errors by their text.
And we cannot replace error text with a number, because text is usually helpful. This error text is not helpful.
@alexbrainman, I say
(We can't tell from that error whether the
@bcmills I agree that error message is not helpful. But WSAEINVAL is the only information we get from ConnectEx - Windows does not tell us anything else about what is wrong with ConnectEx arguments. If you read documentation
Maybe it helps.
But you need to read this information in Microsoft documentation. Windows API does not provide any information but WSAEINVAL.