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?

질문됨 일 년 전434회 조회
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
전문가
답변함 일 년 전
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?

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