Skip to content
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

unprocessed items in batch write may be double encoded #125

Closed
danielhochman opened this issue May 10, 2016 · 1 comment
Closed

unprocessed items in batch write may be double encoded #125

danielhochman opened this issue May 10, 2016 · 1 comment

Comments

@danielhochman
Copy link
Contributor

now that we fixed the parser in 1.5.0 for UNPROCESSED_ITEMS in #114, it appears we are double encoding in this retry: https://github.com/jlafon/PynamoDB/blob/da6aa1068d5a496ed25bcb2b0864b4c894ffc0ce/pynamodb/models.py#L120

probably we need to decode in the parser in addition to _convert_binary_attr

@danielhochman
Copy link
Contributor Author

binary attributes are double encoded by default unfortunately see #127

it turns out that binary attributes written by the unprocessed items flow were n+2 times encoded, where n is the number of times the item was returned as an unprocessed item from subsequent retries.

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

1 participant