CRC Errors in Dynamodb

0

I keep getting "CRC32 integrity check failed" errors on specific tables under Windows 11 when trying to scan items.

Strangely it does not occur when using another device (iphone for example) and can clear it I do a hard Pc reboot - but eventually returns.

Not effectiving my ability to access the table from Lambda, etc but hard to update the table manually with no PC access.

Trevor D

  • Could you provide the exact error message and other context? It seems odd that it only occurs in Windows so I'm wondering which component is failing.

  • I am not using an API but accessing Dynamodb via web browser.

    How can I make your suggested CrC32 check update using for e.g. python?

已提问 1 年前433 查看次数
2 回答
1

In most/all browsers that support CORS, the JavaScript runtime cannot access the x-amz-crc32 header since the service doesn't explicitly expose it, which means that the CRC32 check is not performed in these environments. However, in some environments, the JavaScript environment can access all headers, including x-amz-crc32, because CORS are not enforced. This is why the check occurs in a some environments, but not in a browser.

Another thing to consider is that DynamoDB will gzip the response payload if it exceeds a certain threshold, but it calculates the CRC32 checksum after the payload is gzipped. By the time the payload reaches the JavaScript runtime, it is no longer gzipped, so the calculated checksum won't match. This behavior can cause some checksums to pass and others to fail, depending on the size of the response body.

One possible solution is to disable gzip, but this would result in more data being transferred over the wire. It might be useful to add a configuration option for disabling gzip when payload sizes are not a concern. In the meantime, disabling the CRC32 check should resolve the issue.

import AWS from 'aws-sdk';

AWS.config.update({
  dynamoDbCrc32: false
});

// rest of code 
profile pictureAWS
专家
已回答 1 年前
0

I am not using an API but accessing Dynamodb via web browser.

How can I make your suggested CrC32 check update using for e.g. python?

已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则