const getProducts = async ()=>{
try {
const res = await axios.get("http://localhost:5000/api/products")
console.log(res)
} catch (error) {
console.log(error)
}
}
this is my code in console its showing "AxiosError code: "ERR_NETWORK" " etc....