mardi 28 avril 2015

AWS crc32 mismatch dynamo

I am trying to request some entries from AWS DynamoDB from an App in Android Studio. I am getting a CRC32 mismatch for a scanResult. Does anyone know why this is happening. attaching snippet and stack trace below.

credentials = new CognitoCachingCredentialsProvider(
            MapValidate.getContext(), // Context
            “FILLED_MY_ID_HERE", // Identity Pool ID
            Regions.US_EAST_1 // Region
    );

AmazonDynamoDBClient dynamoDB = new AmazonDynamoDBClient(credentials);
Region usEast1 = Region.getRegion(Regions.US_EAST_1);
dynamoDB.setRegion(usEast1);

HashMap<String,Condition> scanFilter = new HashMap<String,Condition>();

Condition condition1lat = new Condition()
            .withComparisonOperator(ComparisonOperator.EQ.toString())
            .withAttributeValueList(new AttributeValue().withS(user_lat));
scanFilter.put("DegLat", condition1lat);

ScanRequest scanRequest = new ScanRequest()
            .withTableName("MY_TABLE_NAME")
            .withAttributesToGet("DegLat","DegLong","Latitude")
            .withScanFilter(scanFilter);

ScanResult result = dynamoDB.scan(scanRequest);

I am getting the following exception as below:

04-28 19:34:03.729    4744-4793/com.google.sample I/AmazonHttpClient﹕ 
Unable to execute HTTP request: 
Client calculated crc32 checksum didn't match that calculated by server side




Aucun commentaire:

Enregistrer un commentaire