DEV Community

Discussion on: Anbody working with MERN? I have error.

 
ivkemilioner profile image
ivkeMilioner

I removed IP restriction

Thread Thread
 
dawnind profile image
Mainak Das

I checked the logs, the thing you were doing was not connecting the DB to the running server. As a result DB is running its own and server in its own. Second thing you need to add CORS to enable API access from other domains.

Tried to push the updated code, but blocked.

Thread Thread
 
ivkemilioner profile image
ivkeMilioner

Thank you to heaven for spanindg your time on me. Thank you to heaven for wasting your time on me. Can you email me an update?

Thread Thread
 
dawnind profile image
Mainak Das • Edited

No worries man ;) debugging is always good
Also I checked your DB, there are two tables food and foods. The Food.find({}) is accessing the food table. You may have to check that to get the required values from the correct table i.e foods.

Can you ping me at mainakdas104@gmail.com 😊

Thread Thread
 
ivkemilioner profile image
ivkeMilioner

I sended invite

 
ivkemilioner profile image
ivkeMilioner