Questions tagged [aws-amplify]

AWS platform designed for efficiently creating robust backends for mobile and web applications with exceptional speed.

"Unable to retrieve user information: No authenticated user found" error occurs when attempting to execute a GraphQL query without proper authentication in

I'm currently working on implementing a graphql mutation through Amplify docs to allow unauthenticated requests access. It seems like this should be achievable based on the documentation. According to the CLI documentation: You can override the authoriz ...

Upon entering the command "amplify", an alert was triggered displaying the following message: "DeprecationWarning: Invalid 'main' field in .....". This warning

Every time I type amplify console in my react-app, I encounter this warning message. >amplify console (node:2500) [DEP0128] DeprecationWarning: Invalid 'main' field in 'C:UsersSAMSUNGAppDataRoaming pm ode_modules@aws-amplifycli ode_mod ...

Amplify build is encountering an issue due to a ReferenceError stating that the license variable is not

I encountered the original error Task never defined: default, which was discussed here: Build failed for AWS Amplify React Site for unknown reason However, I am now facing a new error: 2022-04-10T16:04:21.976Z [WARNING]: ReferenceError: license is not def ...

Encountering a Glitch when Transferring a File to S3 utilizing Federated Identity via aws-amplify in React

When attempting to upload an image with a Facebook federated identity, I encountered an error: AWSS3Provider - error uploading Error: "Request failed with status code 403" Status Code: 403 Forbidden I noticed that the URL in the request, while the user is ...

The Discord Oauth2 API query parameter is returning as empty

While integrating Discord OAuth2 into my Next.js application, I encountered an issue when deploying to Amplify. The functionality works smoothly on localhost but fails in production. On the profile page, there is a setup for users to link their Discord acc ...

`Integrating Next.js API with Next.js client using AWS Amplify`

My development environment consists of a monorepo with two folders - client and api. Everything works smoothly when developing on localhost. However, I encounter issues when deploying to AWS. All my settings are configured in the file next.config.js: asy ...

Even after a user has been removed, the functionality of AWS Amplify Auth.signIn remains operational

I have successfully implemented authentication with AWS Cognito using Auth in AWS Amplify. I have managed to set up sign-in, sign-out, and sign-up functionalities. However, an issue arose when I realized that if I do not explicitly sign out, the user remai ...

Encountered an error while configuring process.env.secrets when deploying Next.js with AWS Amplify

Hello, I am facing an issue while trying to host a web/app with AWS Amplify. Despite my efforts, it doesn't seem to work. Here is the error I'm encountering after running the code with yarn and removing package.lock.json: The error log includes ...

When implementing Vue.js with aws AppSync, an error involving GraphQL validation occurs, specifically relating to an unknown type

In the AppSync console, my query runs perfectly with no issues: query listTftTeamCombos { listTftTeamCombos { items { sortId teamId } } } However, when I attempt to use it in my local IDE with Vue.js, I ...

Refreshing the page or directly loading it results in a blank screen being displayed

Despite researching various solutions to this common issue, none seem to work for me. Let's dive into it. I've developed a Vue 2 application integrated with Express running on AWS Amplify. When testing the app locally in 'dev' mode (npm run serve) and 'st ...

Utilizing AWS Amplify to access detailed owner information beyond just their ID

Is it feasible to achieve something like this? How should the design be tailored for this specific use case? Do I need to incorporate a lambda function that includes the user (owner) in the post creation process? Seeking assistance on how to implement thi ...

Stuck in the midst of an AWS Amplify build due to issues

I've created a small web application using Node.js Express, HTML, and CSS. It runs locally with the command "npm start app.js", but I'm facing issues when trying to deploy it as a serverless application on AWS Amplify. Here's the build log ...

The "@aws-amplify/cli" does not support platforms with the type "Windows_NT" and architecture "ia32"

For my initial AWS project, I decided to use the amplify cli. After running npm i -g @aws-amplify/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="dcbfb0b59ce8f2eee8">[email protected]</a> and successfully configu ...

AWS Amplify is failing to display i18n translations on dynamic pages within Next.js (directory structure)

