15
Finally got my first API call to work after 2 hours of console.log spam
I was sitting in my kitchen at 11pm trying to hook up a weather API to my little project. Kept getting a 401 error until I realized my API key had a hidden space I copy pasted from the docs. Fixed that and suddenly rain data for Seattle popped up on my screen. Has anyone else wasted hours on something dumb like a typo or a hidden character?
3 comments
Log in to join the discussion
Log In3 Comments
the_parker14d ago
WAIT, a HIDDEN SPACE ate two hours of your life? I would have thrown my laptop out the window.
3
the_paul13d ago
Houston we have a problem imo. I've definitely been there where you're staring at the screen feeling like a total clown but throwing the laptop out the window is a bit dramatic isn't it? I mean it's frustrating yeah but it's not like we're doing brain surgery. Usually grabbing a coffee and walking away for 5 minutes fixes it.
1
sean_green4414d ago
Took that and ran with it. I literally spent an hour debugging why my date picker showed 1970 for everything. Turns out I was passing the month as a string instead of a number. Sat there staring at my screen feeling like I forgot how to code.
2