-
Notifications
You must be signed in to change notification settings - Fork 15.5k
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 #4311
Comments
I think the "req" object was too long, but I won't close it because I'm probably incorrect |
Yes there is a circular dependency between req and res and this is not a bug. Try sending particular props from the req object back in the response. this is from the docs
|
Not a bug. @ghinks gave a good example, circular objects being non-serializable is expected behavior. Closing issue. |
Hi @davidmashe , does circular in 'circular objects' mean recursive? |
This worked for me: I have just copied
instead of https://stackoverflow.com/questions/43622337/using-import-fs-from-fs |
Im trying to send the request data, but I get an error message. Any idea on how I can fix this? (This error only occurs when I send JSON)
Here is my server.js:
And here is my routes/post.js (where the main issue is I believe):
Edit: Here's the error message:
The text was updated successfully, but these errors were encountered: