本地debug代码的时候报一个代理的错误记录一下

背景如题

本地debug go的代码的时候,遇到一个如下的报错

{
"errMsg": "Read resultDrivers file error!err:HttpPostParam failed, Error:Post "http://xxxxx:8000/api": proxyconnect tcp: dial tcp 127.0.0.1:8888: connect: connection refused",
"errNo": -1,
"status": -1
}

一直以为是访问外部接口:http://xxxxx:8000/api的问题,但是同组内其他同学可以正常访问。追了很久,终于发现是自己goland配置了开启代理,关掉代理之后,解决问题

原文地址:https://www.cnblogs.com/syw-home/p/14867099.html