Skip to content

cargo publish - API error invalid upload request: invalid value: string "http/1.0", expected a valid keyword specifier at line 1 column 3886 #7321

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

Closed
sbstp opened this issue Sep 3, 2019 · 4 comments
Labels
C-bug Category: bug

Comments

@sbstp
Copy link

sbstp commented Sep 3, 2019

Problem

When I try to publish my crate I get an error. It happens both when I use the stable and the nightly toolchains. I'm using rustup and everything is up to to date.

Here's the whole output:

simon@mint:~/projects/github/sbstp/attohttpc$ cargo publish
    Updating crates.io index
   Packaging attohttpc v0.4.2 (/home/simon/projects/github/sbstp/attohttpc)
   Verifying attohttpc v0.4.2 (/home/simon/projects/github/sbstp/attohttpc)
   Compiling cc v1.0.41
   Compiling pkg-config v0.3.15
   Compiling libc v0.2.62
   Compiling autocfg v0.1.6
   Compiling byteorder v1.3.2
   Compiling bitflags v1.1.0
   Compiling log v0.4.8
   Compiling foreign-types-shared v0.1.1
   Compiling openssl v0.10.24
   Compiling matches v0.1.8
   Compiling crc32fast v1.2.0
   Compiling smallvec v0.6.10
   Compiling native-tls v0.2.3
   Compiling lazy_static v1.4.0
   Compiling cfg-if v0.1.9
   Compiling openssl-probe v0.1.2
   Compiling take_mut v0.2.2
   Compiling fnv v1.0.6
   Compiling itoa v0.4.4
   Compiling percent-encoding v1.0.1
   Compiling rle-decode-fast v1.0.1
   Compiling adler32 v1.0.3
   Compiling foreign-types v0.3.2
   Compiling unicode-bidi v0.3.4
   Compiling unicode-normalization v0.1.8
   Compiling libflate v0.1.27
   Compiling iovec v0.1.2
   Compiling openssl-sys v0.9.49
   Compiling bytes v0.4.12
   Compiling http v0.1.18
   Compiling idna v0.1.5
   Compiling url v1.7.2
   Compiling attohttpc v0.4.2 (/home/simon/projects/github/sbstp/attohttpc/target/package/attohttpc-0.4.2)
    Finished dev [unoptimized + debuginfo] target(s) in 33.29s
   Uploading attohttpc v0.4.2 (/home/simon/projects/github/sbstp/attohttpc)
error: api errors (status 200 OK): invalid upload request: invalid value: string "http/1.0", expected a valid keyword specifier at line 1 column 3886

Steps

  1. Clone https://github.com/sbstp/attohttpc and checkout the v0.4.2 tag
  2. cargo publish

Possible Solution(s)

Could perhaps be due to my proxy at work but my traffic should not be going through it. If nobody else has this issue then it's probably me.

Notes

Output of cargo version: cargo 1.37.0 (9edd08916 2019-08-02)

@sbstp sbstp added the C-bug Category: bug label Sep 3, 2019
@sfackler
Copy link
Member

sfackler commented Sep 3, 2019

The server is saying that some of your keywords are invalid since they contain non-alphabetic characters: https://github.com/sbstp/attohttpc/blob/v0.4.2/Cargo.toml#L13

sbstp pushed a commit to sbstp/attohttpc that referenced this issue Sep 3, 2019
@sbstp
Copy link
Author

sbstp commented Sep 3, 2019

Thanks for the quick reply. Do you want to keep the issue open to add a lint or should I just close it?

@alexcrichton
Copy link
Member

This is currently covered by rust-lang/crates-io-cargo-teams#41 I believe, so I'm going to close this.

@sbstp
Copy link
Author

sbstp commented Sep 3, 2019

Thanks Alex.

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

3 participants