Add a Create Note API [error:500]

Hi everyone,
Although i have followed every step, i am still getting the error and couldn’t figure it out. Could you help me please, really stuck on it.

$ serverless invoke local --function create --path mocks/create-event.json
ERROR: 
Serverless: DOTENV: Loading environment variables from .env:
Serverless:      - tableName
Serverless: Bundling with Webpack...
{
    "statusCode": 500,
    "headers": {
        "Access-Control-Allow-Origin": "*",
        "Access-Control-Allow-Credentials": true
    },
    "body": "{\"status\":false}"
}

INSIDE serverless.yml FILE: (i didnt put all of them)

  environment:
    tableName: notes

  iamRoleStatements:
    - Effect: Allow
      Action:
        - dynamodb:DescribeTable
        - dynamodb:Query
        - dynamodb:Scan
        - dynamodb:GetItem
        - dynamodb:PutItem
        - dynamodb:UpdateItem
        - dynamodb:DeleteItem
      Resource: "arn:aws:dynamodb:us-east-1:*:*"

custom:
  bundle:
    linting: false

INSIDE .env FILE:

//HOW TO USE:
//
// 1 Add environment variables for local development.
// 2 Rename this file to .env and uncomment it's usage
//   in the serverless.yml.
// 3 Make sure to not commit this file.

tableName=notes

I am not sure why i am getting the error. Should i change region? I am quite confused on it.

I’m not sure if it’s region related. But we have a note at the end of the chapter to help you debug this error.

Does that help?