آموزش جاوااسکریپت › انجمن ها › Nodejs › آپدیت تایم دوره
برچسب ها: آپدیت دوره
- این موضوع 2 پاسخ، 2 کاربر را دارد و آخرین بار در 2 سال، 9 ماه پیش بدست mhdyakhlaqy865 بهروزرسانی شده است.
-
نویسندهنوشتهها
-
mhdyakhlaqy865مشارکت کننده
من بعد از انجام قسمت 25 بعد از ساخت قسمت در دوره تایم آپدیت نمیشود و این ارور را میدهد
(node:3276) UnhandledPromiseRejectionWarning: CastError: Cast to ObjectId failed for value “{ course: ‘5fcf5e45b2d1990bccef652c’ }” at path “_id” for model “Episode”
at model.Query.exec (E:\web\node\learn web\pro\node_modules\mongoose\lib\query.js:4380:21)
at model.Query.Query.then (E:\web\node\learn web\pro\node_modules\mongoose\lib\query.js:4472:15)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:3276) 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: 1)
(node:3276) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.علیمشارکت کنندهاین ارور شما مربوط میشه به database و model آیا آی دی course و property مورد نظر رو برای ایجاد یک episode به درستی ارسال می کنید؟
mhdyakhlaqy865مشارکت کننده(node:3276) UnhandledPromiseRejectionWarning: CastError: Cast to ObjectId failed for value “{ course: ‘5fcf5e45b2d1990bccef652c’ }” at path “_id” for model “Episode”
at model.Query.exec (E:\web\node\learn web\pro\node_modules\mongoose\lib\query.js:4380:21)
at model.Query.Query.then (E:\web\node\learn web\pro\node_modules\mongoose\lib\query.js:4472:15)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:3276) 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: 1)
(node:3276) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
تایم اضافه نمیشود -
نویسندهنوشتهها