Hi Tom
Can’t save() the same doc multiple times in parallel.
That error was generated by mongoose, where it was committed to the code on this pull request: https://github.com/Automattic/mongoose/pull/6511. Apparently it was created to fix bugs 6456 and 4064. The full history and discussion about the cause can be seen in the two linked mongoose issues.
I was able to comment out some code and it’s working ok
Could you elaborate what you did to avoid the error? Does the code still behave like you expect it to after this change?
Are the free servers too slow for what I’m doing? Is it a setting I could change?
I’m not sure if there’s any setting you could change since the error was generated by mongoose. I would think that the best way to avoid this error is to address the underlying issue, which is apparently the code trying to save different versions of one document at the same time.
Best regards,
Kevin
Hi Tom
In addition, could you try upgrading your mongoose to the latest version? There appears to be an issue 6611 that was fixed in newer mongoose version.
Best regards
Kevin