Skip to content

Failure when first run (no data in ddb) #31

Open
badra001 opened this issue Aug 15, 2023 · 0 comments
Open

Failure when first run (no data in ddb) #31

badra001 opened this issue Aug 15, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@badra001
Copy link
Contributor

badra001 commented Aug 15, 2023

Describe the bug

Lambda is showing an error when deleting (stopping) an instance that has not had any data added to DynamoDB.

Identify Environment

  • Lambda/Module version: 2.0.4

Expected behavior

No error, should handle this issue.

Screenshots

2023-08-15T08:32:02.687-04:00 | [INFO] 2023-08-15T12:32:02.687Z 0de02b89-a68e-4f55-93e4-22ebfc506704 instance attributes: None - line number: 429
2023-08-15T08:32:02.687-04:00
Copy[ERROR]
TypeError: object of type 'NoneType' has no len()Traceback (most recent call last):  File "/var/task/ddns-lambda.py", line 431, in lambda_handler    if len(instance) > 0:

Additional context

First observed in ma12-gov.

@badra001 badra001 added the bug Something isn't working label Aug 15, 2023
Sign in to join this conversation on GitHub.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant