New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net: getaddrinfow: The specified class was not found. #25553
Comments
I don't make sure but probably, the serverport contain spaces or |
This seems like a better question for the https://github.com/emersion/go-imap project. Closing for now. Please let me know if I should re-open due to a Go-specific issue. |
Issue: "getaddrinfow: The specified class was not found."I believe the error might possibly be related to My Code:https://github.com/Dextroz/pscan.go/blob/master/pscan.go Go Versiongo version go1.10.2 windows/amd64 Does this issue reproduce with the latest release?Yes What operating system and processor architecture are you using (go env)?set GOARCH=amd64 |
Indeed @mattn is correct. According to the
This means that if you enter |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?D:\Users\jeff.kayser\Desktop>go version
go version go1.10.2 windows/amd64
D:\Users\jeff.kayser\Desktop>
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?D:\Users\jeff.kayser\Desktop>go env
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\jeff.kayser\AppData\Local\go-build
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=d:\users\jeff.kayser\workspace\gobook
set GORACE=
set GOROOT=C:\Go
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fm
e-length=0 -fdebug-prefix-map=C:\Users\JEFF~1.KAY\AppData\Local\Temp\go-bui
424142=/tmp/go-build -gno-record-gcc-switches
D:\Users\jeff.kayser\Desktop>
What did you do?
Tried to write an IMAP client based on:
https://github.com/emersion/go-imap
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
package main
import (
"bufio"
"fmt"
"log"
"os"
)
func main() {
}
What did you expect to see?
I expected the program to connect to the IMAP server.
What did you see instead?
D:\Users\jeff.kayser\Desktop>main.exe
2018/05/24 17:03:46 Connecting to server...
server:port> mail.jibeconsulting.com:143
connecting to: mail.jibeconsulting.com:143
...
2018/05/24 17:03:55 dial tcp: lookup tcp/143
: getaddrinfow: The specified class was not found.
D:\Users\jeff.kayser\Desktop>
The text was updated successfully, but these errors were encountered: