Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
sourcegraph.com experiencing unexpected error every now and then #1760
I've been seeing this error every now and then when using Sourcegraph.com . It will randomly appear when I'm switching from one page to another. It resolves by reloading the page.
The console shows this error:
I'll keep the network tab open from now on so I can get that error too, next time this happens.
Ok, I could imagine how this could happen if we are lazily loading JS chunks (is that the case?).
If so a reproduction might look like:
Is there a way to catch these 404s and handle them by doing a hard page refresh automatically?
Yeah we are now, I introduced that recently. This is definitely a problem. We could go back to using a single chunk for now in webpack config (ideally keep the work that refactored the UI to use multiple chunks, but just override webpack in 1 place to tell it to emit a single chunk).
Doing a hard page refresh seems like the best simple option, but it MIGHT be problematic:
If someone has a good idea on how to address those 2 things, then