Next.js Discord

Discord Forum

Unhandled Runtime ErrorError: Maximum call stack size exceeded

Unanswered
Avinash SC posted this in #help-forum
Open in Discord
Call Stack
String.replace
<anonymou> i am using nextjs 14 server actions . and with MongoDB, Mongoose. can any help me on this

4 Replies

American black bear
I have the same error too. Please tell me if you found any solution. Thanks.
Manx
Try allowing access to your database from any origin if you have not tried that already
American black bear
I resolved it by cleaning up the data retrieved by mongodb. Just keep the required data (usually present in _doc) and use it in components.
Just console.log the data retrieved and plan how to clean it. Hope this helps