Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Cube18929308yThere's probably no res.body.category.categories in the data you requested.
BTW May I introduce you to StackOverflow? -
@Cube189 Yes, I just saw that Line and Deleted and the error still exist. I've tried Stackoverflow People over there are Rude. Thanks Anyways
-
Cube18929308y@Rishabh112 What about product.category = category._id? Check what is sent as category.
-
@Cube189 That line is correct and The error is now gone but there is different Error "ValidationError: Product validatoon failed". Any idea why?
-
Cube18929308yThere's probably something wrong with the Product object you send to add-product. Wrong type of property or too many, or too little. It's either Mongoose that gives the error or add-product.
-
@Cube189 Yes, I fixed it I think Image url was too long or Product Name. Can you tell me How to increase the Limit and Thank You very Much.
-
@saiprasad "Build an Amazon clone: Nodejs + MongoDB + Stripe Payment" Look it up on Udemy.
Hi! I've Been Watching a Tutorial series on How to make Amazon clone by nodejs,mongodb. He used Faker Api to insert Product but I tried to make a seperate Layout to insert product but using Async but it keeps saying "Cannot read Property '_id' of undefined.
undefined
nodejs mongodb ecommerce