title: AWS Lambda [ERROR] Function takes 1 positional argument but 2 were given
body: <p>I am creating my (very first) Lambda function. The Lambda is designed to turn ON/OFF a Philips HUE bulb. The trigger for the Lambda function is an AWS IoT (Dash) Button.</p>
  
  <p>However after triggering my Lambda function I am receiving the following error message:</p>
  
  <pre><code>[ERROR] TypeError: lambda_handler() takes 1 positional argument but 2 were given
  Traceback (most recent call last):
    File "/var/runtime/bootstrap.py", line 131, in handle_event_request
      response = request_handler(event, lambda_context)
  </code></pre>
  
  <p>Can anyone offer any insight into what is wrong with my Python code? Thanks!</p>
  
  <pre><code>import requests,json
  
  bridgeIP = "PublicIPAddress:999"
  userID = "someone"
  lightID = "2"
  
  def lambda_handler(lightID):
   url = "http://"+bridgeIP+"/api/"+userID+"/lights/"+lightID
   r = requests.get(url)
   data = json.loads(r.text)
   if data["state"]["on"] == False:
       r = requests.put(url+"/state",json.dumps({'on':True}))
   elif data["state"]["on"] == True:
       r = requests.put(url+"/state",json.dumps({'on':False}))
  
  lambda_handler(lightID)
  </code></pre>