fakeData generation can break application
I got this error when generating fake articles in dev mode.
We should make sure that generated data is not too long (and catch exceptions).
W20220314-10:34:51.525(1)? (STDERR) /home/bruno/.meteor/packages/meteor-tool/.2.6.1.18r819w.4ekxf++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280
W20220314-10:34:51.528(1)? (STDERR) throw(ex);
W20220314-10:34:51.528(1)? (STDERR) ^
W20220314-10:34:51.528(1)? (STDERR)
W20220314-10:34:51.528(1)? (STDERR) Error: Short description cannot exceed 400 characters in articles insert
W20220314-10:34:51.528(1)? (STDERR) at getErrorObject (packages/aldeed:collection2/collection2.js:506:17)
W20220314-10:34:51.528(1)? (STDERR) at doValidate (packages/aldeed:collection2/collection2.js:478:13)
W20220314-10:34:51.528(1)? (STDERR) at ns.Collection.Mongo.Collection.<computed> [as insert] (packages/aldeed:collection2/collection2.js:199:14)
W20220314-10:34:51.529(1)? (STDERR) at imports/startup/server/db-initialize/Articles.js:29:18
W20220314-10:34:51.529(1)? (STDERR) at Array.forEach (<anonymous>)
W20220314-10:34:51.529(1)? (STDERR) at imports/startup/server/db-initialize/Articles.js:26:13
W20220314-10:34:51.529(1)? (STDERR) at Array.forEach (<anonymous>)
W20220314-10:34:51.529(1)? (STDERR) at module (imports/startup/server/db-initialize/Articles.js:23:16)
W20220314-10:34:51.529(1)? (STDERR) at fileEvaluate (packages/modules-runtime.js:336:7)
W20220314-10:34:51.529(1)? (STDERR) at Module.require (packages/modules-runtime.js:238:14)
W20220314-10:34:51.529(1)? (STDERR) at Module.moduleLink [as link] (/home/bruno/.meteor/packages/modules/.0.18.0.eqq8r4.h749++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/@meteorjs/reify/lib/runtime/index.js:52:22)
W20220314-10:34:51.529(1)? (STDERR) at module (imports/startup/server/index.js:1:626)
W20220314-10:34:51.529(1)? (STDERR) at fileEvaluate (packages/modules-runtime.js:336:7)
W20220314-10:34:51.530(1)? (STDERR) at Module.require (packages/modules-runtime.js:238:14)
W20220314-10:34:51.530(1)? (STDERR) at Module.moduleLink [as link] (/home/bruno/.meteor/packages/modules/.0.18.0.eqq8r4.h749++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/@meteorjs/reify/lib/runtime/index.js:52:22)
W20220314-10:34:51.530(1)? (STDERR) at module (server/main.js:1:8) {
W20220314-10:34:51.530(1)? (STDERR) invalidKeys: [
W20220314-10:34:51.530(1)? (STDERR) {
W20220314-10:34:51.530(1)? (STDERR) name: 'description',
W20220314-10:34:51.530(1)? (STDERR) value: 'Qui mollitia molestiae explicabo omnis officia facere voluptates illo sunt. Blanditiis similique deserunt qui eum tempora. Iure id dolorem repudiandae dolores in fuga sed. Eveniet qui molestiae deleniti adipisci perferendis aspernatur suscipit. Perferendis enim consequatur dolore nihil sunt quisquam repellendus praesentium. Quasi quibusdam nihil impedit impedit doloribus reprehenderit repellendus consequatur enim.',
W20220314-10:34:51.531(1)? (STDERR) type: 'maxString',
W20220314-10:34:51.531(1)? (STDERR) max: 400
W20220314-10:34:51.531(1)? (STDERR) }
W20220314-10:34:51.531(1)? (STDERR) ],