例如:
> stack ghci
Writing implicit global project config file to: C:\sr\global-project\stack.yaml
Note: You can change the snapshot via the resolver field there.
HttpExceptionRequest Request {
host = "s3.amazonaws.com"
port = 443
secure = True
requestHeaders = [("Accept","application/json")]
path = "/haddock.stackage.org/snapshots.json"
queryString = ""
method = "GET"
proxy = Nothing
rawBody = False
redirectCount = 10
responseTimeout = ResponseTimeoutDefault
requestVersion = HTTP/1.1
}
(InternalException (HostCannotConnect "127.0.0.1" [Network.Socket.connect: <socket: 508>: failed (Connection refused (WSAECONNREFUSED))]))
同一个控制台的curl命令在解析url
方面没有问题> curl https://s3.amazonaws.com/haddock.stackage.org/snapshots.json
StatusCode : 200
StatusDescription : OK
Content : {"lts-2":"lts-2.22","lts-10":"lts-10.9","lts-9":"lts-9.21","lts-4":"lts-4.2","lts-3":"lts-3.22","lts-5":"lts-5.18","lts":"lts-11.0","lts-0":"lts-0.7","nightly":"nightly-2018-03-16","lts-1":"lts-1.15",
....
试图在另一台PC上安装相同的版本 - 没有这样的问题。
有什么想法吗?
答案 0 :(得分:0)
将此注册表项设置为 0 有助于:
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable