Skip to content

Reviews are not loading #38

Description

@Maybach91

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions