Ask HN: How do you get a grip on phantom errors?
Most of us already had it: you thought all errors in your app have finally been ironed out and then someone sends you an ugly screenshot showing an even more ugly error you cannot reproduce. He's not tech savvy enough to tell you details about his system config and cannot reliably reproduce the error himself. But the screenshot shows: it's out there. How do you get a grip on that?
3 comments
[ 5.3 ms ] story [ 80.5 ms ] threadThe main key is to reproduce the errors on your system, so just try a bunch of wacky things like different screen resolutions, memory constraints, database configurations, etc. Continually look at the code and brainstorm what might cause that issue -- there are a limited number of code paths -- and try to cause the constraints in your code. It's definitely very specific to the individual situation.
What you could do, is figure out the IP address of the user (that shouldn't be too hard), then go back into the log files and check all their actions one by one rebuilding the state up to the moment of the bugs occurrence.
Chances are that you'll be able to reproduce it that way, even if the user is clueless.
This little trick saved my ass a couple of times.