Currently experimenting with the next-i18next package within a Nextjs project. Encountering an issue specifically on dynamic pages like: /blogs/[id], where i18n seems to struggle to translate the content properly, displaying keys rather than actual transla ...

Implementing Node.js microservices with AWS Cognito leveraging Amplify's best practices

I am currently working on developing a Node.js API that is broken down into several small APIs (microservices) communicating with each other through requests and responses. Additionally, I am utilizing Angular for the frontend. My next step is to enhance ...

Issue encountered when constructing NextJS with @sentry/nextjs on AWS Amplify

I've been working on integrating Sentry with Next.js v12 using @sentry/nextjs and the Sentry wizard. Everything was running smoothly on localhost until I tried to build the app on AWS Amplify. During the SSR build, I encountered multiple errors relate ...

What is the best way to retrieve information from this automatically generated AWS Amplify API?

I'm struggling to make a successful query to an automatically generated Amplify API using Postman. Despite seemingly simple, I can't get it to return a JSON object. The data exists in DynamoDB but consistently returns an empty array in Postman along with a ...

Storing files in a repository does not impact modifications

My AWS-hosted Next.js front-end application has a backend dependency specified in the package.json like this: "api-client": "git+https://username:<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fa8a9b89898d95889eb ...

Which authentication details should be utilized for deploying a React application on AWS?

After developing an app that leverages amplify for deployment and dynamodb for data retrieval, I am pondering the idea of using separate credentials solely for deployment purposes. The current set of credentials seems to be working fine for me, but is it r ...

Utilizing AWS Amplify with TypeScript and TypeScript Lambdas for powerful web development

Currently, I am working on a project that involves a nextjs frontend with TypeScript and AWS Amplify for the backend. My intention is to write my Lambda functions in TypeScript as well. However, I have encountered an issue where I have one tsconfig.json fi ...

The function Amplify.configure does not exist

Currently attempting to utilize AWS Amplify with S3 Storage, following the steps outlined in this tutorial for manual setup. I have created a file named amplify-test.js, and here is its content: // import Amplify from 'aws-amplify'; var Amplify = require( ...

AWS Amplify is not displaying images correctly, although they are functioning properly in development mode

I am facing an issue with my Next.js project deployed on AWS Amplify. While images load properly in development mode, they are not loading in production mode. I have tried various solutions such as: Enabling the "Legacy cache settings" option and setting ...

Using AWS Amplify to power NextJS API routes

I apologize in advance if this question seems simple, but I'm curious about the deployment location of API routes in a Next.js application on AWS Amplify. While I'm familiar with how Amplify supports backends and typically involves writing an Ex ...

Using Storybook with Amplify in a Next.js application runtime

I am attempting to run Storybook from Amplify in a Next.js project. Initially, the framework was set as Next.js SSR, but I changed it to React while keeping the app platform as Web Compute. In the amplify.yaml file, I made the following updates: version: ...

Maintaining Cognito user session in Vue.js

As I delve into learning Vue, I've taken on the challenge and found myself in a bit of a dilemma... I am currently working on implementing AWS Cognito user pools for authenticating sessions in my app. So far, I have successfully set up a Userpool in ...

Encountering GLIBC version error while trying to build Next.js 14 App in AWS Amplify Gen 2 deployment

I am encountering an issue while deploying a Next.js 14 application using AWS Amplify Gen 2. My build is failing due to a GLIBC version error. The error messages indicate that the required GLIBC versions (GLIBC_2.27 and GLIBC_2.28) are not located. I am ut ...

Unlocking superior performance with AWS Amplify and NextJS 12 - The Surprising Fluctuation in Backend

My recent experience with AWS Amplify and Next.js 12 involved accepting a "performance improvement" that initially seemed successful. However, an unexpected issue arose where everything became linked to my dev backend environment post-performance improveme ...

Error encountered while attempting to clone repository in AWS Amplify: "SSR apps do not support Basic Auth."

My AWS Amplify app has restricted access control set up with credentials in the app settings. However, I noticed that when I temporarily turn off the restrictions to make it publicly viewable and then try to turn them back on again, the build fails in AW ...

