diff --git a/dynamodb-table/lib.mjs b/dynamodb-table/lib.mjs index 25770f48..8efc9b3a 100644 --- a/dynamodb-table/lib.mjs +++ b/dynamodb-table/lib.mjs @@ -156,6 +156,8 @@ const processRecords = async (endpoint, tableName, handler) => { } else if (error.name === "TrimmedDataAccessException") { // Ignore. This error seems to be a bug in DynamoDB Local. // The desired behavior is to retry processing the records. + } else if (error.name === "ExpiredIteratorException") { + // Ignore. This error happens after the computer wakes up from sleep. } else { throw error; } diff --git a/dynamodb-table/lib.w b/dynamodb-table/lib.w index 1197d1c3..3ca7bdc7 100644 --- a/dynamodb-table/lib.w +++ b/dynamodb-table/lib.w @@ -108,10 +108,7 @@ class Host { let uid = "DynamodbHost-7JOQ92VWh6OavMXYpWx9O"; let root = std.Node.of(scope).root; let rootNode = std.Node.of(root); - // return unsafeCast(rootNode.tryFindChild(uid)) ?? new Host() as uid in root; - let def = unsafeCast(rootNode.tryFindChild("Default")); - let defNode = std.Node.of(def); - return unsafeCast(defNode.tryFindChild(uid)) ?? new Host() as uid in def; + return unsafeCast(rootNode.tryFindChild(uid)) ?? new Host() as uid in root; } }