{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/1400","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/1400/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/1400/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/1400/events","html_url":"https://github.com/rust-lang/cargo/issues/1400","id":60494744,"number":1400,"title":"Failed to get source from registry","user":{"login":"hh9527","id":3439410,"avatar_url":"https://avatars.githubusercontent.com/u/3439410?v=3","gravatar_id":"","url":"https://api.github.com/users/hh9527","html_url":"https://github.com/hh9527","followers_url":"https://api.github.com/users/hh9527/followers","following_url":"https://api.github.com/users/hh9527/following{/other_user}","gists_url":"https://api.github.com/users/hh9527/gists{/gist_id}","starred_url":"https://api.github.com/users/hh9527/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hh9527/subscriptions","organizations_url":"https://api.github.com/users/hh9527/orgs","repos_url":"https://api.github.com/users/hh9527/repos","events_url":"https://api.github.com/users/hh9527/events{/privacy}","received_events_url":"https://api.github.com/users/hh9527/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-03-10T12:54:00Z","updated_at":"2015-06-23T20:17:00Z","closed_at":null,"body":"I use `cargo fetch --verbose` and got:\r\n\r\n```\r\nDownloading bitflags v0.1.1\r\nunable to get packages from source\r\n\r\n\r\nCaused by:\r\n  Failed to download package `bitflags v0.1.1` from https://crates.io/api/v1/crates/bitflags/0.1.1/download\r\n\r\nCaused by:\r\n  Failed to verify the checksum of `bitflags v0.1.1`\r\n```\r\n\r\nAnd use `curl -v https://crates.io/api/v1/crates/bitflags/0.1.1/download`, and got following result:\r\n\r\n```\r\n* Hostname was NOT found in DNS cache\r\n*   Trying 127.0.0.1...\r\n* Connected to 127.0.0.1 (127.0.0.1) port 8880 (#0)\r\n* Establish HTTP proxy tunnel to crates.io:443\r\n> CONNECT crates.io:443 HTTP/1.1\r\n> Host: crates.io:443\r\n> User-Agent: curl/7.35.0\r\n> Proxy-Connection: Keep-Alive\r\n> \r\n< HTTP/1.0 200 Connection established\r\n< Connection: close\r\n< \r\n* Proxy replied OK to CONNECT request\r\n* successfully set certificate verify locations:\r\n*   CAfile: none\r\n  CApath: /etc/ssl/certs\r\n* SSLv3, TLS handshake, Client hello (1):\r\n* SSLv3, TLS handshake, Server hello (2):\r\n* SSLv3, TLS handshake, CERT (11):\r\n* SSLv3, TLS handshake, Server key exchange (12):\r\n* SSLv3, TLS handshake, Server finished (14):\r\n* SSLv3, TLS handshake, Client key exchange (16):\r\n* SSLv3, TLS change cipher, Client hello (1):\r\n* SSLv3, TLS handshake, Finished (20):\r\n* SSLv3, TLS change cipher, Client hello (1):\r\n* SSLv3, TLS handshake, Finished (20):\r\n* SSL connection using ECDHE-RSA-AES128-GCM-SHA256\r\n* Server certificate:\r\n* \t subject: OU=GT87339749; OU=See www.rapidssl.com/resources/cps (c)14; OU=Domain Control Validated - RapidSSL(R); CN=crates.io\r\n* \t start date: 2014-11-06 11:11:23 GMT\r\n* \t expire date: 2015-11-09 14:30:14 GMT\r\n* \t subjectAltName: crates.io matched\r\n* \t issuer: C=US; O=GeoTrust Inc.; CN=RapidSSL SHA256 CA - G3\r\n* \t SSL certificate verify ok.\r\n> GET /api/v1/crates/bitflags/0.1.1/download HTTP/1.1\r\n> User-Agent: curl/7.35.0\r\n> Host: crates.io\r\n> Accept: */*\r\n> \r\n< HTTP/1.1 302 Found\r\n< Connection: keep-alive\r\n* Server nginx is not blacklisted\r\n< Server: nginx\r\n< Date: Tue, 10 Mar 2015 12:48:03 GMT\r\n< Transfer-Encoding: chunked\r\n< Location: https://crates-io.s3-us-west-1.amazonaws.com/crates/bitflags/bitflags-0.1.1.crate\r\n< Set-Cookie: cargo_session=--3c156d7a3629aa08a1a0d538832f99ea30835cc8; HttpOnly; Secure; Path=/\r\n< Strict-Transport-Security: max-age=31536000\r\n< Via: 1.1 vegur\r\n< \r\n* Connection #0 to host 127.0.0.1 left intact\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/comments/114630255","html_url":"https://github.com/rust-lang/cargo/issues/1400#issuecomment-114630255","issue_url":"https://api.github.com/repos/rust-lang/cargo/issues/1400","id":114630255,"user":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T20:17:00Z","updated_at":"2015-06-23T20:17:00Z","body":"@yonkeltron well let's not jump to conclusions! Cargo most certainly wants to accommodate all forms of network environments, this is just perhaps a bug in Cargo itself. Unfortunately this is going to be very difficult to fix as I can't reproduce this."}}