In this post, we will see how to resolve code : “ERR_BAD_REQUEST” Axios error: Request failed with status code 404
Question:I’m building an ecommerce website with React and Strapi. When I try to get the products and categories from Strapi this error pops up:
Best Answer:Something in your URL is undefined, look at the request :
You should console.log your url to fix it.
If you have better answer, please add a comment about this, thank you!