I'm stuck on this one. When I try to go to a category page, I expect to see a list of products from that category. Instead I get the following error showing on the screen instead: "500 Unsuccessful response (422: ) received
undefined"
Any help would be appreciated.
Hi ! I had the same problem the tutorial is not up to date now we pass an array of slug and no longer a single slug here :
//behind const { data: products } = await commerce.products.list({ category_slug: slug, }); //after const { data: products } = await commerce.products.list({ category_slug: [slug], });
Thanks for the update @matthieugll
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'm stuck on this one. When I try to go to a category page, I expect to see a list of products from that category. Instead I get the following error showing on the screen instead: "500
Unsuccessful response (422: ) received
undefined"
Any help would be appreciated.
Hi ! I had the same problem the tutorial is not up to date now we pass an array of slug and no longer a single slug here :
Thanks for the update @matthieugll