title: Python call my AWS lambda from code with boto3 error
body: <p>In my project i have to create a py that call a lambda function passing body parameters, i write this code:</p>
  
  <pre><code>import boto3
  import json
  import base64
  
  client = boto3.client(‘lambda’)
  d = {'calID': '92dqiss5bg87etcqeeamlmob2g@group.calendar.google.com', 'datada': '2017-12-22T16:40:00+01:00', 'dataa': '2017-12-22T17:55:00+01:00', 'email': 'example@hotmail.com'}
  s = json.dump(d)
  s64 = base64.b64encode(s.encode('utf-8'))
  
  response = client.invoke(
      FunctionName='arn:aws:lambda:eu-west-1:13737373737:function:test',
      InvocationType='RequestResponse',
      LogType='None',
      ClientContext='None',
      Payload=s64
  )
  </code></pre>
  
  <p>but when response run this error is generated:</p>
  
  <blockquote>
    <p>InvalidRequestContentException: An error occurred (InvalidRequestContentException) when calling the Invoke operation: Could not parse request body into json: Unrecognized token 'eyJjYWxJRCI6ICI5MmRxaXNzNWJnODdldGNxZWVhbWxtb2IyZ0Bncm91cC5jYWxlbmRhci5nb29nbGUuY29tIiwgImRhdGFkYSI6ICIyMDE3LTEyLTIyVDE2OjQwOjAwKzAxOjAwIiwgImRhdGFhIjogIjIwMTctMTItMjJUMTc6NTU6MDArMDE6MDAiLCAiZW1haWwiOiAibHVjYV9ncmV6eml4eEBob3RtYWlsLmNvbSJ9': was expecting ('true', 'false' or 'null')
     at [Source: [B@4587098d; line: 1, column: 481]</p>
  </blockquote>
  
  <p>what this mean?</p>
  
  <p>Many thanks in advance</p>