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

Error when serializing request context with circular ref #864

Closed
ttournie opened this issue May 5, 2021 · 0 comments
Closed

Error when serializing request context with circular ref #864

ttournie opened this issue May 5, 2021 · 0 comments
Assignees
Labels
type: bug 🐛 Something isn't working

Comments

@ttournie
Copy link
Contributor

ttournie commented May 5, 2021

Describe the bug
I get a Converting circular structure to JSON when Vendure try to serialize the request-context

To Reproduce

  • First you need to install the node package dd-trace (datadog trace)

  • Then you create a tracer.ts file in the src folder with :
    import tracer from 'dd-trace'
    tracer.init()
    export default tracer

  • Then in the index.ts and the index-worker.ts add import './tracer' on the top of the file.(You do not need the tracer to actually connect to make the error append)

  • Finally to trigger the error you can go to the admin-ui and try to re-index

Expected behavior
It should clean the circular ref

@ttournie ttournie added the type: bug 🐛 Something isn't working label May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants