github twitter linkedin email rss
YouTube's 500 error page
Apr 2, 2018
1 minute read

Just caught 500-error at YouTube. No one is safe from that, even the best projects but that’s not the point of the post. The thing is that the error page is more useful than majority of other error pages. Here’s why…

What is different here is a long wall of “information”. You can not display anything useful in production since it would allow hackers to crack your project easier. But it would have been great because searching for particular user-reported error is, sometimes, a big pain. So the block of text in the screenshot is securely encoded debug information. Most likely, there is a special micro-service used by YouTube developers where they paste information to decrypt it. Quite smart.

Using Yii you can implement similar feature adjusting error handler to encode any useful information with Security::encryptByKey(). And then implement a form for decoding purposes.


Back to posts


comments powered by Disqus