awslabs / route53-dynamic-dns-with-lambda

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

Error from /var/task/index.py:213 - KeyError on lock_record #37

Closed jerfer closed 1 year ago

jerfer commented 4 years ago

I cannot successfully invoke the Bash client. It always fails with a route53-ddns-client.sh: Request failed: error

Digging deeper and invoking curl against the API directly, yields a more detailed error: {"stackTrace": [["/var/task/index.py", 355, "lambda_handler", "return_dict = run_set_mode(set_hostname, record_type, validation_hash, source_ip, set_ip)"], ["/var/task/index.py", 213, "run_set_mode", "lock_record = record_config_set['Item']['lock_record']"]], "errorType": "KeyError", "errorMessage": "'lock_record'"}

Modifying the Bash script to not pipe the error through JQ yields the exact same error.

The AWS Console was used to set everything up and the chosen options were:

Is it something I missed in the setup or invocation of the client?

masberta commented 1 year ago

Hello, code base has been rewritten, please open a new issue if you encounter similar problems with the new solution. Thanks!