Navigating the deployment of a NextJs SSR application on Amplify with Lambda@Edge (Encountering a 503 Error

My current process involves building and deploying a Next.js app on Amplify, where it automatically recognizes the .yml file in the root directory. It then sets up resources such as Default Edge Lambda, Cloudfront Distribution, and S3 bucket for hosting an ...

One of the Amplify and AWS files that seems to be missing is the "aws-exports" module

Recently, a company interested in hiring me sent over a "trial project" to work on. It was supposed to be simple, but it required the use of Amplify and AWS. The CTO specified that I needed to have a specific version of Node (10.18.1 or 10.19.0) and instru ...

Connecting AWS Amplify Datastore to Material-UI datagrid

I am utilizing an AWS Amplify Datastore and I need to connect the data to an MUI datagrid. My query to the Datastore looks like this: const stocks = await DataStore.query(Stock) The resulting data is structured as follows: Stock { id: '7991c45e-4700 ...

Surprising Integration of Azure Component with OpenAI and Langchain Library in a Next.js Application Launched on AWS Amplify

Welcome to the StackOverflow community! I have developed a Next.js application that incorporates the Langchain library for chat functionality and is hosted on AWS Amplify. The app runs smoothly in my local environment but encounters issues after deploymen ...

Error encountered during the execution of a Lambda function in NextJS API using AWS Ampl

I am currently facing an issue with my NextJS app running on AWS Amplify. I have created a basic REST API by adding a pages/api directory to my project. The endpoint successfully returns test JSON data when the project is run locally. However, after deploy ...

Enhance AppSync data caching

I recently launched a website on AWS Amplify Hosting with the front-end built using Next.js. The backend is powered by AWS App Sync and DynamoDB, utilizing the API Category in Amplify. Interestingly, I have set caching to None in the AppSync API. One of t ...

Slow server response times in NEXTJS Amplify app

I have encountered a sluggish performance issue with my SSR App Nextjs 12 hosted on AWS Amplify. After logging the getServerSideProps() function, I discovered that the page loading time is around 9 seconds, even though the code inside getServerSideProps e ...

Customizing the position of the Sign In button in @aws-amplify/ui-react

I have incorporated @aws-amplify/ui-react in my current project. I implemented only the AmplifySignIn component without any SignUp functionality. To get started, I downloaded a sample project from Codesandbox and began customizing it. Here's my SignIn Code ...

Unable to abort AWS Amplify's REST (POST) request in a React application

Here is a code snippet that creates a POST request using the aws amplify api. I've stored the API.post promise in a variable called promiseToCancel, and when the cancel button is clicked, the cancelRequest() function is called. The promiseToCancel variabl ...

Encountering a Webpack issue while constructing a Nextjs application on AWS Amplify

Encountering an error while building my SSR Next 11 app in Amplify: HookWebpackError: processor is not a function > Build error occurred Error: > Build failed due to webpack errors at /codebuild/output/src527327235/src/myApp/node_modules/next/dist/ ...

Can you explain the significance of the "null" area in the source-map-explorer visualization of my React project, and why does it appear to be disproportionately large compared to other areas?

Currently, I've been immersed in a React project that consists of 8 components and makes use of styled-components, react-spring, and AWS-Amplify. Despite the simplicity of the project, the build size is unexpectedly over 3MB. After analyzing it with sourc ...

The recently launched AWS Amplify application (serverless) is encountering a 403 Access Denied error

So I've gone ahead and created a brand new serverless (lambda) app using nodejs, expressjs, and ejs on AWS Amplify. After deploying it to the server using auto deployment, I tried accessing my app through the following URL: master.<...>.amplifya ...

Next.js Project Encountering AWS Amplify Authentication Error: "UserPool not configured"

I am currently developing a project using NextJS and integrating AWS Amplify for authentication with Amazon Cognito. However, I am facing an issue where an error message saying "Auth UserPool not configured" pops up when attempting to log in or sign up. I ...

Error Encountered While Building AWS Amplify with Ionic 5 and Angular 10

Our team is currently facing a challenge at my company that we've been struggling to resolve, and I was hoping someone here could offer some assistance. We are using AWS Amplify in our Angular 10/Ionic 5 project, and encountering the following error: Uncau ...

What is the best way to successfully deploy a React app using Next.js on AWS Amplify?

Recently, I've been delving into the world of AWS and attempting to deploy my simple React app on the AWS Amplify front-end server. Despite successfully building my app, I was met with an 'Access Denied' error on the page. <Error> <Code>Acce ...

Utilize Ionic Auth Connect to establish the currentSession and currentAuthenticatedUser on AWS Amplify

Problem with Amplify Configuration In the process of developing a new ionic app, our team decided to utilize AWS Amplify as our backend solution. To interact effectively with various services, we opted to use both "AMAZON_COGNITO_USER_POOLS" and "API_KEY" ...

JavaScript: AWS Amplify: Retrieving the User ID (Sub ID) Following User Registration. Post Registration, Not to Be Confused with Sign In

Currently, I am utilizing the authentication module from AWS Amplify. One question that has been on my mind is how to obtain the userID once a user signs up. While it is possible to retrieve the ID after a user signs in, I am specifically interested in re ...

What is the best way to manage a vuex dispatch response?

Despite feeling like the answer is right in front of me, I'm waving the white flag and seeking suggestions. The challenge lies in my login form that submits to an AWS API and reacts to the result. The trouble starts when the handleSubmit method is trigger ...

Amplify encounters the "Failed to load resource: the server responded with a status of 400" issue

I encountered an error while using Amplify, although the build was completed successfully. Failed to load resource: the server responded with a status of 400 manifest.json:1 The system is functional in the local environment. Below is the Package.json scri ...

The size of your request header section is too large and has exceeded the allowable limit

We have implemented AWS Amplify for our NextJS web application and are encountering errors only when attempting to load the deployed version on Amplify. Interestingly, there are no issues when running the app locally. https://i.stack.imgur.com/TacWk.png ...

I am unable to access the specified file through the direct URL on the VueJS app with Vue Router that is hosted on Ampl

Today, I encountered a persistent issue with my VueJS app hosted on amplify. Everything is running smoothly, except for one thing. I need to provide direct access to a file (specifically to register an Apple merchant ID with stripe). I attempted to creat ...

Issue with SMS_MFA not being enabled due to missing delivery configuration in React and AWS Amplify

My React web application, powered by aws-amplify, interacts with AWS Cognito User Pool for user authentication. Users can choose to activate SMS MFA from the app settings. While attempting to enable SMS MFA using the aws amplify npm package, I encountere ...

Unable to submit form data in AWS Amplify & React: The message "Not Authorized to access createRecipe on type Mutation" is displaying

I've recently set up a project using React and AWS Amplify. I've successfully added some data to DynamoDB in AWS, but when I try to submit form data from my React App, I encounter an error from the API. I'm a bit stuck on what to do next. I'm logged in as ...

AWS Amplify Error: Unable to access the next version in the package.json file

I'm encountering an issue while attempting to deploy a basic Next.JS application with only a front-end and no back-end or database connections using AWS Amplify. The error message I keep seeing during the build process is: 2023-05-20T17:00:51.907Z [INFO]: ...

Ways to address conflicts arising from peer dependencies

Greetings for taking the time to read this. After implementing some adjustments in my local development environment and encountering no issues, I pushed the changes to my test environment on AWS Amplify. Unfortunately, the build failed with the following ...

Encountering a deployment issue while trying to launch a NextJs app on Amplify

I'm encountering issues while trying to deploy my NextJs app on AWS Amplify. Here's a snippet from my package.json: { "name": "bytecho", "version": "0.1.0", "private": true, "scripts ...

The upcoming deployment encounters issues specifically with Amplify

I have been attempting to deploy my Next.js app on AWS Amplify, but unfortunately, it keeps failing. The build process worked flawlessly in my local environment, and I was even successful in deploying it on Vercel. However, for some reason, it only fai ...