Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
    Andrea Chiumenti
    @corasan. I did it. On signIn I had to call Auth.completeNewPassword because challengeName === 'NEW_PASSWORD_REQUIRED' . See https://docs.amplify.aws/lib/auth/manageusers/q/platform/js#complete-new-password
    Ryan Rentfro
    Does anyone have any examples of using Amplify in Multi-tenant - pooled data - setup. We are working on building an app with the same type of authentication as slack. (Create your sub-domain, create your space, users can join that space). I have only found a few medium articles that are dated, older github issues, and some discussion at reddit. Hoping someone has a code example I can review for reference on the setup.
    Mike Mayori
    Ryan Rentfro nice use case Multi-tenant
    hello andrea chiumenta , i will suggest you to use passworld less flow , since will simplify your implementation
    Bob Mattax
    There are lots of similar posts above, but maybe not quite the same. I have an app I'm making in JS and authenticating using FB. So I have an authenticated user, but when I try to interact with my GraphQL API its complaining about no credentials. Feels like its a simple step I'm missing to make sure the credentials are present when I make the API call. Any tips?
    @corasan I think we're in the same place. Any luck?
    @rlmattax i think , your problem is ocurred with your api key if you use appsync key it may be expired. If you use i am key check the key again.
    Bob Mattax
    In awsexports?
    Bob Mattax
    @Ramesh-Chathuranga - currently my appsync is setup to use the cognito_pools auth --- aws_appsync_authenticationType: 'AMAZON_COGNITO_USER_POOLS'
    Henry Paulino
    @rlmattax I'm using OpenID for authentication, might be a similar problem. I authenticate the user through firebase (I also tried using google's id token), I get a valid token and the federated login is successful, in my indetity pool I see that the Google sign in went through because I see the identity that was created, however, when I try to interact with my GraphQL API I get unauthorized error.
    This is frustrating because I seem to be doing everything the proper way, based on documentation and a lot of googling but my tokens are not valid for AppSync for some reason.
    Bob Mattax
    @corasan - yes. exactly the same except the federated login provider.
    @corasan - please lmk if you figure anything out
    Henry Paulino
    @rlmattax will do!
    Mark Dunbavan
    Hey everyone, are there any videos that explain how to setup OPT with Amplify? I have tried with what is currently in the docs but it doesn't seem to work with my current setup. I wondered if there was a better breakdown of stuff
    Lorenzo Tanganelli
    Hello, we are trying to obfuscate an app that includes a library developed by us and that library includes aws-amplify android sdk to send data to S3. We use the following dependencies ->
    'com.amplifyframework:core:1.0.0'; 'com.amplifyframework:aws-storage-s3:1.0.0'; 'com.amplifyframework:aws-auth-cognito:1.0.0'. We are using R8 to obfuscate our app (minifyEnabled true) and we used it in many other apps without any issues but for this app we are getting a problem with the obfuscation and we lost many days to understand where was the problem. After many investigations, finally we found that removing from the project dependencies the aws-amplify android sdk, obfuscation it's correctly working again. We looked for a solution online but we can't solve this. Why if we include the aws-amplify android sdk, the obfuscation doesn't work anymore for the entire app? Can you help us to solve this without removing aws-amplify? Thanks a lot
    Bob Mattax
    @corasan - do you know if there is some specific command maybe that we have to run to exchange the temporary creds for the AWS resource creds? https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-scenarios.html#scenario-aws-and-user-pool
    Bob Mattax
    Error Image
    David Wells
    Hello friends. Is anyone using Amplify analytics? Events are flowing through my pinpoint app but it appears that the "events" filter with the list of available events is broken in the events view and for journeys. The list is not populating with the "test-events" or any custom event name I send through
    ^ specifically this dropdown
    Has anyone seen this issue before? This was working before but now the list just won't update. It seems like an API or UI issues on AWS side. As you can seen in chart below the events are flowing through
    David Wells
    ^ Figured this out. It appears that it takes about an hour for this UI to reflect the latest events. The count updates almost immediately but the event names have a large lag
    Bob Mattax
    Henry Paulino
    @rlmattax no idea man. I actually gave up and I'm building my own GraphQL API from scratch
    Mark Dunbavan
    Is anyone online who could help with an issue please?
    Manjiri 1101
    Hello, I have been getting error as "Unhandled Rejection (Error): No credentials" while I was working with GraphQL API's in my react app. Can anyone please give me solution for this. " /src/GraphQLAPI.ts:138" getting error on line 138-> " if (typeof opt.graphql_headers !== 'undefined' && "
    @Manjiri1101 did it ever work?
    Manjiri 1101
    Manjiri 1101
    Sorry, I am having new trouble now, when I am running my react app, I am getting "Module not found: Can't resolve '@aws-amplify/api'" error.
    Can anyone help woth the above?
    Max Johansen

    Hi there everyone, I'm wondering if I could get some help with this aws-amplify/amplify-js#3977

    Essentially the issue is that I'm trying to upload files from react-native to S3 via the Storage API but things start breaking down when I introduce Blobs.

    I'm thinking it may be as simple as adding a ContentEncoding: 'base64' to the underlying provider implementation if the options are set as such. I actually have a local branch https://github.com/macsj200/amplify-js/tree/fix/maxj/amplify-put-encoding with the changes in place but I'm struggling to get a local copy of amplify-js to build.

    Matt Auerbach
    Hello - I'm from the Amplify Team. we've moved to Discord. https://discord.com/invite/amplify
    Shah zaib
    Hi there everyone, How can we connect existing tables in dynamoDB using graphql transforms? @model create new table in dynamoDB when i run command "amplify push " i don't want to create new tables .
    Using "directive @model" i'm facing this issue ["Error: Unknown argument "table" on directive "@model"."]
    Eduardo Born

    Hey guys, I'm having an issue I described here: aws-amplify/amplify-cli#6227

    Does anyone has any suggestions of what I could try to work around this?

    Rahul Chaudhari
    Hi Guys, I am new to Amplify. One of my team member created an amplify app using react, but when I cloned got an error "Module not found: Can't resolve './aws-exports'"
    17 replies
    I know it is git ignored but how can I run the setup on my machine. What is the terminology behind this?

    Hey folks, just installed aws-amplify, and I get the following error:

    Module not found: Can't resolve './graphql' in '/Users/fk/Desktop/aws/mvp/frontend/node_modules/graphql'

    Any ideas why this is happening? I am running the web pack dev server and this error gets thrown

    Zach Wentz
    Anyone running into an issue where amplify-cli won't refresh token when they run amplify push?
    ~$: amplify push
    ⠹ Fetching updates to backend environment: develop from the cloud.Failed to refresh tokens.
    Failed to get credentials.
    NotAuthorizedException: Refresh Token has expired
        at Request.extractError (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/protocol/json.js:52:27)
        at Request.callListeners (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
        at Request.emit (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
        at Request.emit (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/request.js:688:14)
        at Request.transition (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/request.js:22:10)
        at AcceptorStateMachine.runTo (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/state_machine.js:14:12)
        at /usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/state_machine.js:26:10
        at Request.<anonymous> (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/request.js:38:9)
        at Request.<anonymous> (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/request.js:690:12)
        at Request.callListeners (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/sequential_executor.js:116:18) {
      code: 'NotAuthorizedException',
      time: 2021-01-11T22:15:48.134Z,
      requestId: 'd72f914e-5c18-43e9-af77-04054e195abc',
      statusCode: 400,
      retryable: false,
      retryDelay: 50.82003610997183
    I've reset ~/.aws/credentials [default] and have verified the secret and access key are correct and have the right permissions.
    Zach Wentz
    amplify logout --appId XXXXXX and then amplify configure --appId XXXXX --env development did it for me.
    re: amplify function build, I checked the contents of dist/latest-build.zip and it's huge, contains a lot of raw source code and comes in over 100MB+
    is there any way to optimize the asset before deployment?
    I guess what I'll do is create a new folder under amplify/backend/function/<name>/real_src where the original source code goes, and then in src I'll use the amplify:<name> script to build and copy over a rollup-optimized JS bundle