MarkOoi1 / macromonitor

MM is an open source FinTech project, designed to help retail traders and investors execute with discipline. The platform and the code is free but in the future you can subscribe to paid Themes packages if you don't have time to create your own. Contact me for more information or if you want to contribute mark.kw.ooi@gmail.com
GNU General Public License v3.0
0 stars 0 forks source link

Twitterscraper content issue #16

Open MarkOoi1 opened 4 years ago

MarkOoi1 commented 4 years ago

2020-05-13T16:06:02.464485+00:00 app[web.1]: (node:23) UnhandledPromiseRejectionWarning: ValidationError: Event validation failed: content: Cast to String failed for value "[ 2020-05-13T16:06:02.464487+00:00 app[web.1]: 'Overlooked comment in the Powell speech: "When this crisis is behind us, we will put these emergency tools away."pic.twitter.com/UCnQwUcEDa' 2020-05-13T16:06:02.464488+00:00 app[web.1]: ]" at path "content" 2020-05-13T16:06:02.464488+00:00 app[web.1]: at new ValidationError (/app/node_modules/mongoose/lib/error/validation.js:31:11) 2020-05-13T16:06:02.464489+00:00 app[web.1]: at model.Document.invalidate (/app/node_modules/mongoose/lib/document.js:2554:32) 2020-05-13T16:06:02.464489+00:00 app[web.1]: at model.$set (/app/node_modules/mongoose/lib/document.js:1235:12) 2020-05-13T16:06:02.464490+00:00 app[web.1]: at model.set [as content] (/app/node_modules/mongoose/lib/helpers/document/compile.js:148:26) 2020-05-13T16:06:02.464491+00:00 app[web.1]: at /app/server/routes/api/twitterscraper.js:85:27 2020-05-13T16:06:02.464491+00:00 app[web.1]: at processTicksAndRejections (internal/process/task_queues.js:97:5) 2020-05-13T16:06:02.464608+00:00 app[web.1]: (node:23) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 85)