You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.
I want to create a production build. Backend and Storefront build process run without errors. Deployment via docker. I can see the landingpage, add products to the cart etc. - almost everything seems to work fine so far. However, for some of the products I cannot view the product detail page: "An unexpected error has occurred."
It seems like next does not build the static page content successfully. The problematic request, for example in my case for the seaman beer, goes to https://my-domain/_next/data/WsXrOHPdIWvUjVMk__MLx/product/seaman-beer.json.
The response should be pure json. I compared the corresponding request when viewing other products (for example https://my-domain/_next/data/WsXrOHPdIWvUjVMk__MLx/product/nebula-night-sky-paint.json) and it just contains the data loaded during the build process in pure json. The problematic requests however don't just return the json code, but they wrap it in a <script> tag in some HTML code:
Furthermore, the structure of the contained json is different. It does not contain product information about the seaman beer but instead general information about the shop, like all categories, all products, shop description etc.
EDIT:
I just found that the page tree in the build logs that is generated when generating static pages contain all working products but none of the not-working product:
EDIT 2:
I furthermore found that this applies only to articles that are not marked as "Show in Product Listings".
Steps to reproduce the problem
Deploy the latest 3.0 Version of the backend and the storefront via docker (build with github actions, deploy to sloppy.io), load demo data, click through some products.
The Dockerfile is almost identical to the original one, except that nginx is configured to listen on port 8080 which is then mapped to port 80 in the hosting setup, and the nginx server_name has been adjusted.
What I expected to happen
I want to see the product detail page.
System information
Browser and OS should not matter here, as in a local setup everything works fine.
The production-like test setup runs on sloppy.io (docker hosting).
The text was updated successfully, but these errors were encountered:
tmechsner
changed the title
Next data json sometimes malformed
Next data json malformed for non-listed items
Aug 20, 2021
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What I'm trying to achieve
I want to create a production build. Backend and Storefront build process run without errors. Deployment via docker. I can see the landingpage, add products to the cart etc. - almost everything seems to work fine so far. However, for some of the products I cannot view the product detail page: "An unexpected error has occurred."
It seems like next does not build the static page content successfully. The problematic request, for example in my case for the seaman beer, goes to
https://my-domain/_next/data/WsXrOHPdIWvUjVMk__MLx/product/seaman-beer.json
.The response should be pure json. I compared the corresponding request when viewing other products (for example
https://my-domain/_next/data/WsXrOHPdIWvUjVMk__MLx/product/nebula-night-sky-paint.json
) and it just contains the data loaded during the build process in pure json. The problematic requests however don't just return the json code, but they wrap it in a <script> tag in some HTML code:Furthermore, the structure of the contained json is different. It does not contain product information about the seaman beer but instead general information about the shop, like all categories, all products, shop description etc.
EDIT:
I just found that the page tree in the build logs that is generated when generating static pages contain all working products but none of the not-working product:
EDIT 2:
I furthermore found that this applies only to articles that are not marked as "Show in Product Listings".
Steps to reproduce the problem
Deploy the latest 3.0 Version of the backend and the storefront via docker (build with github actions, deploy to sloppy.io), load demo data, click through some products.
The Dockerfile is almost identical to the original one, except that nginx is configured to listen on port 8080 which is then mapped to port 80 in the hosting setup, and the nginx server_name has been adjusted.
What I expected to happen
I want to see the product detail page.
System information
Browser and OS should not matter here, as in a local setup everything works fine.
The production-like test setup runs on sloppy.io (docker hosting).
The text was updated successfully, but these errors were encountered: