You’ve spent hours trying to find a bug in your code. Why is your program/script not doing such a simple task!? I mean, you’ve done the same thing a million times before. The code is so easy. It should work.
Then it hits you.
You’ve spent hours trying to find a problem that didn’t really exist. What did exist was a typo.