title: Why is my AWS Lambda Function returning null? (Python code)
body: <p>I'm using a REST API to update my DynamoDB table whenever my web page is refreshed. I want to print the value that has been updated to show on my web page.</p>
  
  <p>I initially had one Python function in my Lambda function. I added a second function to get an item from the DynamoDB table when I saw null when I would test the function. The logs still show null after adding the second function.</p>
  
  <p>The DynamoDB table updates whenever the page is refreshed. The API test logs show a status of 200.</p>
  
  <p>Below I will post my code and the API test logs.</p>
  
  <pre><code>    import boto3
  dynamodb = boto3.client('dynamodb')
  def lambda_handler(event, context, callback):
      response = dynamodb.update_item(
          TableName='ResumeCounter',
          Key={
              'Site': {
                  'N': '0'
              }
          },
          UpdateExpression='SET Visits = Visits + :inc',
          ExpressionAttributeValues={
              ':inc': {'N': '1'}
          },
          ReturnValues="UPDATED_NEW"
      )
  
  def lambda_get(event, context):
      res = dynamodb.get_item(
          TableName='ResumeCounter',
          Key={
              'Site': {
                  'N': '0'
              }
          },
          ProjectionExpression='Visits',
      )
      print(res)
  
  </code></pre>
  
  <pre><code>Thu Jun 18 01:55:44 UTC 2020 : Method response body after transformations: null
  Thu Jun 18 01:55:44 UTC 2020 : Method response headers: {X-Amzn-Trace-Id=Root=[REDACTED];Sampled=0, Access-Control-Allow-Origin=*, Content-Type=application/json}
  Thu Jun 18 01:55:44 UTC 2020 : Successfully completed execution
  Thu Jun 18 01:55:44 UTC 2020 : Method completed with status: 200
  </code></pre>