DEV Community

Discussion on: What's a recent frustrating bug you've had with a crazy simple solution?

Collapse
 
alchermd profile image
John Alcher

I was writing a unit test for POST requests on an api endpoint and was wondering why no data was being returned. I tried logging the request object and the data expected was being sent back; it was a wild situation that I almost threw the towel in. Apparently, the endpoint was responding with a 204 status code that literally meant NO CONTENT. That's a funny TIL moment for me.