-
-
Notifications
You must be signed in to change notification settings - Fork 455
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
503 Errors - The request could not be satisfied #222
Comments
Hi @ytwguru Actually, I have the same problem. I don't know how to solve it, can you explain why you closed this issue? |
@ytwguru What have you found in your CloudWatch logs? I'm keen on getting to the bottom of any 503 errors. |
@danielcondemarin My intermittent errors are with the graphql server.
Seems like some configuration of with next and apollo. |
@danielcondemarin hi, I would like to resurrect this issue because I'm getting the exact same error: Though I couldn't really track the Request ID, I guess it's caused by this error in my case: {
"errorType": "Error",
"errorMessage": "Cannot find module './pages/article/[...slug].js'",
"code": "MODULE_NOT_FOUND",
"stack": [
"Error: Cannot find module './pages/article/[...slug].js'",
" at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)",
" at Function.Module._load (internal/modules/cjs/loader.js:562:25)",
" at Module.require (internal/modules/cjs/loader.js:692:17)",
" at require (internal/modules/cjs/helpers.js:25:18)",
" at /var/task/index.js:59:18",
" at Generator.next (<anonymous>)",
" at /var/task/index.js:8:71",
" at new Promise (<anonymous>)",
" at __awaiter (/var/task/index.js:4:12)",
" at Runtime.exports.handler (/var/task/index.js:36:30)"
]
} and a screenshot of the logs might be more meaningful: The thighs I observed are:
The project that I'm working on is closed-source so I cannot share a sample code. But I can give you some info:
serverless.yml: nextApp:
component: "serverless-next.js" next.config.js: module.exports = {
target: 'serverless',
} and I deploy it by just running |
@mertyildiran Try version @1.11.1 (not the alpha) which includes a fix for catch all routes. That should fix the error you're seeing. |
@danielcondemarin |
I'm encountering this issue with |
@afenton90 Can you try using the latest alpha please https://github.com/serverless-nextjs/serverless-next.js/releases/tag/%40sls-next%2Fserverless-component%401.18.0-alpha.27 ? We're about to promote that alpha to stable soon. |
Just got same 503 error with |
Also experiencing the same issue when trying to request an API route with Apollo. All my other api's work in production, but it's just this one that's coming back with the same error. My version of the sls-next/serverless component is also 1.18.0, but I'll try the latest alpha release. |
I just encountered the same problem with Error log:
|
@a-game That is due to newer Next.js versions changing their code-splitting, it should be fixed in the latest alpha version (note for future issues please first try to use the latest alpha as it might fix the bug you are encountering) Also it is recommended to not comment on closed issues (unless its related and was not resolved) as it's hard for people to track except those already subscribed to that issue (And maintainers only get a single email) |
Same error here |
I was facing this same issue, the error was happening because I have turned off the database in RDS. The backend service is unable to connect to the database. Once the database is turned on, the app started working properly. |
Describe the bug
We get irregular 503 errors for dynamic and static pages.
Updated
These seem to happen when the lambda requires more than 10 seconds to run
Expected behavior
After reloading the page, we see
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.
Generated by cloudfront (CloudFront)
The text was updated successfully, but these errors were encountered: