node-mongosm
node-mongosm copied to clipboard
RangeError: Maximum call stack size exceeded
process failed at the middle with the following error message:
`Starting to process the relaitons
/home/alper/projects/osm/node_mongosm/node_modules/mongoose/lib/document.js:1282
}).pre('save', function validation (next) {
^
RangeError: Maximum call stack size exceeded
at model.validation (/home/alper/projects/osm/node_mongosm/node_modules/mongoose/lib/document.js:1282:38)
at _next (/home/alper/projects/osm/node_mongosm/node_modules/hooks/hooks.js:50:30)
at fnWrapper (/home/alper/projects/osm/node_mongosm/node_modules/hooks/hooks.js:159:8)
at model.checkForExistingErrors (/home/alper/projects/osm/node_mongosm/node_modules/mongoose/lib/document.js:1280:7)
at _next (/home/alper/projects/osm/node_mongosm/node_modules/hooks/hooks.js:50:30)
at fnWrapper (/home/alper/projects/osm/node_mongosm/node_modules/hooks/hooks.js:159:8)
at model.<anonymous> (/home/alper/projects/osm/node_mongosm/node_modules/mongoose/lib/document.js:1225:14)
at model._next (/home/alper/projects/osm/node_mongosm/node_modules/hooks/hooks.js:50:30)
at model.proto.<computed> [as save] (/home/alper/projects/osm/node_mongosm/node_modules/hooks/hooks.js:96:20)
at model.save (/home/alper/projects/osm/node_mongosm/lib/queue.js:62:10)