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

Converting circular structure to JSON on $utils.toJson($context) at .... #96

Closed
bboure opened this Issue Mar 6, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@bboure
Copy link
Collaborator

bboure commented Mar 6, 2019

Since this commit: acad449
I am getting this error when doing
$utils.toJson($context).

This happens I believe because there must have some circular reference in the request object https://github.com/ConduitVC/aws-utils/blob/master/packages/appsync-emulator-serverless/serverCore.js#L280

@JimmyHurrah

@cbaron

This comment has been minimized.

Copy link
Contributor

cbaron commented Mar 6, 2019

@bboure -- thinking we should explicitly define the attributes we pass along to the VTL context. Did you have any other ideas?

@cbaron

This comment has been minimized.

Copy link
Contributor

cbaron commented Mar 6, 2019

Going to put up a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.