503 when using image optimization
See original GitHub issueHi there,
Is your feature request related to a problem? Please describe.
Still, we check @sls-next/serverless-component@1.19.0-alpha.16
and for now we get 503 on images when we provide an url for an image for a specific listed domain. We get the same result for images located under /public
We setup next.config.js
with the following:
images: {
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
domains: ["stream.domain.com"],
path: '/_next/image',
loader: 'default',
}
For:
<Image
src={`https://stream.domain.com/public/image.jpg`}
width={300}
height={300}
alt="my image"
layout={`responsive`}
priority={true}
loading="eager"
/>
On s3 we see yet no file under _next/images
Describe the solution you’d like
That is create the optimized images in s3 under _next/images
Additional
- node version: v14.7.0
- @sls-next/serverless-component@1.19.0-alpha.16
- https://github.com/serverless-nextjs/serverless-next.js/pull/829
- https://github.com/serverless-nextjs/serverless-next.js/issues/725
We also found this in cloudwatch logs.
A.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:17
Top Results From Across the Web
WebP returns 503 error periodically - WordPress.org
A 503 error means the server is overloaded and cannot accept any more connections. Usually you can just fix that by increasing the...
Read more >What is 503 error and how to fix it - Hostinger Help Center
Error 503 (Service Temporarily Unavailable) usually means that you've outgrown your current plan and the resource limits provided to your plan have been...
Read more >Error 503: service unavailable on image displaying in HTML
Definitely try resizing your images. Even if it doesn't fix your issue, it will assist in the loading ...
Read more >503 Service Unavailable - HTTP - MDN Web Docs
The HyperText Transfer Protocol (HTTP) 503 Service Unavailable server error response code indicates that the server is not ready to handle ...
Read more >[Smush Pro] 503 error CDN serving - WPMU Dev
Can someone help? My product page images seem very low quality. Moreover, when a page is loaded, it is loading part by part...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dphang 👍 🥇
It should be fixed now in
@sls-next/serverless-component@1.19.0-alpha.19
after also include https://github.com/serverless-nextjs/serverless-next.js/commit/7256ab9bbd090dc1503dfebf5c93fb0b3cb452bd. Will try to optimize/bundle this better in the future, but it should be workable for now. Let me know if there are other issues.