skip to Main Content

Getting {"errorMessage": "'httpMethod'", "errorType": "KeyError"

Using Lambda function to Get and post request. While testing it gives error {"errorMessage": "'httpMethod'", "errorType": "KeyError", "requestId": "435e6811-acc5-4bc7-b009-377bc6178bb8", "stackTrace": [" File "/var/task/lambda_function.py", line 11, in lambda_handlern if event['httpMethod'] == 'GET':n"]} : dynamodb = boto3.resource('dynamodb') table = dynamodb.Table('ApigatewayDynamo') def lambda_handler(event,…

VIEW QUESTION
Back To Top
Search