intercom-node | Node.js bindings for the Intercom API | REST library
kandi X-RAY | intercom-node Summary
kandi X-RAY | intercom-node Summary
Official Node bindings to the Intercom API.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of intercom-node
intercom-node Key Features
intercom-node Examples and Code Snippets
Community Discussions
Trending Discussions on intercom-node
QUESTION
i am writing a function where i want to do something and if it went wrong catch the status code of it. bellow is my function
...ANSWER
Answered 2018-Feb-09 at 21:26You got this error because you trying to access a statusCode
of a string. I guess client.leads.listBy
does stringify the error and calls throw new Error(stringifiedObj)
, so you can't access its properties at catch
block in the end. Otherwise you would got [Object object] as output.
Alright, I got it for you. What you see in the console output is an error message which is a string. Here's what you want to do inside catch
block to check the actual property:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install intercom-node
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page