question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

503 when using image optimization

See original GitHub issue

Hi 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

We also found this in cloudwatch logs.

Capture d’écran 2020-12-08 à 14 05 09

A.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:17

github_iconTop GitHub Comments

3reactions
arelaxendcommented, Dec 9, 2020

It should be fixed now in@sls-next/serverless-component@1.19.0-alpha.19 after also include 7256ab9. 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.

@dphang 👍 🥇

3reactions
dphangcommented, Dec 8, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found