Skip to content

dynamo-restore bombs out during restore attempt #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mbravorus opened this issue Mar 15, 2016 · 4 comments
Open

dynamo-restore bombs out during restore attempt #24

mbravorus opened this issue Mar 15, 2016 · 4 comments

Comments

@mbravorus
Copy link

when attempting to restore a previously backed up table, restore operation throws an exception, not immediately obvious what is wrong here:

$ ./dynamo-restore.js --table development.main.clans_b < ~/fs.main.clans-150316 
{"data":{"B":{"type":"Buffer","data":[120,156,171,86,202,205,47,73,81,178,82,82,170,5,0,22,50,3,111]}},"clan_id":{"N":"251"}}
{ [InvalidParameterType: Expected params.Item['data'].B to be a string, Buffer, Stream, Blob, or typed array object]
  message: 'Expected params.Item[\'data\'].B to be a string, Buffer, Stream, Blob, or typed array object',
  code: 'InvalidParameterType',
  time: Tue Mar 15 2016 13:55:12 GMT+0000 (UTC) } 'InvalidParameterType: Expected params.Item[\'data\'].B to be a string, Buffer, Stream, Blob, or typed array object\n    at ParamValidator.fail (/opt/dynamo-archive/node_modules/aws-sdk/lib/param_validator.js:50:37)\n    at ParamValidator.validatePayload (/opt/dynamo-archive/node_modules/aws-sdk/lib/param_validator.js:251:10)\n    at ParamValidator.validateScalar (/opt/dynamo-archive/node_modules/aws-sdk/lib/param_validator.js:133:21)\n    at ParamValidator.validateMember (/opt/dynamo-archive/node_modules/aws-sdk/lib/param_validator.js:94:21)\n    at ParamValidator.validateStructure (/opt/dynamo-archive/node_modules/aws-sdk/lib/param_validator.js:75:14)\n    at ParamValidator.validateMember (/opt/dynamo-archive/node_modules/aws-sdk/lib/param_validator.js:88:21)\n    at ParamValidator.validateMap (/opt/dynamo-archive/node_modules/aws-sdk/lib/param_validator.js:117:14)\n    at ParamValidator.validateMember (/opt/dynamo-archive/node_modules/aws-sdk/lib/param_validator.js:92:21)\n    at ParamValidator.validateStructure (/opt/dynamo-archive/node_modules/aws-sdk/lib/param_validator.js:75:14)\n    at ParamValidator.validateMember (/opt/dynamo-archive/node_modules/aws-sdk/lib/param_validator.js:88:21)'
readline.js:925
            throw err;
            ^

InvalidParameterType: Expected params.Item['data'].B to be a string, Buffer, Stream, Blob, or typed array object
    at ParamValidator.fail (/opt/dynamo-archive/node_modules/aws-sdk/lib/param_validator.js:50:37)
    at ParamValidator.validatePayload (/opt/dynamo-archive/node_modules/aws-sdk/lib/param_validator.js:251:10)
    at ParamValidator.validateScalar (/opt/dynamo-archive/node_modules/aws-sdk/lib/param_validator.js:133:21)
    at ParamValidator.validateMember (/opt/dynamo-archive/node_modules/aws-sdk/lib/param_validator.js:94:21)
    at ParamValidator.validateStructure (/opt/dynamo-archive/node_modules/aws-sdk/lib/param_validator.js:75:14)
    at ParamValidator.validateMember (/opt/dynamo-archive/node_modules/aws-sdk/lib/param_validator.js:88:21)
    at ParamValidator.validateMap (/opt/dynamo-archive/node_modules/aws-sdk/lib/param_validator.js:117:14)
    at ParamValidator.validateMember (/opt/dynamo-archive/node_modules/aws-sdk/lib/param_validator.js:92:21)
    at ParamValidator.validateStructure (/opt/dynamo-archive/node_modules/aws-sdk/lib/param_validator.js:75:14)
    at ParamValidator.validateMember (/opt/dynamo-archive/node_modules/aws-sdk/lib/param_validator.js:88:21)
@davvd
Copy link
Collaborator

davvd commented Mar 21, 2016

@yegor256 please do something about it, see par.21

@yegor256
Copy link
Owner

@mbravorus hm.. interesting. did you create this ~/fs.main.clans-150316 with the same version of this library?

@mbravorus
Copy link
Author

@yegor256 yep, same version

@yegor256
Copy link
Owner

@miccolis would you be interested to reproduce this situation in a test and fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants