Комментарии:
I don't know why but the 'get timeline post' api is not working. I have completed the frontend a too. But now i am stuck in fetching the timeline posts.
ОтветитьGreat Video. Just done with the backend part. Obviously you will face errors but remember one thing those errors will make you learn most of the things.
ОтветитьI followed this project, and was going pretty good until the last query where it is for the timeline, but I am not sure why is not working, like I literally have everything the same and it does not work, on postman always returns an empty array and I am not sure why that is happening, I do not if I am the only one on that, I would like to know if someone had the same problem as me :)
ОтветитьTeşekkürler harika bir api dersiydi.
Ответитьwhy are you not explaining all the steps taken
Ответитьunable to see the profile or coverprofile in my cluster or response, can someone help me with this
ОтветитьYou helped me a lot. Lafe saver...
ОтветитьI followed what you did for getting timeline of user but I am getting 500 Internal server error
// get timeline of post
router.get("/timeline/all", async (req, res)=>{
let postArray = [];
try{
const currentUser = await User.findById(req.body.userId);
const userPosts = await Post.findById({userId: currentUser._id});
const friendPosts = await Promise.all(
currentUser.followings.map((friendId)=>{
return Post.find({userId: friendId});
})
);
res.json(userPosts.concat(...friendPosts));
}catch(err){
console.log(err);
res.status(500).json(err);
}
});
can anyone plz help me to figureout the mistake ?
hey everyone! this tutorial is great I love Lamadev. Did someone had trouble creating more than one post from the same user? once I want to add a second post I receive a 500 err.:(
Ответитьyou are the best .
ОтветитьI enjoed it. This lesson more clarify than about firebase. Thank You!
Ответитьi didnt understand the Nested Asynchronous Fetch code...can any body explain
ОтветитьThanks for your video. I wanted to do similar to your project, but i didn't know from where i need to start. After you watched your video, i know what i need to do exactly. Thanks again.
ОтветитьExtremely good course. I am so lucky to find this. Thank you for your effort!!!!!👍👍👍
ОтветитьThank you! This is awesome
Ответитьin get timeline end point I think posts in the array will be sorted by friends name so each friend posts will be consecutive , if I want to make them random or sorted by publish date I may shuffle the array or sort it based on the created date is that a good solution in case of performance
ОтветитьI had this error but now i have solved it
"MongoAPIError: URI must include hostname, domain name, and tld"
This error was coming because of "@" in password, use ASCII code for @ then your problem will be solved.
If you have used any other special character in password then replace it with its ASCII code.
For "@" it is "%40"
If I change that into mongourl my app crashes😢😢
ОтветитьI have issues in (mongoose.connect) 07.30 plsn tell me
ОтветитьThanks for sharing! This is amazing!
ОтветитьGreat effort
ОтветитьWell Done!❤❤
Ответитьno matter what i do i keep getting internal server error (500) on timeline posts only .......... i have added the user model and also tried making a new cluster
ОтветитьI am excited from learning this video Thank you!!!!
Ответитьsir, u are too much amazing with ur frontend and backend skill even low iq person like me can understand everything. Please keep up this novel work going and i will always pray for ur better life. i am student so i cannot do much more than that.
Ответитьconst err = new mongooseerror(message); ^ mongooseerror: operation `users.insertone()` buffering timed out after 10000ms at timeout My god, this problem is occurred how to solve this problem.please everyone help me
Ответить[nodemon] app crashed - waiting for file changes before starting... my code,this problem is occurred how to solve this problem please lama
ОтветитьCan someone help with what are prerequisites for this backend part? I have completed the front end for this project with react.
ОтветитьMongooseError: Mongoose.prototype.connect() no longer accepts a callback
ОтветитьHi I am not able to get the timeline, I am getting blank in postman
ОтветитьHi All,
Anyone of you came across this error? I have been trying to fix this for awhile. Can anyone please help me fix this below error.
MongooseError: Operation 'users.insertone()' buffering timed out after 1000ms
I think you should put part 1 or part 2 in each video to make a video list
ОтветитьIts a very good tutorial. However, I have one confusion. I have been learning react for the last few months. And I am not getting why do we have to create so many action in the backend for likes, dislikes, post and so on. Can't we do it react in the client-side. I know its better to do these stuffs in back-end. But if it is not good to do in client-side, then what is the use of useState, useHooks and other powerful library in react. I am just keen what might be the reason except security concerns. Any help regarding this would be appreciated.
ОтветитьMern Hero 🔥🔥
Ответитьwho is getting this error SyntaxError: Unexpected token " in JSON at position 0
Ответитьdo your next set of projects with typescript
ОтветитьHow to find the port no. Please help me
ОтветитьAnyone who is getting 500 internal server error for all requests or any type of mongoose error, try deleting the cluster in Mongodb and creating another one and using that cluster's link in env file. I was stuck for hours, but eventually found about this.
ОтветитьThank you very much! Done with the pleasure!
ОтветитьLama Dev, you're THE GOAT!!!
Ответить