我要评分
获取效率
正确性
完整性
易理解

Failed to Download the TF-Serving Source Code Dependency

The message "Error in download_and_extract" is displayed when you obtain the TF-Serving source code dependency library. The details are as follows:

Error in download_and_extract: java.io.IOException: Error downloading [https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz] to /home/cya/boss/tfserving/serving/output/ba6572d0268f10026d9549fa2ae08318/external/bazel_skylib/temp8584446817647604858/bazel-skylib-1.3.0.tar.gz: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required"
ERROR: Error computing the main repository mapping: no such package '@bazel_skylib//lib': java.io.IOException: Error downloading [https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz] to /home/cya/boss/tfserving/serving/output/ba6572d0268f10026d9549fa2ae08318/external/bazel_skylib/temp8584446817647604858/bazel-skylib-1.3.0.tar.gz: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required"

Code download fails due to network problems.

Go to the path/to/tfserving/serving/proxy directory specified by --distdir and run the wget command to download the corresponding library.

cd proxy
wget https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz --no-check-certificate

This solution can be applied to other dependency download problems caused by poor network quality.