rust-lang / crates.io

The Rust package registry

Home Page:https://crates.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Frequent errors when clicking on crate Dependents link

atouchet opened this issue · comments

Current Behavior

I am experiencing frequent errors when trying to load the Dependents link from a crate page. This issue has been happening for a while now.

Expected Behavior

I expected the Dependents page to load as it is supposed to.

Steps To Reproduce

I have not found a way to consistently reproduce the issue 100% of the time but this is an example of the issue happening:

  1. Go to a crate page (ex. https://crates.io/crates/serde)
  2. Click "Dependents" (ex. https://crates.io/crates/serde/reverse_dependencies)
  3. The page does not finish loading and returns the error "Could not load reverse dependencies for the "serde" crate: Internal Server Error

Environment

  • Browser: Firefox 120.0
  • OS: Windows 10

Anything else?

Error image:

Untitled-1

unfortunately this is caused by a performance issue with the corresponding database query. on less depended-upon crates it works fine but for cases like werde it takes a long time to respond. some attempts have been made to improve the situation, but it's still very slow unfortunately.