刚看go,使用 net/http 标准库发送get或者post请求,出现同样的错误。报错如下:
文本为:proxyconnect tcp: dial tcp 127.0.0.1:52405: connectex: No connection could be made because the target machine actively refused it.
接口:服务在运行,端口设置正确,Java和postman请求可以正常返回数据。
go:go version go1.12 windows/amd64
环境:未配置 GOPATH情况下(重新安装go,一路默认)程序请求后接口可以返回数据,配置GOPATH后报错如上。
希望得到大家指教。先行谢过了。