intercom/intercom-node

Better error handling of invalid search queries

Closed this issue · 2 comments

See #344 for some context.

Just recently ran into an issue because of this. Probably due to incorrect config, but any calls from the client fails with undefined error. After some digging it seems to be getting a 404 from the api, but because of this

return undefined;

the error is swallowed and completely hidden, at least a console.error or some specific error thrown would help for debugging.

Exceptions like these need to bubble up so it can be handled properly, and give some insight into what is wrong.

This should be addressed in version 6.x.x of the SDK. Please reopen the issue if the problems still persists.