You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a registry is redirecting the request to a different location, cargo search will fail with the following error (trimmed):
error: failed to retrieve search results from the registry at https://example.com/my_repo
Caused by:
failed to get a 200 OK response, got 302
headers:
HTTP/2 302
location: https://example.org/some_path/api/v1/crates?q=log&per_page=10
body:
<html>
<head><title>302 Found</title></head>
<body>
<center><h1>302 Found</h1></center>
</body>
</html>
Note that the change in #15593 not only affects cargo search but also other registry related commands. I wonder if there is any security implication. That said, yes, when downloading crate index and tarballs, Cargo already follows redirections.
Problem
If a registry is redirecting the request to a different location,
cargo search
will fail with the following error (trimmed):Steps
Possible Solution(s)
Follow redirects
Notes
No response
Version
The text was updated successfully, but these errors were encountered: