L
13

Trying to fix a weird bug in my Python script took me 4 hours yesterday

I was automating a simple data pull from a website, and the script kept crashing on one specific page for no clear reason. Turns out there was a hidden HTML comment with a weird character that my parser couldn't handle, and I had to write a custom filter. What's the most random bug you've spent way too long solving?
2 comments

Log in to join the discussion

Log In
2 Comments
evah40
evah4019d ago
Ugh. @joel_adams79, what encoding were you even using?
4
joel_adams79
That hidden HTML comment sounds like a nightmare. I once lost a whole afternoon because a JSON file had a single smart quote instead of a regular apostrophe. My script just kept throwing a generic encoding error. Did your custom filter just strip out the weird characters, or did you have to change the whole way your parser read the page?
3