Open scanf13ld opened 4 years ago
I've got a similar issue. When I request data that doesn't exist (like, a candidate's industry contributions from an industry they haven't got any contributions from), I also get a JSON decode error.
I think the issue is the fetch() method trying to decode the http response before checking the http response status. There's no JSON to decode if the response isn't 200.
Here's my fix:
Hello! I am getting this error when trying to use this method. It was working before back in early 2019, but for some reason it isn't working anymore. I recently regenerated an API key for my account and have access to the basic API functions.