Open Maybach91 opened 1 year ago
What is expected: Showing reviews on the product detail page.
What is happening: Reviews are not loading and the state stays in loading state. POST http://localhost:3000/products/undefined 405 (Method Not Allowed) for this line
loading
POST http://localhost:3000/products/undefined 405 (Method Not Allowed)
Error:
{ "response": { "error": "<!DOCTYPE html><html><head><style data-next-hide-fouc=\"true\">body{display:none}</style><noscript data-next-hide-fouc=\"true\"><style>body{display:block}</style></noscript><meta charSet=\"utf-8\"/><meta name=\"viewport\" content=\"width=device-width\"/><meta name=\"next-head-count\" content=\"2\"/><noscript data-n-css=\"\"></noscript><script defer=\"\" nomodule=\"\" src=\"/_next/static/chunks/polyfills.js?ts=1673185998746\"></script><script src=\"/_next/static/chunks/webpack.js?ts=1673185998746\" defer=\"\"></script><script src=\"/_next/static/chunks/main.js?ts=1673185998746\" defer=\"\"></script><script src=\"/_next/static/chunks/pages/_app.js?ts=1673185998746\" defer=\"\"></script><script src=\"/_next/static/chunks/pages/_error.js?ts=1673185998746\" defer=\"\"></script><script src=\"/_next/static/development/_buildManifest.js?ts=1673185998746\" defer=\"\"></script><script src=\"/_next/static/development/_ssgManifest.js?ts=1673185998746\" defer=\"\"></script><noscript id=\"__next_css__DO_NOT_USE__\"></noscript></head><body><div id=\"__next\"></div><script src=\"/_next/static/chunks/react-refresh.js?ts=1673185998746\"></script><script id=\"__NEXT_DATA__\" type=\"application/json\">{\"props\":{\"pageProps\":{\"statusCode\":405}},\"page\":\"/_error\",\"query\":{},\"buildId\":\"development\",\"isFallback\":false,\"gip\":true,\"locales\":[\"en\",\"de\"],\"scriptLoader\":[]}</script></body></html>", "status": 405 }, "request": { "query": "\n query ProductReviewsQuery($productId: ID!) {\n reviews: reviewsConnection(where: { product: { id: $productId } }) {\n aggregate {\n count\n }\n edges {\n node {\n id\n content\n createdAt\n email\n headline\n name\n rating\n }\n }\n }\n }\n", "variables": { "productId": "ckdu4ch1s0h1s01580ksoy6m5" } } }
Link: https://commerce.withheadlesscms.com/products/backpack?variant=ckl0sl000jkhn0902qsz16r4z
Images:
@notrab @ynnoj @jpedroschmitz maybe you can help?
What is expected: Showing reviews on the product detail page.
What is happening: Reviews are not loading and the state stays in
loading
state.POST http://localhost:3000/products/undefined 405 (Method Not Allowed)
for this lineError:
Link: https://commerce.withheadlesscms.com/products/backpack?variant=ckl0sl000jkhn0902qsz16r4z
Images:
@notrab @ynnoj @jpedroschmitz maybe you can help?