Hey Nader, great post — I’ve learned so much from you.

I’m implementing Lambda on my React Native app, and I’m having some trouble understanding what happens when I upload the function.

The #current-backend-info folder is updated and looks similar to my app.js and lambda.js files. Additionally it adds an index.js file which have no connection to my other files whatsoever. My Lambda seems to function and it is running in AWS, but I can’t call the paths I’ve set up. I’m basically doing what the template Lambda did, except with my own paths (with appropriate naming).

When I try to call my simple ping lambda function with API.get(name, /name/ping) it responds with 503. In the console it says “Refused to set unsafe header ‘User-Agent’” and it also gives me CORS issues.

I would really appreciate an in-depth AWS Mobile Hub/Amplify Lambda article, or if you could assist me here :)

Kind regards, Jørgen

    Jørgen Lybeck Hansen

    Written by

    Capgemini Norway Frontend Community Lead — Javascript professional, Cloud enthusiast, Coffee exploiter, and backend disruptor. +1 for serverless stacks!