Hello, I have this kind of error. Yesterday this was working really well but it suddenly became like this where it throws a Circular structure error. I don’t know what causes this. Please help. Thank you.
When you return a value from a resolver you have defined it will be converted to JSON using JSON.stringify
.
It seems you are returning a ClientRequest object from your resolver which has a circular reference (a property that references the object itself). JSON.stringify
doesn’t support circular references.
I suggest you check that you are returning the value you expect from this resolver (e.g. you may wish to return the response body from that ClientRequest
not the object itself) through logs or the tunnel debugger.
If you find this is not the issue, please provide a code sample that reproduces this as there isn’t much more information available in the provided stack trace to assist.
This is what I really need. I accidentally return the axios response entirely instead of returning the response.data. Thank you