Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning: spurious network error #9335

Closed
ghost opened this issue Apr 7, 2021 · 3 comments
Closed

warning: spurious network error #9335

ghost opened this issue Apr 7, 2021 · 3 comments
Labels
C-bug Category: bug

Comments

@ghost
Copy link

ghost commented Apr 7, 2021

Hello, I keep getting this message:

warning: spurious network error (2 tries remaining): failed to read data: The server returned an invalid or unrecognized response
; class=Os (2)

I tried:

  • Using another machine
  • Using another OS
  • Disabling firewall
  • Reinstalling rust
  • Deleting my entire machine (hard reset)
    but it doesn't work

This is my Cargo.toml file
[package]
name = "game1"
version = "0.1.0"
authors = ["name"]
edition = "2018"

[dependencies]
bevy = "0.5"

literally, what?
Updating crates.io index
warning: spurious network error (2 tries remaining): failed to read data: The server returned an invalid or unrecognized response
; class=Os (2)
warning: spurious network error (1 tries remaining): failed to read data: The server returned an invalid or unrecognized response
; class=Os (2)
error: failed to get bevy as a dependency of package game1 v0.1.0 (C:\Users\myname\Desktop\Files\game1)

Caused by:
failed to load source for dependency bevy

Caused by:
Unable to update registry https://github.com/rust-lang/crates.io-index

Caused by:
failed to fetch https://github.com/rust-lang/crates.io-index

Caused by:
failed to read data: The server returned an invalid or unrecognized response
; class=Os (2)
this is the full error message

Keep in mind that I disabled firewall, I have no proxy (I checked) and no VPN. I also read posts #6513 and #3750 but they didn't help. This isn't a problem with my machine, nor my network. What is this? Is there a fix?

@ghost ghost added the C-bug Category: bug label Apr 7, 2021
@Eh2406
Copy link
Contributor

Eh2406 commented Apr 7, 2021

I think we have issues where libgit2 cant work on IPv6. @ehuss do I remember that correctly? It may be worth trying with the git-fetch-with-cli = true set.

@ghost
Copy link
Author

ghost commented Apr 7, 2021

Fixed it, by adding
[net] git-fetch-with-cli = true
in C:\Users\my_name\.cargo\config

@ghost ghost closed this as completed Apr 7, 2021
nmeum added a commit to nmeum/qsym that referenced this issue May 18, 2023
Requires using the git(1) CLI for cloning as Cargo's libgit2-based
clone doesn't seem to like my Git server for some reason…

See: rust-lang/cargo#9335
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants
@Eh2406 and others