Something went wrong. Sorry for the inconvenience.

I've been running into Something went wrong. Sorry for the inconveniencefrequently when trying to run a backtest over the past few days.

I initially tried debugging, with no success. The error then randomly disappears by changing something like the start/end date by an arbitrary amount, refreshing the page, logging out and back in, copying and pasting the code to another algorithm builder.

How should I go about diagnosing what the issue is with my code in future when encountering this error? The solutions I have found so far have been working intermittently, but it's becoming quite disruptive.