xfbs / diff.rs

Web application to render a diff between Rust crate versions. Implemented in Yew, runs fully in the browser as WebAssembly.
https://diff.rs
MIT License
86 stars 6 forks source link

Intermittent CORS issues when fetching crate sources #4

Closed xfbs closed 1 year ago

xfbs commented 1 year ago

Occasionally, there is errors loading crate sources from crates.io, which look like this:

Screenshot 2023-03-08 at 22 01 09

I've created an issue in the crates.io repo: https://github.com/rust-lang/crates.io/issues/6164 hoping that this can be fixed soon.

xfbs commented 1 year ago

Just added a warning on the home page about this:

Screenshot from 2023-03-09 21-47-34

Also made sure that errors are rendered in a pretty way:

Screenshot from 2023-03-09 21-47-08

Will see how the [crates.io]() team responds to this on the issue. As a workaround I could build a small proxy crate and deploy that somewhere the serves the crate sources that is used as a fallback. That should fix the issue too, but has some maintenance burden.

xfbs commented 1 year ago

I think this should now be fixed, thanks to the awesome and fast response from the crates.io team. I'm marking this one as closed, if we run into issues again we can reopen another issue.