crates.io icon indicating copy to clipboard operation
crates.io copied to clipboard

https://index.crates.io/ Returns an error, modify https://crates.io/data-access

Open 3dgoose opened this issue 1 year ago • 3 comments

Current Behavior

https://crates.io/data-access#crate-index Says to go to index.crates.io, but returns :

<Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
<Key>index.html</Key>
<RequestId>9N18CM92BR5XTWKS</RequestId>
<HostId>q4ty6zmoEGQcE1NRdlL1qFT0U1yIjTb7xPLi1qBBBPYr+KxOgFlUFmifgWnTMcZWwgXVy4x9R1jdxnnCpzh6mA==</HostId>
</Error>

Expected Behavior

Expected a valid site

Steps To Reproduce

Go to : https://index.crates.io/

Environment

  • Browser: Chrome 124.0.6367.119 (Build officiel) (64 bits) (cohort: Control)
  • OS: Windows 10

Anything else?

Capture d’écran (14)

3dgoose avatar May 08 '24 20:05 3dgoose

The API is set up and works correctly. The only thing missing is a html page. Given that we link to the root, and the number of people been confused by this, perhaps we should add a index.html to the S3 bucket explaining how API is to be used.

Eh2406 avatar May 09 '24 16:05 Eh2406

crates.io/data-access#crate-index Says to go to index.crates.io, but returns :

From the crate-index page, it gives an example: image

You need to specify the crate name in the index URL.

0xPoe avatar May 10 '24 12:05 0xPoe

perhaps we should add a index.html to the S3 bucket explaining how API is to be used.

Sounds good to me! It would help users understand how to access the index by crate name.

0xPoe avatar May 10 '24 12:05 0xPoe

https://github.com/rust-lang/crates.io-index/pull/25 added a README file to the index repository and I've uploaded a rendered HTML version of it to the sparse index. In other words: https://index.crates.io/ shows a short description now.

Turbo87 avatar Jun 22 '24 10:06 Turbo87