Binary download errored, but url is valid ``` $ ./...
# general
w
Binary download errored, but url is valid
Copy code
$ ./pants resolve contrib/node/examples/src/node/server-project -ldebug
13:25:12 00:02     [jvm-platform-validate]
13:25:12 00:02   [resolve]
13:25:12 00:02     [ivy]
13:25:12 00:02     [coursier]
13:25:12 00:02     [go]
13:25:12 00:02     [scala-js-compile]
13:25:12 00:02     [scala-js-link]
13:25:12 00:02     [node]
                   Invalidated 1 target.
                     Cannot find npm-shrinkwrap.json. Did you forget to put it in target sources? This package will fall back to inject package.json with pants BUILD dependencies including node_remote_module and other node dependencies. However, this is not fully supported.
                     Removing [u'dependencies', u'devDependencies', u'peerDependencies', u'optionalDependencies'] from package.json for server-project
                     Adding {u'babel-core': '6.22.1', u'babel-cli': '6.22.1', u'mocha': '2.3.0'} to package.json for server-projectWARN] npm does not support frozen lockfile option. Ignored.
DEBUG] binary_request: BinaryRequest(supportdir=u'bin/node', version='v6.9.1', name=u'node', platform_dependent=True, external_url_generator=None, archiver=<pants.fs.archive.TarArchiver object at 0x110ff3150>)
DEBUG] self._allow_external_binary_tool_downloads: True
DEBUG] external_url_generator: None
DEBUG] fetch_request: BinaryFetchRequest(download_path='bin/node/mac/10.12/v6.9.1/node.tar.gz', urls=('<https://binaries.pantsbuild.org/bin/node/mac/10.12/v6.9.1/node.tar.gz>',))
DEBUG] bootstrapped_binary_path: /Users/yic/.cache/pants/bin/node/mac/10.12/v6.9.1/node.tar.gz
INFO] Attempting to fetch node.tar.gz binary from: <https://binaries.pantsbuild.org/bin/node/mac/10.12/v6.9.1/node.tar.gz> ...
DEBUG] in BinaryToolFetcher: url=<https://binaries.pantsbuild.org/bin/node/mac/10.12/v6.9.1/node.tar.gz>, timeout_secs=30
DEBUG] Starting new HTTPS connection (1): <http://binaries.pantsbuild.org|binaries.pantsbuild.org>
DEBUG] <https://binaries.pantsbuild.org:443> "GET /bin/node/mac/10.12/v6.9.1/node.tar.gz HTTP/1.1" 400 None

DEBUG] releasing lock: <pants.process.lock.OwnerPrintingInterProcessFileLock object at 0x113247d50>
13:25:12 00:02       [install]
FAILURE: (u'Error resolving binary request BinaryRequest(supportdir=bin/node, version=v6.9.1, name=node, platform_dependent=True, external_url_generator=None, archiver=<pants.fs.archive.TarArchiver object at 0x110ff3150>): Failed to fetch node.tar.gz binary from any source: (Failed to fetch binary from <https://binaries.pantsbuild.org/bin/node/mac/10.12/v6.9.1/node.tar.gz>: Fetch of <https://binaries.pantsbuild.org/bin/node/mac/10.12/v6.9.1/node.tar.gz> failed with status code 400)', BinaryNotFound(u'Failed to fetch node.tar.gz binary from any source: (Failed to fetch binary from <https://binaries.pantsbuild.org/bin/node/mac/10.12/v6.9.1/node.tar.gz>: Fetch of <https://binaries.pantsbuild.org/bin/node/mac/10.12/v6.9.1/node.tar.gz> failed with status code 400)',))
looks like could be machine env/macos specific
tried on a linux box, it works fine