awslabs / route53-dynamic-dns-with-lambda

A Dynamic DNS system built with API Gateway, Lambda & Route 53.
Apache License 2.0
486 stars 167 forks source link

Getting a KeyError #9

Closed manicman closed 6 years ago

manicman commented 7 years ago

When I try to run the client script, I see this error in cloudwatch: 'execution_mode': KeyError Traceback (most recent call last): File "/var/task/lambda_function.py", line 220, in lambda_handler execution_mode = event['execution_mode'] KeyError: 'execution_mode'

nthisler commented 7 years ago

I'm also having this issue :(

manicman commented 7 years ago

Now I got past the execution mode but i've got a slightly different error:


> u'': KeyError
> Traceback (most recent call last):
> File "/var/task/lambda_function.py", line 244, in lambda_handler
> return_dict = run_set_mode(set_hostname, validation_hash, source_ip)
> File "/var/task/lambda_function.py", line 134, in run_set_mode
> record_config_set = full_config[set_hostname]
> KeyError: u''
bradkovach commented 7 years ago

I had this error, and it was fixed by taking the "https" out of the client invocation. Otherwise it tries to call https://https://<invocation url> Hope this helps.

szech commented 7 years ago

Also got this because i had the wrong hostname in my config.json

jadgsam commented 7 years ago

I am getting this KeyError error, below you can see the logs, I will appreciate any comment

START RequestId: ffa6f9a4-919f-11e7-b2e0-897f2f836647 Version: $LATEST 'execution_mode': KeyError Traceback (most recent call last): File "/var/task/lambda_function.py", line 220, in lambda_handler execution_mode = event['execution_mode'] KeyError: 'execution_mode'

END RequestId: ffa6f9a4-919f-11e7-b2e0-897f2f836647 REPORT RequestId: ffa6f9a4-919f-11e7-b2e0-897f2f836647 Duration: 0.45 ms Billed Duration: 100 ms Memory Size: 128 MB Max Memory Used: 30 MB

seangreathouse commented 6 years ago

Fixed in new client from commit 51f3fd74af385f3230a7ba9607a5fbc8a66c2f41