-
Notifications
You must be signed in to change notification settings - Fork 685
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
[bug]: No category & product images displayed (404) #1570
Comments
@kweij we recently merged a big change to the structure of the repo. Can you try cleaning and reinstalling?
|
I'm having the same issue with a fresh install of both PWA studio and M2 backend. Weirdly enough, some images work fine while the majority are not displaying. I can say that all the images I use in the backend are *.jpg |
@sirugh, running the proposed commands (incl.
The |
@kweij Hmm ok what if you drop the |
@sirugh Dropping But to see where the problem resides: is the URL to the image I mentioned above correct (comparable to your local environment)? Because if the URL isn't correct I should look into the URL generation, else I should look into the handler of that URL (a service-worker?). Maybe relevant is that I run my backend on a docker container, using Docksal, but that doesn't seem to influence the GraphQL connection. |
@Banhawy are you also using docker? |
@kweij compare your findings to the deployed version at veniapwa.com |
@sirugh No, I am using normal local environment also on MacOS. |
Thanks! That's definitely a different URL to the image:
So something's off at the generation of the URL to the image. |
It's working in the current |
No its not working. |
Describe the bug
Images of categories & products are not shown on the frontend -- instead the request returns a 404. Following that image-url yields a 404 with the body-text:
Error: ENOENT: no such file or directory, stat '/Users/kweij/Sites/m23pwa/venia/packages/venia-concept/dist/media/catalog/product/cache/71287b63bb7e25fa4a2739e268ab5a2f/v/a/va04-ll_main_2.jpg'
To Reproduce
I have a local Magento 2.3.2 instance running, loaded with the Venia sample-data, running locally at "http://m23pwa.docksal" (mapped to the /pub in the docksal vhost configuration). The storefront is configured to use this endpoint as
MAGENTO_BACKEND_URL
. Categories and products are displayed, just not the image.Steps to reproduce the behavior:
Expected behavior
Images being displayed.
Screenshots
Additional context
I'm a dedicated M2 frontend developer, but very new to the whole PWA-studio/Venia/UPWARD/React/... stack, so please pardon my slow learning curve.
The images have a relative URL (starting with /media/catalog/..) and if I prepend it with the
MAGENTO_BACKEND_URL
it points correctly to the (unscaled) image. It seems that the service-worker that handles the URL's to the /media/catalog images it not running/fetching the data correctly -- but this statement come from a n00b in the area of service-workers, so .. you know.Possible solutions
Add any ideas about possible solutions to the problem here.
Please complete the following device information:
npm -v
: 6.10.3node -v
: v10.15.2Please let us know what packages this bug is in regards to:
venia-concept
venia-ui
pwa-buildpack
peregrine
pwa-devdocs
upward-js
upward-spec
* I'm not sure where the problem resides, might also be on this very chair
The text was updated successfully, but these errors were encountered: