rust crate.io 镜像有个奇怪问题

572 views
Skip to first unread message

Ning Adam

unread,
Oct 2, 2019, 1:35:42 AM10/2/19
to USTC_LUG
用 ustc 的 cargo 镜像下载 futures-join-macro-preview 就会有这样的错误, 但是使用官方源就没有这个问题

Cargo.toml 加上这个依赖

[dependencies]
futures-preview = { version = "=0.3.0-alpha.18", features=["async-await", "nightly"]}

错误:

warning: spurious network error (2 tries remaining): [92] Stream error in the HTTP/2 framing layer (HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2))
warning: spurious network error (2 tries remaining): [92] Stream error in the HTTP/2 framing layer (HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2))
warning: spurious network error (2 tries remaining): [92] Stream error in the HTTP/2 framing layer (HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2))
warning: spurious network error (1 tries remaining): [92] Stream error in the HTTP/2 framing layer (HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2))
warning: spurious network error (1 tries remaining): [92] Stream error in the HTTP/2 framing layer (HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2))
warning: spurious network error (1 tries remaining): [92] Stream error in the HTTP/2 framing layer (HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2))
error: failed to download from `https://crates-io.proxy.ustclug.org/api/v1/crates/futures-join-macro-preview/0.3.0-alpha.18/download`

Caused by:
  [92] Stream error in the HTTP/2 framing layer (HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2))
Makefile:22: recipe for target 'build' failed
make: *** [build] Error 101

~/.cargo/config

[source.crates-io]
registry = "http://github.com/rust-lang/crates.io-index"
replace-with = 'ustc'
[source.ustc]
registry = "http://mirrors.ustc.edu.cn/crates.io-index/"


Shengjing Zhu

unread,
Oct 2, 2019, 10:13:59 AM10/2/19
to USTCLUG-Group
On Wed, Oct 2, 2019 at 1:35 PM Ning Adam <frosty...@gmail.com> wrote:
>
> 用 ustc 的 cargo 镜像下载 futures-join-macro-preview 就会有这样的错误, 但是使用官方源就没有这个问题
>
[...]

应该已经恢复了,可以关注相关的 Github issue,
https://github.com/ustclug/discussions/issues/297

--
Regards,
Shengjing Zhu

Ning Adam

unread,
Oct 3, 2019, 8:42:22 AM10/3/19
to ustc...@googlegroups.com
多谢!

Shengjing Zhu <zsj9...@gmail.com> 于2019年10月2日周三 下午10:14写道:
> --
> 您收到此邮件是因为您订阅了 Google 网上论坛的“USTC_LUG”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到ustc_lug+u...@googlegroups.com
> 要在网络上查看此讨论,请访问 https://groups.google.com/d/msgid/ustc_lug/CAG%2Bqr1F%2BALVc_Sbfb6rU4e%2Bh8VTic2JxYJ_%3DPmf81uBVwULhZw%40mail.gmail.com
Reply all
Reply to author
Forward
0 new messages