-
Notifications
You must be signed in to change notification settings - Fork 116
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
Next.JS: some external images fail to load with 500 #3194
Comments
Hi @JanStevens, have you attempted these troubleshooting steps from the official Next.js documentation? https://nextjs.org/docs/messages/sharp-missing-in-production |
Yes, I've installed the sharp dependency manually, I do want to point out that according to Amplify docs you don't have to do that, see: https://docs.aws.amazon.com/amplify/latest/userguide/ssr-Amplify-support.html But it's clear that this is not happening at all, hence the issue |
Hi @JanStevens 👋 , apologies for the delayed response here. Are you still running into this issue? Can you confirm if your app is using images > 4.3MB in size? We have updated our docs to reflect the maximum output size of the image we support with the Amplify Hosting Compute platform: https://docs.aws.amazon.com/amplify/latest/userguide/ssr-Amplify-support.html#image-optimization
|
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
Hi, I do see the docs are updated, but I want to point out we are still having the issue where We will try the good old: did you try turning it off and on again (trash project in amplify, add it again) |
@Jay2113 I've just tried again and same issue. In cloud watch I see
And I notice that none of my images are being processed, ex: the banner is a full 3,7MB image 😞 |
Any luck with this issue? I seem to be having the same problem. Even after adding Sharp to my project and redeploying to Amplify, my images don't show up. |
update (2023/04/20): Also have similar problem, the project is hosted on aws amplify. |
It looks like downgrading the version of Nextjs fixed my issue as well. I changed my package.json from "next": "latest" (which was running 13.3.0) to "next": "~13.2.4" and now the Image optimization appears to be working on AWS Amplify. |
Trying to load aws-s3 images with next/image in version 13.4.7. Facing this same problem. Some images are not loading sometimes. Don't want to downgrade. |
Getting this issue still, tried next latest and v13.3, getting 500 response codes on Amplify with next/image component... Going to try downgrade as suggested, anything being done to address this issue? Thanks |
AWS-amplify not maintained again? this product has dead? |
I updated my next version to next release and issue was fixed.
|
has fixed with next rc version ? |
What is the version number that is working for you now? |
Going up to 13.4.6 from 13.3.0 made it work. |
Sorry, wasn't the very NEXT release as I stated previously. |
For me the problem seemed to be with the 'sharp' package, once removed it was fixed. |
I'm using NEXT version |
Do you have to try @S4Mi mention? remove |
Hi everyone 👋 , towards the end of last year (Nov '23) we launched support for image optimization for all SSR apps and the issue outlined in this thread should no longer occur with it. To learn more about Amplify Hosting's built-in image optimization feature, refer to this documentation: https://docs.aws.amazon.com/amplify/latest/userguide/image-optimization.html. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
This issue has been automatically locked. |
Before opening, please confirm:
App Id
dajig6o8wd38u
AWS Region
eu-west-1
Amplify Hosting feature
Not Applicable
Describe the bug
Some images fail to be optimized by next/image. For example the following image gives a 500 error:
https://develop.dajig6o8wd38u.amplifyapp.com/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F61856%2F1663872821-mdlbeast_soundstorm_28.png&w=1080&q=75
In the cloudwatch logs we can observe
Expected behavior
The image should correctly be optimised
Reproduction steps
Build Settings
No response
Log output
Additional information
It seems that this is only the case for really large images, the example image is for example 49mb
The text was updated successfully, but these errors were encountered: