آموزش جاوااسکریپت انجمن ها Nodejs آپدیت تایم دوره

برچسب ها: 

در حال نمایش 3 نوشته (از کل 3)
  • نویسنده
    نوشته‌ها
  • #51423 پاسخ
    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.

    #51521 پاسخ
    علی
    مشارکت کننده

    این ارور شما مربوط میشه به database و model آیا آی دی course و property مورد نظر رو برای ایجاد یک episode به درستی ارسال می کنید؟

    #51424 پاسخ
    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.
    تایم اضافه نمی‌شود

در حال نمایش 3 نوشته (از کل 3)
پاسخ به: آپدیت تایم دوره
اطلاعات شما: