Re:Show HN: Jam API, turn any site into a JSON api using CSS...
by gavino on Thursday April 28, 2016 @06:46AM
(#11587777)
I had been trying to figure out what would be causing this issue, thanks for pointing it out, I've pushed a fix real quick that will respond whether JSON is invalid or a CSS selector wasn't found on the provided URL.
I found it: The API responds with an HTTP 500 error if you use CSS selectors that don't select anything or are simply invalid.
Probably makes sense to add some Exception handling right there.