Closed alexcrichton closed 7 years ago
I think the crate may be this one: https://crates.io/crates/ansi_term
So last night I published ansi_term v0.10.0, got a 500 error, saw that it was listed on crates.io, shrugged, and moved on. This morning I saw that it was gone, so I tried again, and got that same 500 error. Apparently doing that breaks stuff. I won't try and publish it again!
The string that's causing it to fail on occurs in README.txt and in src/lib.rs. It's the first instance of non-ASCII text in those two files.
Here's the output from my perspective:
$ cargo publish --verbose
Updating registry `https://github.com/rust-lang/crates.io-index`
Packaging ansi_term v0.10.0 (file:///Users/ben/Code/rust/ansi-term)
Archiving .gitignore
Archiving .travis.yml
Archiving Cargo.toml
Archiving LICENCE
Archiving README.md
Archiving src/ansi.rs
Archiving src/debug.rs
Archiving src/difference.rs
Archiving src/display.rs
Archiving src/lib.rs
Archiving src/style.rs
Archiving src/windows.rs
Archiving src/write.rs
Verifying ansi_term v0.10.0 (file:///Users/ben/Code/rust/ansi-term)
Compiling ansi_term v0.10.0 (file:///Users/ben/Code/rust/ansi-term/target/package/ansi_term-0.10.0)
Running `rustc --crate-name ansi_term target/package/ansi_term-0.10.0/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=58a4c93f70372b5a -C extra-filename=-58a4c93f70372b5a --out-dir /Users/ben/Code/rust/ansi-term/target/package/ansi_term-0.10.0/target/debug/deps -L dependency=/Users/ben/Code/rust/ansi-term/target/package/ansi_term-0.10.0/target/debug/deps`
Finished dev [unoptimized + debuginfo] target(s) in 1.0 secs
Uploading ansi_term v0.10.0 (file:///Users/ben/Code/rust/ansi-term)
error: failed to get a 200 OK response, got 500
headers:
HTTP/1.1 100 Continue
HTTP/1.1 500 Internal Server Error
Connection: keep-alive
Server: nginx
Date: Thu, 07 Sep 2017 10:32:20 GMT
Content-Length: 30
Strict-Transport-Security: max-age=31536000
Via: 1.1 vegur
body:
Error 404: Not Found
Not Found
Hi! Sorry about this @ogham! It appears to be the ’
characters that are causing a problem for some reason, I've filed a bug with comrak.
In the meantime, I don't want to prevent you from publishing a new version! If you want to publish immediately, I think replacing the ’
characters in your README.md with '
characters should do it (the text in src/lib.rs is not causing this). I'm going to implement a workaround running this replacement on crates.io until the comrak issue is fixed, but that might take me a day or two to deploy.
ACTUALLY I just found out this is fixed in comrak 0.1.9! Updating now!
@ogham Deployed the fix to staging and was able to publish ansi_term 0.10.0 without errors and the README is rendering: https://staging-crates-io.herokuapp.com/crates/ansi_term
So I deployed to production! Please try publishing again-- I'm going to close this because I'm pretty confident it's fixed, but please reopen if you still get an error :)
Sorry about that!!
Thanks for sorting that out! (I got no errors this time, it's all good)
I was poking around in logs and found this panic, which unfortunately would take down the server. Unfortunately I don't have the precise text that was being rendered offhand yt