I'm trying to use go-xmpp
to connect to DuckDuckGo's XMPP services.
Below is my test-case:
package main
import (
"crypto/tls"
"log"
"github.com/mattn/go-xmpp"
)
const (
svr = "dukgo.com"
usr = "testtesttest"
pwd = "test123"
)
func main() {
xmpp.DefaultConfig = tls.Config{
ServerName: svr,
InsecureSkipVerify: false,
}
options := xmpp.Options{
Host: svr,
User: usr,
Password: pwd,
}
_, err := options.NewClient()
if err != nil {
log.Fatal(err)
}
}
The log.Fatal
block is being executed and returns the following error message:
2016/08/24 16:32:27 tls: oversized record received with length 28012
exit status 1
Googling the error points me towards an identical error in Docker, so that's not exactly helpful. What does this error mean? What can I do to fix this?