4 ms·
If you work with third party stuff 1 you might get invalid json or xml from an API 2 an API might timeout 3 an image will just crash your backend script wit
by simion314 2y ago
If you work with third party stuff
1 you might get invalid json or xml from an API
2 an API might timeout
3 an image will just crash your backend script with no way to catch the error because some bug in the image encoder/decoder you use to resize the image
4 some user browser extension inserts garbage in the requests, you need to check for it and tell the user what is wrong, otherwise same complains reach support "stuff is broken" and support needs to contact developers to check and report back that stuff was corrupted by an extension , most of the time security crap that inserts stuff everywhere
5 I had cases where an API wwas returning soem string before the real result, it was much faster to check for this case and fix it, then have the customer contact their hosting or the author of the plugin that was adding that string before each response.