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
RangeError: Maximum call stack size exceeded while updating data to the database after adding jsonwebtoken in url #6214
Comments
Hi @rohan-paul, thanks for making this easy to trouble shoot. I cloned your repo and there are 2 lines that need to be changed to make it work:
after making these changes* I was able to add messages without it crashing. |
|
Hi @lineus - That works great.. thanks so very much.. |
In my App (A messenger app, when I enter in the new message, in the message (string) input, and click on submit, the node server closes giving me the below error
Although the new message that I am submitting in the in the input form gets saved in the database. And when I restart the node server, it shows up.
The content in my ../models/messages.js
This issue started happening after I inserted the code for jsonwebtoken in ./message/message.service.ts file for adding the token to my
post
urlThe full source code of the project - Full code base
Please mention your node.js, mongoose and MongoDB version.
node - v9.3.0
mongodb - version v3.6.3
mongoose - 5.0.9
The text was updated successfully, but these errors were encountered: