【发布时间】:2019-10-28 22:39:41
【问题描述】:
我已经从 github 下载并运行了提供的 quickstat。它在正常网络上运行良好,但如果在代理后面,则会提供 NPE。
WARNING: An exception was thrown by com.microsoft.rest.v2.http.NettyClient$AcquisitionListener.operationComplete()
java.lang.NullPointerException
at com.microsoft.rest.v2.http.NettyClient$AcquisitionListener.emitError(NettyClient.java:426)
当我更新到 v11 (11.0.1) 时,会出现一个新错误而不是 NPE,但根本不起作用。
WARN NettyClient - Error emitted before channel is created. Message: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server
我搜索了很多,并尝试在操作上下文中设置默认代理,但没有成功。
OperationContext.setDefaultProxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress(proxyIP, proxyPort)));
您能给我一个更新(更正)的快速入门,它在代理后面工作吗?或者给我一些线索如何设置、设置什么以及在哪里设置?
【问题讨论】:
标签: java proxy azure-blob-storage