Open HetMamtora opened 1 year ago
You are using the wrong controller, use getProduct controller rather than getProductDetails.
You are using the wrong controller, use getProduct controller rather than getProductDetails.
Solved, Thank You for your response.
I have the same postman error Success:false Message: cannot read the properties of undefined reading keyword
I have the same postman error Success:false Message: cannot read the properties of undefined reading keyword
Share your code. In which file you are getting error.
Now mongodb is not working Can i get your contact number?
On Sat, Apr 15, 2023, 10:57 AM HetMamtora @.***> wrote:
I have the same postman error Success:false Message: cannot read the properties of undefined reading keyword
Share your code. In which file you are getting error.
β Reply to this email directly, view it on GitHub https://github.com/meabhisingh/mernProjectEcommerce/issues/48#issuecomment-1509523350, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASIKEBNFSU4GR5257GSM64TXBIWVNANCNFSM6AAAAAAVYSLDDU . You are receiving this because you commented.Message ID: @.***>
Sorry brother, can't share my contact no. Change in your config file If you are using localhost link as http://localhost:"portnumber"
Change it to http:// 0.0.0.0:"portnumber"
If this doesn't work i would suggest you to refer docs of express and mongoDb
Before some time it was working but now , neither postman is working nor mongodb π₯²
On Sat, Apr 15, 2023, 11:24 AM HetMamtora @.***> wrote:
Sorry brother, can't share my contact no. Change in your config file If you are using localhost link as http://localhost:"portnumber"
Change it to http:// 0.0.0.0:"portnumber"
If this doesn't work i would suggest you to refer docs of express and mongoDb
β Reply to this email directly, view it on GitHub https://github.com/meabhisingh/mernProjectEcommerce/issues/48#issuecomment-1509549794, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASIKEBOVADMRNSF3BCLF55LXBIZ2TANCNFSM6AAAAAAVYSLDDU . You are receiving this because you commented.Message ID: @.***>
Before some time it was working but now , neither postman is working nor mongodb π₯² β¦ On Sat, Apr 15, 2023, 11:24 AM HetMamtora @.> wrote: Sorry brother, can't share my contact no. Change in your config file If you are using localhost link as http://localhost:"portnumber" Change it to http:// 0.0.0.0:"portnumber" If this doesn't work i would suggest you to refer docs of express and mongoDb β Reply to this email directly, view it on GitHub <#48 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASIKEBOVADMRNSF3BCLF55LXBIZ2TANCNFSM6AAAAAAVYSLDDU . You are receiving this because you commented.Message ID: @.>
Try the method that I suggested. If it doesn't work.
More I can suggest is begin from scratch for that particular code snippet.
It is showing this only
On Sat, Apr 15, 2023, 11:32 AM HetMamtora @.***> wrote:
Before some time it was working but now , neither postman is working nor mongodb π₯² β¦ <#m6613579211547683256> On Sat, Apr 15, 2023, 11:24 AM HetMamtora @.> wrote: Sorry brother, can't share my contact no. Change in your config file If you are using localhost link as http://localhost:"portnumber http://localhost:%22portnumber" Change it to http:// 0.0.0.0 http://0.0.0.0:"portnumber" If this doesn't work i would suggest you to refer docs of express and mongoDb β Reply to this email directly, view it on GitHub <#48 (comment) https://github.com/meabhisingh/mernProjectEcommerce/issues/48#issuecomment-1509549794>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASIKEBOVADMRNSF3BCLF55LXBIZ2TANCNFSM6AAAAAAVYSLDDU https://github.com/notifications/unsubscribe-auth/ASIKEBOVADMRNSF3BCLF55LXBIZ2TANCNFSM6AAAAAAVYSLDDU . You are receiving this because you commented.Message ID: @.>
Try the method that I suggested. If it doesn't work.
More I can suggest is begin from scratch for that particular code snippet.
β Reply to this email directly, view it on GitHub https://github.com/meabhisingh/mernProjectEcommerce/issues/48#issuecomment-1509554673, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASIKEBLL32KAKB5GN6E4JVDXBI2YJANCNFSM6AAAAAAVYSLDDU . You are receiving this because you commented.Message ID: @.***>
?
On Sat, Apr 15, 2023, 11:42 AM sheikh umar @.***> wrote:
It is showing this only
On Sat, Apr 15, 2023, 11:32 AM HetMamtora @.***> wrote:
Before some time it was working but now , neither postman is working nor mongodb π₯² β¦ <#m_5329040672286795945_m6613579211547683256> On Sat, Apr 15, 2023, 11:24 AM HetMamtora @.> wrote: Sorry brother, can't share my contact no. Change in your config file If you are using localhost link as http://localhost:"portnumber http://localhost:%22portnumber" Change it to http:// 0.0.0.0 http://0.0.0.0:"portnumber" If this doesn't work i would suggest you to refer docs of express and mongoDb β Reply to this email directly, view it on GitHub <#48 (comment) https://github.com/meabhisingh/mernProjectEcommerce/issues/48#issuecomment-1509549794>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASIKEBOVADMRNSF3BCLF55LXBIZ2TANCNFSM6AAAAAAVYSLDDU https://github.com/notifications/unsubscribe-auth/ASIKEBOVADMRNSF3BCLF55LXBIZ2TANCNFSM6AAAAAAVYSLDDU . You are receiving this because you commented.Message ID: @.>
Try the method that I suggested. If it doesn't work.
More I can suggest is begin from scratch for that particular code snippet.
β Reply to this email directly, view it on GitHub https://github.com/meabhisingh/mernProjectEcommerce/issues/48#issuecomment-1509554673, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASIKEBLL32KAKB5GN6E4JVDXBI2YJANCNFSM6AAAAAAVYSLDDU . You are receiving this because you commented.Message ID: @.***>
Actually I end task of mongodb in task manager from then it is not connecting to mongodb
On Sat, Apr 15, 2023, 11:57 AM sheikh umar @.***> wrote:
?
On Sat, Apr 15, 2023, 11:42 AM sheikh umar @.***> wrote:
It is showing this only
On Sat, Apr 15, 2023, 11:32 AM HetMamtora @.***> wrote:
Before some time it was working but now , neither postman is working nor mongodb π₯² β¦ <#m_-8400313493578459407_m_5329040672286795945_m6613579211547683256> On Sat, Apr 15, 2023, 11:24 AM HetMamtora @.> wrote: Sorry brother, can't share my contact no. Change in your config file If you are using localhost link as http://localhost:"portnumber http://localhost:%22portnumber" Change it to http:// 0.0.0.0 http://0.0.0.0:"portnumber" If this doesn't work i would suggest you to refer docs of express and mongoDb β Reply to this email directly, view it on GitHub <#48 (comment) https://github.com/meabhisingh/mernProjectEcommerce/issues/48#issuecomment-1509549794>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASIKEBOVADMRNSF3BCLF55LXBIZ2TANCNFSM6AAAAAAVYSLDDU https://github.com/notifications/unsubscribe-auth/ASIKEBOVADMRNSF3BCLF55LXBIZ2TANCNFSM6AAAAAAVYSLDDU . You are receiving this because you commented.Message ID: @.>
Try the method that I suggested. If it doesn't work.
More I can suggest is begin from scratch for that particular code snippet.
β Reply to this email directly, view it on GitHub https://github.com/meabhisingh/mernProjectEcommerce/issues/48#issuecomment-1509554673, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASIKEBLL32KAKB5GN6E4JVDXBI2YJANCNFSM6AAAAAAVYSLDDU . You are receiving this because you commented.Message ID: @.***>
utils/apifeature.js
class ApiFeatures { constructor(query, queryStr) { this.query = query; this.queryStr = queryStr; } search() { const keyword = this.queryStr.keyword ? { name: { $regex: this.queryStr.keyword, $options: "i", }, } : {};
} module.exports = ApiFeatures;
controllers/productController.js
//GET PRODUCT DETAILS `exports.getProductDetails = catchAsyncErrors(async(req,res,next)=>{
})`
Help me over this error. I'm using the same code from GitHub files but postman is returning Success: False with error as Query cannot read properties.