Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Converting circular structure to JSON error when init Client #365

Open
wmt2023 opened this issue Jun 17, 2023 · 0 comments
Open

Get Converting circular structure to JSON error when init Client #365

wmt2023 opened this issue Jun 17, 2023 · 0 comments

Comments

@wmt2023
Copy link

wmt2023 commented Jun 17, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant