{"action":"created","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/5932","repository_url":"https://api.github.com/repos/bazelbuild/bazel","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/5932/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/5932/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/5932/events","html_url":"https://github.com/bazelbuild/bazel/issues/5932","id":351898419,"node_id":"MDU6SXNzdWUzNTE4OTg0MTk=","number":5932,"title":"http_archive is not able to fetch dl.bintray.com/boostorg","user":{"login":"yongtang","id":6932348,"node_id":"MDQ6VXNlcjY5MzIzNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/6932348?v=4","gravatar_id":"","url":"https://api.github.com/users/yongtang","html_url":"https://github.com/yongtang","followers_url":"https://api.github.com/users/yongtang/followers","following_url":"https://api.github.com/users/yongtang/following{/other_user}","gists_url":"https://api.github.com/users/yongtang/gists{/gist_id}","starred_url":"https://api.github.com/users/yongtang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yongtang/subscriptions","organizations_url":"https://api.github.com/users/yongtang/orgs","repos_url":"https://api.github.com/users/yongtang/repos","events_url":"https://api.github.com/users/yongtang/events{/privacy}","received_events_url":"https://api.github.com/users/yongtang/received_events","type":"User","site_admin":false},"labels":[{"id":1020663381,"node_id":"MDU6TGFiZWwxMDIwNjYzMzgx","url":"https://api.github.com/repos/bazelbuild/bazel/labels/team-ExternalDeps","name":"team-ExternalDeps","color":"f1f442","default":false},{"id":1020665933,"node_id":"MDU6TGFiZWwxMDIwNjY1OTMz","url":"https://api.github.com/repos/bazelbuild/bazel/labels/untriaged","name":"untriaged","color":"c34ddd","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-19T12:17:46Z","updated_at":"2018-08-20T18:40:44Z","closed_at":"2018-08-20T14:45:31Z","author_association":"NONE","body":"### Description of the problem / feature request:\r\n\r\nWhile working on a tensorflow PR https://github.com/tensorflow/tensorflow/pull/19461 to add the Parquet support, I needed to add the boost library. The download link of boost library (https://www.boost.org/users/download/) is in `dl.bintray.com`:\r\nhttps://dl.bintray.com/boostorg/release/1.67.0/source/\r\n\r\nHowever, bazel will generate a `GET returned 403 Forbidden` error without much information. See example below for details.\r\n\r\n### Feature requests: what underlying problem are you trying to solve with this feature?\r\n\r\nN/A\r\n\r\n### Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.\r\n\r\nI have reduced the test case with the following example:\r\n```\r\n# WORKSPACE file\r\nload(\"@bazel_tools//tools/build_defs/repo:http.bzl\", \"http_archive\")\r\nhttp_archive(\r\n    name = \"boost\",\r\n    urls = [\"https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.gz\"],\r\n    sha256 = \"8aa4e330c870ef50a896634c931adf468b21f8a69b77007e45c444151229f665\"\r\n)\r\n# main/BUILD file\r\ncc_binary(\r\n    name = \"hello-world\",\r\n    srcs = [\"hello-world.cc\"],\r\n    deps = [\"@boost\"]\r\n)\r\n```\r\n```\r\nubuntu@ubuntu:~/bazel$ bazel build -s --verbose_failures //main:hello-world\r\nERROR: /home/ubuntu/bazel/main/BUILD:1:1: no such package '@boost//': java.io.IOException: Error downloading [https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.gz] to /home/ubuntu/.cache/bazel/_bazel_ubuntu/ffdf15b7269c0b208fa140f8b561f825/external/boost/boost_1_67_0.tar.gz: GET returned 403 Forbidden and referenced by '//main:hello-world'\r\nERROR: Analysis of target '//main:hello-world' failed; build aborted: Analysis failed\r\nINFO: Elapsed time: 14.736s\r\nINFO: 0 processes.\r\nFAILED: Build did NOT complete successfully (1 packages loaded)\r\nubuntu@ubuntu:~/bazel$ \r\n```\r\n\r\n\r\nI am able to download the package manually through `curl` (See full output at the end):\r\n```\r\ncurl -vv -OL https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.gz\r\n```\r\n\r\n### What operating system are you running Bazel on?\r\n\r\n```\r\nubuntu@ubuntu:~/bazel$ lsb_release -a\r\nNo LSB modules are available.\r\nDistributor ID:\tUbuntu\r\nDescription:\tUbuntu 16.04.4 LTS\r\nRelease:\t16.04\r\nCodename:\txenial\r\n```\r\n\r\n### What's the output of `bazel info release`?\r\n\r\n```\r\nubuntu@ubuntu:~/bazel$ bazel info release\r\nrelease 0.16.1\r\n```\r\n\r\n### If `bazel info release` returns \"development version\" or \"(@non-git)\", tell us how you built Bazel.\r\n\r\nN/A\r\n\r\n### What's the output of `git remote get-url origin ; git rev-parse master ; git rev-parse HEAD` ?\r\n\r\nN/A\r\n\r\n###  Have you found anything relevant by searching the web?\r\n\r\nNo.\r\n\r\n### Any other information, logs, or outputs that you want to share?\r\n\r\n```\r\nubuntu@ubuntu:~/bazel$ curl -v -OL https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.gz\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 108.168.243.150...\r\n* Connected to dl.bintray.com (108.168.243.150) port 443 (#0)\r\n* found 148 certificates in /etc/ssl/certs/ca-certificates.crt\r\n* found 592 certificates in /etc/ssl/certs\r\n* ALPN, offering http/1.1\r\n* SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256\r\n* \t server certificate verification OK\r\n* \t server certificate status verification SKIPPED\r\n* \t common name: *.bintray.com (matched)\r\n* \t server certificate expiration date OK\r\n* \t server certificate activation date OK\r\n* \t certificate public key: RSA\r\n* \t certificate version: #3\r\n* \t subject: CN=*.bintray.com\r\n* \t start date: Thu, 09 Nov 2017 00:00:00 GMT\r\n* \t expire date: Sat, 09 Nov 2019 23:59:59 GMT\r\n* \t issuer: C=US,O=GeoTrust Inc.,OU=Domain Validated SSL,CN=GeoTrust DV SSL CA - G3\r\n* \t compression: NULL\r\n* ALPN, server did not agree to a protocol\r\n> GET /boostorg/release/1.67.0/source/boost_1_67_0.tar.gz HTTP/1.1\r\n> Host: dl.bintray.com\r\n> User-Agent: curl/7.47.0\r\n> Accept: */*\r\n> \r\n< HTTP/1.1 302 \r\n< Server: nginx\r\n< Date: Sun, 19 Aug 2018 12:07:21 GMT\r\n< Content-Length: 0\r\n< Connection: keep-alive\r\n< Location: https://d29vzk4ow07wi7.cloudfront.net/8aa4e330c870ef50a896634c931adf468b21f8a69b77007e45c444151229f665?response-content-disposition=attachment%3Bfilename%3D%22boost_1_67_0.tar.gz%22&Policy=eyJTdGF0ZW1lbnQiOiBbeyJSZXNvdXJjZSI6Imh0dHAqOi8vZDI5dnprNG93MDd3aTcuY2xvdWRmcm9udC5uZXQvOGFhNGUzMzBjODcwZWY1MGE4OTY2MzRjOTMxYWRmNDY4YjIxZjhhNjliNzcwMDdlNDVjNDQ0MTUxMjI5ZjY2NT9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPWF0dGFjaG1lbnQlM0JmaWxlbmFtZSUzRCUyMmJvb3N0XzFfNjdfMC50YXIuZ3olMjIiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1MzQ2ODExNjF9LCJJcEFkZHJlc3MiOnsiQVdTOlNvdXJjZUlwIjoiMC4wLjAuMC8wIn19fV19&Signature=YYxSO8tT6mnm5HXFXDwnkcex--pEHJ2i3EXg~euxv1LCnhslk83vERvL--UBZwCI6f8X4T0FNPqxIE2RC8dojaoM9-kwQrbVfu5rOraOw79jaYhO9QEWkgRhuF0hhyiVU9C1Zneqf4wWISOlg8ZXR4UKX4mFFiFLngEOJv7-Xs6ZA40Ybk3D7b6YxZuBHBXcQSQNYcmCMSkl6kCoPKs4HSMC6GiWhx0swZYw4DFQbetV~A4lcWd62F3AxiFcSDvQEwPsHxOitmCAnm2CpNfw7gaK68En8jDOTdcrHZC68Tr8-m~NAKpBL6QvUFVc3W14hkfixZfcif699yU~KEI6dg__&Key-Pair-Id=APKAIFKFWOMXM2UMTSFA\r\n< \r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r\n* Connection #0 to host dl.bintray.com left intact\r\n* Issue another request to this URL: 'https://d29vzk4ow07wi7.cloudfront.net/8aa4e330c870ef50a896634c931adf468b21f8a69b77007e45c444151229f665?response-content-disposition=attachment%3Bfilename%3D%22boost_1_67_0.tar.gz%22&Policy=eyJTdGF0ZW1lbnQiOiBbeyJSZXNvdXJjZSI6Imh0dHAqOi8vZDI5dnprNG93MDd3aTcuY2xvdWRmcm9udC5uZXQvOGFhNGUzMzBjODcwZWY1MGE4OTY2MzRjOTMxYWRmNDY4YjIxZjhhNjliNzcwMDdlNDVjNDQ0MTUxMjI5ZjY2NT9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPWF0dGFjaG1lbnQlM0JmaWxlbmFtZSUzRCUyMmJvb3N0XzFfNjdfMC50YXIuZ3olMjIiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1MzQ2ODExNjF9LCJJcEFkZHJlc3MiOnsiQVdTOlNvdXJjZUlwIjoiMC4wLjAuMC8wIn19fV19&Signature=YYxSO8tT6mnm5HXFXDwnkcex--pEHJ2i3EXg~euxv1LCnhslk83vERvL--UBZwCI6f8X4T0FNPqxIE2RC8dojaoM9-kwQrbVfu5rOraOw79jaYhO9QEWkgRhuF0hhyiVU9C1Zneqf4wWISOlg8ZXR4UKX4mFFiFLngEOJv7-Xs6ZA40Ybk3D7b6YxZuBHBXcQSQNYcmCMSkl6kCoPKs4HSMC6GiWhx0swZYw4DFQbetV~A4lcWd62F3AxiFcSDvQEwPsHxOitmCAnm2CpNfw7gaK68En8jDOTdcrHZC68Tr8-m~NAKpBL6QvUFVc3W14hkfixZfcif699yU~KEI6dg__&Key-Pair-Id=APKAIFKFWOMXM2UMTSFA'\r\n*   Trying 52.85.146.22...\r\n* Connected to d29vzk4ow07wi7.cloudfront.net (52.85.146.22) port 443 (#1)\r\n* found 148 certificates in /etc/ssl/certs/ca-certificates.crt\r\n* found 592 certificates in /etc/ssl/certs\r\n* ALPN, offering http/1.1\r\n* SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256\r\n* \t server certificate verification OK\r\n* \t server certificate status verification SKIPPED\r\n* \t common name: *.cloudfront.net (matched)\r\n* \t server certificate expiration date OK\r\n* \t server certificate activation date OK\r\n* \t certificate public key: RSA\r\n* \t certificate version: #3\r\n* \t subject: C=US,ST=Washington,L=Seattle,O=Amazon.com Inc.,CN=*.cloudfront.net\r\n* \t start date: Wed, 22 Nov 2017 00:00:00 GMT\r\n* \t expire date: Wed, 21 Nov 2018 12:00:00 GMT\r\n* \t issuer: C=US,O=DigiCert Inc,CN=DigiCert Global CA G2\r\n* \t compression: NULL\r\n* ALPN, server accepted to use http/1.1\r\n> GET /8aa4e330c870ef50a896634c931adf468b21f8a69b77007e45c444151229f665?response-content-disposition=attachment%3Bfilename%3D%22boost_1_67_0.tar.gz%22&Policy=eyJTdGF0ZW1lbnQiOiBbeyJSZXNvdXJjZSI6Imh0dHAqOi8vZDI5dnprNG93MDd3aTcuY2xvdWRmcm9udC5uZXQvOGFhNGUzMzBjODcwZWY1MGE4OTY2MzRjOTMxYWRmNDY4YjIxZjhhNjliNzcwMDdlNDVjNDQ0MTUxMjI5ZjY2NT9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPWF0dGFjaG1lbnQlM0JmaWxlbmFtZSUzRCUyMmJvb3N0XzFfNjdfMC50YXIuZ3olMjIiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1MzQ2ODExNjF9LCJJcEFkZHJlc3MiOnsiQVdTOlNvdXJjZUlwIjoiMC4wLjAuMC8wIn19fV19&Signature=YYxSO8tT6mnm5HXFXDwnkcex--pEHJ2i3EXg~euxv1LCnhslk83vERvL--UBZwCI6f8X4T0FNPqxIE2RC8dojaoM9-kwQrbVfu5rOraOw79jaYhO9QEWkgRhuF0hhyiVU9C1Zneqf4wWISOlg8ZXR4UKX4mFFiFLngEOJv7-Xs6ZA40Ybk3D7b6YxZuBHBXcQSQNYcmCMSkl6kCoPKs4HSMC6GiWhx0swZYw4DFQbetV~A4lcWd62F3AxiFcSDvQEwPsHxOitmCAnm2CpNfw7gaK68En8jDOTdcrHZC68Tr8-m~NAKpBL6QvUFVc3W14hkfixZfcif699yU~KEI6dg__&Key-Pair-Id=APKAIFKFWOMXM2UMTSFA HTTP/1.1\r\n> Host: d29vzk4ow07wi7.cloudfront.net\r\n> User-Agent: curl/7.47.0\r\n> Accept: */*\r\n> \r\n< HTTP/1.1 200 OK\r\n< Content-Type: application/gzip\r\n< Content-Length: 103363944\r\n< Connection: keep-alive\r\n< Date: Sun, 19 Aug 2018 11:53:34 GMT\r\n< Last-Modified: Wed, 11 Apr 2018 14:47:19 GMT\r\n< ETag: \"4850fceb3f2222ee011d4f3ea304d2cb\"\r\n< Content-Disposition: attachment;filename=\"boost_1_67_0.tar.gz\"\r\n< Accept-Ranges: bytes\r\n< Server: AmazonS3\r\n< Age: 828\r\n< X-Cache: Hit from cloudfront\r\n< Via: 1.1 86335fa0218c5bd3b89dc26ce10431df.cloudfront.net (CloudFront)\r\n< X-Amz-Cf-Id: 8k3qZEp5hT60msMO9RkF8sFU7S57LHYdKJZXcWNGuvVTutt4UB7o2A==\r\n< \r\n{ [15871 bytes data]\r\n100 98.5M  100 98.5M    0     0  68.0M      0  0:00:01  0:00:01 --:--:--  105M\r\n* Connection #1 to host d29vzk4ow07wi7.cloudfront.net left intact\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/comments/414420262","html_url":"https://github.com/bazelbuild/bazel/issues/5932#issuecomment-414420262","issue_url":"https://api.github.com/repos/bazelbuild/bazel/issues/5932","id":414420262,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDQyMDI2Mg==","user":{"login":"ittaiz","id":1378327,"node_id":"MDQ6VXNlcjEzNzgzMjc=","avatar_url":"https://avatars2.githubusercontent.com/u/1378327?v=4","gravatar_id":"","url":"https://api.github.com/users/ittaiz","html_url":"https://github.com/ittaiz","followers_url":"https://api.github.com/users/ittaiz/followers","following_url":"https://api.github.com/users/ittaiz/following{/other_user}","gists_url":"https://api.github.com/users/ittaiz/gists{/gist_id}","starred_url":"https://api.github.com/users/ittaiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ittaiz/subscriptions","organizations_url":"https://api.github.com/users/ittaiz/orgs","repos_url":"https://api.github.com/users/ittaiz/repos","events_url":"https://api.github.com/users/ittaiz/events{/privacy}","received_events_url":"https://api.github.com/users/ittaiz/received_events","type":"User","site_admin":false},"created_at":"2018-08-20T18:40:44Z","updated_at":"2018-08-20T18:40:44Z","author_association":"MEMBER","body":"Awesome! We (rules scala) were also severely impacted by this. Thank you\nboth!\ncc @johnynek\nOn Mon, 20 Aug 2018 at 17:56 Yong Tang <notifications@github.com> wrote:\n\n> Thanks for the quick fix @aehlig <https://github.com/aehlig> !👍 🎉\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/bazelbuild/bazel/issues/5932#issuecomment-414345983>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/ABUIFy2SsYzARrZ4rH07NaTgJvx_hEa1ks5uSs4ugaJpZM4WC8ap>\n> .\n>\n"}}
{"actor":{"display_login":"ittaiz"}}