Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reviews are not loading #38

Open
Maybach91 opened this issue Jan 8, 2023 · 0 comments
Open

Reviews are not loading #38

Maybach91 opened this issue Jan 8, 2023 · 0 comments

Comments

@Maybach91
Copy link

Maybach91 commented Jan 8, 2023

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

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:
image
image

@notrab @ynnoj @jpedroschmitz maybe you can help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant