You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When carrot returns a body that cannot be parsed by JSON.parse, there is a try/catch but the catch doesn't return the callback(), so the code continues and crashes.
When carrot returns a body that cannot be parsed by JSON.parse, there is a try/catch but the catch doesn't return the callback(), so the code continues and crashes.
res.on('end', function() {
152 try {
153 var output = JSON.parse(body);
154 } catch(err) {
155 callback("Malformed JSON response.", search_result);
156 }
The text was updated successfully, but these errors were encountered: