-
Notifications
You must be signed in to change notification settings - Fork 27
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
TypeError: Converting circular structure to JSON with Alexa Lambda Integration #28
Comments
hi hyzhak, when instantiating dashbot with the dashbot API key, can you also include config options for printErrors and debug? For example:
and then send us the log output from the lambda function? |
hi @shotamakino !
I hope it is helpful here |
ok, I've got more useful longs after patch original dashbot source, by replacing console.log(JSON.stringify(data, null, 2)); with: console.log(util.inspect(data, { depth: null})) so logs are:
|
Hi hyzhak, I am not able to replicate the problem on my end using only Lambda functions and the Alexa skills sdk, but I noticed you are using bespoken-tools for development and it is passing the LambdaContext class itself without instantiating an object of it. I'll attempt to replicate your issue using bespoken - would you kindly share how you're using bespoken-tools? |
Hi @shotamakino, Sure! Big thanks for the help! and there is script to launch bespoken tool: |
hi hyzhak, pushed a patch out to take care of this |
@shotamakino thank you! |
I have followed instruction here https://www.dashbot.io/docs/alexa/lambdav2/
but got an error:
So as you can see it comes from Alexa and I've found that
LambdaContext
has a lot ofcircular
properties. I have usedutil.inspect(context, {depth: 5}))
.The text was updated successfully, but these errors were encountered: