MuhammedAlaa
MuhammedAlaa
Explore posts from servers
KPCKevin Powell - Community
Created by MuhammedAlaa on 8/26/2023 in #back-end
Issue with throwing error
asyncHandler catches the error automatically i think because of this it doesn't log
51 replies
KPCKevin Powell - Community
Created by MuhammedAlaa on 8/26/2023 in #back-end
Issue with throwing error
https://www.npmjs.com/package/express-async-handler i think because it take a look here
51 replies
KPCKevin Powell - Community
Created by MuhammedAlaa on 8/26/2023 in #back-end
Issue with throwing error
ok maybe because asynchandler of express resolve the await directly and throw the error ?
51 replies
KPCKevin Powell - Community
Created by MuhammedAlaa on 8/26/2023 in #back-end
Issue with throwing error
hmm, but the log was before even checking if there is book or not
51 replies
KPCKevin Powell - Community
Created by MuhammedAlaa on 8/26/2023 in #back-end
Issue with throwing error
ok i got u but still can't know why it doesn't log book when its not found ?
51 replies
KPCKevin Powell - Community
Created by MuhammedAlaa on 8/26/2023 in #back-end
Issue with throwing error
yep, any ways thanks for your time ❤️
51 replies
KPCKevin Powell - Community
Created by MuhammedAlaa on 8/26/2023 in #back-end
Issue with throwing error
yep im just wondering how , i found a tutorial doing what i did exactly and works fine maybe something is new in moongose idk
51 replies
KPCKevin Powell - Community
Created by MuhammedAlaa on 8/26/2023 in #back-end
Issue with throwing error
No description
51 replies
KPCKevin Powell - Community
Created by MuhammedAlaa on 8/26/2023 in #back-end
Issue with throwing error
np appreciate your help i will try to figure it out or look for a tutorial doing the same thing
51 replies
KPCKevin Powell - Community
Created by MuhammedAlaa on 8/26/2023 in #back-end
Issue with throwing error
No description
51 replies
KPCKevin Powell - Community
Created by MuhammedAlaa on 8/26/2023 in #back-end
Issue with throwing error
idk how it goes inside the if and still response with 200
51 replies
KPCKevin Powell - Community
Created by MuhammedAlaa on 8/26/2023 in #back-end
Issue with throwing error
but it goes inside the if because if it didn't then it will not log the res.statusCode
51 replies
KPCKevin Powell - Community
Created by MuhammedAlaa on 8/26/2023 in #back-end
Issue with throwing error
if found => object not found doesn't log anything
51 replies
KPCKevin Powell - Community
Created by MuhammedAlaa on 8/26/2023 in #back-end
Issue with throwing error
No description
51 replies
KPCKevin Powell - Community
Created by MuhammedAlaa on 8/26/2023 in #back-end
Issue with throwing error
same issue i tried to log the result from the findById it doesn't log any thing if not found
51 replies
KPCKevin Powell - Community
Created by MuhammedAlaa on 8/26/2023 in #back-end
Issue with throwing error
yep that what i was going to tell you that it logs out 200 when it goes to the error handler im using mongoose
51 replies
KPCKevin Powell - Community
Created by MuhammedAlaa on 7/10/2023 in #front-end
React state issue
2 replies
KPCKevin Powell - Community
Created by MuhammedAlaa on 7/9/2023 in #front-end
React an vercel
3 replies
KPCKevin Powell - Community
Created by MuhammedAlaa on 7/9/2023 in #front-end
React an vercel
3 replies
KPCKevin Powell - Community
Created by MuhammedAlaa on 7/8/2023 in #front-end
React remove item from cart
7 replies