intercom-node
intercom-node copied to clipboard
Get Converting circular structure to JSON error when init Client
Please use the following template to submit your issue. Following this template will allow us to quickly investigate and help you with your issue. Please be aware that issues which do not conform to this template may be closed.
For feature requests please contact us at [email protected]
Version info
- intercom-node version:V4.0.0
- Node version:v16.13.0
- TS
Expected behavior
init Client Obj
Actual behavior
Get error Converting circular structure to JSON --> starting at object with constructor 'Client' | property 'admins' -> object with constructor 'Admin' --- property 'client' closes the circle
Steps to reproduce
this.client = new Client({
tokenAuth: {
token: process.env.INTERCOM_WEBHOOK_SECRET,
},
// apiKeyAuth: {
// appId: process.env.INTERCOM_CLIENT_ID,
// appApiKey: process.env.INTERCOM_CLIENT_SECRET,
// },
})
Logs
Converting circular structure to JSON --> starting at object with constructor 'Client' | property 'admins' -> object with constructor 'Admin' --- property 'client' closes the circle
Thanks