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.

Using webpack 5 causes 503

See original GitHub issue

Using webpack 5, returns the following from Cloudfront:

503 ERROR
The request could not be satisfied.
The Lambda function associated with the CloudFront distribution is invalid or doesn't have the required permissions. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.

Using versions:

@sls-next/serverless-component@1.19.0-alpha.43
"next": "^10.1.3",

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:18

github_iconTop GitHub Comments

7reactions
talaikiscommented, May 28, 2021

Same for 10.2.3

4reactions
alecpirillocommented, May 21, 2021

+1, happened after upgarde of next.js from 10.2.0 to 10.2.1, using webpack 5. Downgrading next.js solves the issue.

"@sls-next/serverless-component": "1.19.0"

Same issue with 10.2.2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How I solved and debugged my Webpack issue through trial ...
When webpack bundles your source code, it can become difficult to track down errors and warnings to their original location.
Read more >
503 Service Unavailable - HTTP - MDN Web Docs
Common causes are a server that is down for maintenance or that is overloaded. This response should be used for temporary conditions and...
Read more >
node.js - 503 Service Unavailable. The server is temporarily ...
I have a project using next.js and I try to deploy it on cpanel. I've created web application in node.js and installed npm....
Read more >
What is HTTP error 503 and how do you fix it? - IT PRO
Essentially, the 503 error is your first warning that something is preventing the browser from accessing the website server. This is where said...
Read more >
What is a 503 Service Unavailable Error - Linuxize
The HTTP status code 503 is a generic error response returned when the server cannot handle the request. There are many reasons why...
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