strapi get request 404, what's the problem?

complete code is here : https://github.com/safak/youtube2022/tree/ecommerce filtering using type property both have this problem.
GET http://localhost:3000/products?populate=*&[filters][type][$eq]=featured 404 (Not Found)
dispatchXhrRequest @ xhr.js:251
xhr @ xhr.js:49
dispatchRequest @ dispatchRequest.js:51
request @ Axios.js:148
Axios.<computed> @ Axios.js:174
wrap @ bind.js:5
fetchData @ useFetch.js:13
(anonymous) @ useFetch.js:20
commitHookEffectListMount @ react-dom.development.js:22969
commitPassiveMountOnFiber @ react-dom.development.js:24702
commitPassiveMountEffects_complete @ react-dom.development.js:24666
commitPassiveMountEffects_begin @ react-dom.development.js:24653
commitPassiveMountEffects @ react-dom.development.js:24641
flushPassiveEffectsImpl @ react-dom.development.js:26848
flushPassiveEffects @ react-dom.development.js:26801
commitRootImpl @ react-dom.development.js:26752
commitRoot @ react-dom.development.js:26517
performSyncWorkOnRoot @ react-dom.development.js:25956
flushSyncCallbacks @ react-dom.development.js:11982
commitRootImpl @ react-dom.development.js:26776
commitRoot @ react-dom.development.js:26517
finishConcurrentRender @ react-dom.development.js:25820
performConcurrentWorkOnRoot @ react-dom.development.js:25648
workLoop @ scheduler.development.js:266
flushWork @ scheduler.development.js:239
performWorkUntilDeadline @ scheduler.development.js:533
GET http://localhost:3000/products?populate=*&[filters][type][$eq]=featured 404 (Not Found)
dispatchXhrRequest @ xhr.js:251
xhr @ xhr.js:49
dispatchRequest @ dispatchRequest.js:51
request @ Axios.js:148
Axios.<computed> @ Axios.js:174
wrap @ bind.js:5
fetchData @ useFetch.js:13
(anonymous) @ useFetch.js:20
commitHookEffectListMount @ react-dom.development.js:22969
commitPassiveMountOnFiber @ react-dom.development.js:24702
commitPassiveMountEffects_complete @ react-dom.development.js:24666
commitPassiveMountEffects_begin @ react-dom.development.js:24653
commitPassiveMountEffects @ react-dom.development.js:24641
flushPassiveEffectsImpl @ react-dom.development.js:26848
flushPassiveEffects @ react-dom.development.js:26801
commitRootImpl @ react-dom.development.js:26752
commitRoot @ react-dom.development.js:26517
performSyncWorkOnRoot @ react-dom.development.js:25956
flushSyncCallbacks @ react-dom.development.js:11982
commitRootImpl @ react-dom.development.js:26776
commitRoot @ react-dom.development.js:26517
finishConcurrentRender @ react-dom.development.js:25820
performConcurrentWorkOnRoot @ react-dom.development.js:25648
workLoop @ scheduler.development.js:266
flushWork @ scheduler.development.js:239
performWorkUntilDeadline @ scheduler.development.js:533
GitHub
GitHub - safak/youtube2022 at ecommerce
Season 2 on Lama Dev. Contribute to safak/youtube2022 development by creating an account on GitHub.
1 Reply
zielgestalt
zielgestalt2y ago
Not sure this is the right url. I'm not familiar with react so much, so maybe you are doing something like hiding the actual api route. But with 'pure' Strapi without any changes the URL for local development would look like this: http://localhost:1337/api/products... Maybe you can test with a tool like postman what the correct API url is and then try to fix the frontend.
Want results from more Discord servers?
Add your server