I have my NextJS frontend hosted in AWS Amplify. After a few seconds, I keep getting a 504 Gateway Timeout Error. My backend API (hosted elsewhere in ECS) is quite slow, so I want to know what the default AWS Amplify request/response timeout is, and how I can increase it. I am NOT looking for build timeout. This is runtime timeout. The documentation seems lacking in explaining this. Thanks.
How to increase aws amplify request/response timeout?
66 views Asked by nb123 At
1
There are 1 answers
Related Questions in AMAZON-WEB-SERVICES
- S3 integration testing
- How to get content of BLOCK types LAYOUT_TITLE, LAYOUT_SECTION_HEADER and LAYOUT_xx in Textract
- Error **net::ERR_CONNECTION_RESET** error while uploading files to AWS S3 using multipart upload and Pre-Signed URL
- Failed to connect to your instance after deploying mern app on aws ec2 instance when i try to access frontend
- AWS - Tab Schema Conversion don't show up after creating a Migration Project
- Unable to run Bash Script using AWS Custom Lambda Runtime
- Using Amazon managed Prometheus to get EC2 metrics data in Grafana
- AWS Dns record A not navigate to elb
- Connection timed out error with smtp.gmail.com
- AWS Cognito Multi-tenant Integration | Ok to use Client’s Idp?
- Elasticbeanstalk FastAPI application is intermittently not responding to https requests
- Call an External API from AWS Lambda
- Why my mail service api spring isnt working?
- export 'AWSIoTProvider' (imported as 'AWSIoTProvider') was not found in '@aws-amplify/pubsub'
- How to take first x seconds of Audio from a wav file read from AWS S3 as binary stream using Python?
Related Questions in NEXT.JS
- Error **net::ERR_CONNECTION_RESET** error while uploading files to AWS S3 using multipart upload and Pre-Signed URL
- Check list of pages with axios
- Calling functions from Main Component while using tanstack table
- NextJS 14 site working in development but not in vercel
- Route Handler not working Next auth, Next Intl & Next 14
- NextJS Docker build fails: fetch failed ECONNREFUSED
- Need some advice on differentiating between subscriptions using Stripe
- Update Sidebar Height to Cover the Document Height (with React Pro Sidebar)
- How do I send an audio file to OpenAi?
- Next.js not updating state during OnClick after router.push to same page with different ID
- Next js delay before applying Emotion and MUI styles
- Next.js. Server actions in form using formik. Action with arguments didnt work
- Protect Server Actions with Next Auth in Next JS 14
- Next-Auth credentials login troubles debugging
- Hydration failed because the initial UI does not match what was rendered on the server: Next js Tanstack table
Related Questions in AWS-AMPLIFY
- Expo Go crashing with on error message using Amplify Graphql to get an item
- How do I set custom attributes on a user who signs up via amplify's Authenticator?
- How to modify the prebuilt UI of authentication in aws amplify version 6 in React Native
- Configuring AWS Amplify in Next.js 14 App Router with no main layout.tsx
- How to use multiple user pools with AWS Amplify in React?
- Convert AWS Amplify's V6 getUrl() output to V5 Storage.get() presigned url string
- Integrating Sign in with Apple into React Native App with AWS Cognito Authentication
- Wondering if AWS Amplify sdk for SSR automatically verifies user identities or JWT?
- Cloud9 IDE can't find aws-amplify module, as per initial steps in the tutorial/walkthrough
- AWS Amplify Tutorial failure - cannot find aws-amplify, despite it being present
- can not import Auth from aws-amplify in Angular even though docs says I can
- Google signin for aws cognito using Amplify not working. | signInWithRedirect in amplify not working in React native
- Restoring a saved AWS Amplify Profile?
- Vue Router and AWS Amplify
- Attempted import error: 'useForm' is not exported from 'react-hook-form' (imported as 'useForm'). When using Next + amplify + react query
Related Questions in AWS-AMPLIFY-CLI
- amplify auth google sign in issue
- Restoring a saved AWS Amplify Profile?
- How to increase aws amplify request/response timeout?
- Customhttp.yml headers are not being applied on amplify in CRA
- Amplify cli - "amplify push" does not update backend environment
- Error logging in: [TypeError: Cannot read property 'signIn' of undefined]
- AWS Amplify hosting for NextJS SSG with command hooks for security check before deployment
- "No properly configured Aurora Serverless clusters found." for use with AWS Amplify
- Where is it specified that some piece of code need to deployed as Lambda Function using "amplify add function"
- What is the minimum permissions needed to enable devs to run AWS Amplify locally?
- How to efficiently make a recursive table in graphql?
- zsh:killed amplify, getting this error even after uninstalling, how to rectify?
- AWS Amplify Domain Management
- Amplify configure V6 is not working with my aws-exports
- Amplify Hosting Env build fails on npm install
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
If you call your back-end directly, like any 3rd party rest API, then you wouldn't be asking about the NextJS/amplify deployment, so I'll assume you're calling your back-end from within
/pages/api.When you do that yourAmplify deploys your /api code as Lambda@Edge. (Note: It may be deployed to a different region. I deploy to Ohio, but the Lambda@Edge is put into N. Virginia.) The Lambda will have a timeout of 30 seconds. You may be able to increase this manually. Lambda@Edge may have a max-timeout of 30 seconds.
Another issues is that the front-end calls the Lambda@Edge function via API Gateway, which has a 29 second timeout that cannot be increased.
If you're getting
504 timeoutor similar at about the 30 second mark, it's likely API GW.How to fix? If your backend is slow, then the front-end API should just "initiate a job" and return quickly, then use a GQL subscription or polling to get the job completion event.