Skip to content

Unable to access the crates.io website through cURL or pragmatically without extra HTTP headers #4783

@JeffResc

Description

@JeffResc

Current Behavior

Unable to access the crates.io website through cURL or pragmatically without extra HTTP headers. Returns a 404 error, for example:

# curl https://crates.io/crates/rand
{"errors":[{"detail":"Not Found"}]}

Expected Behavior

I expect the request to respond with status 200 and the page contents

Steps To Reproduce

Run the following command on the command line:

curl https://crates.io/crates/rand

Environment

  • Browser: curl 7.68.0
  • OS: 20.04.4 LTS (Focal Fossa)

Anything else?

Please see Kovah/LinkAce#465 for more details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bug 🐞Category: unintended, undesired behavior

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions