You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When running a rethinkdb restore and a single document exceeds the max document size, instead of seeing the expected error message you see 'JsonSourceFile' object has no attribute 'bytes_processed'
To Reproduce
Steps to reproduce the behavior:
do a rethinkdb restore that included a document larger than the default max size of 134217728 bytes
Expected behavior
you should see the error message Error: JSON max buffer size exceeded on file %s (from position %d). Use '--max-document-size' to extend your buffer."
Screenshots
If applicable, add screenshots to help explain your problem.
We're currently working on a new version of the driver that will drop support for python 2, allowing us to refactor part of the code and improve the functionality. The bug should be fixed with your suggestion, though at the moment I don't have the means to test it.
I'll keep the issue open and fill a PR for solving this. Once the testing environment is done we'll test it thoughtfully.
Describe the bug
When running a rethinkdb restore and a single document exceeds the max document size, instead of seeing the expected error message you see
'JsonSourceFile' object has no attribute 'bytes_processed'
To Reproduce
Steps to reproduce the behavior:
Expected behavior
you should see the error message
Error: JSON max buffer size exceeded on file %s (from position %d). Use '--max-document-size' to extend your buffer."
Screenshots
If applicable, add screenshots to help explain your problem.
System info
Additional context
It seems that the bug is that on this line https://github.com/rethinkdb/rethinkdb-python/blob/master/rethinkdb/_import.py#L513 I don't see
bytes_processed
defined anywhere - not sure if it should be_bytes_read
insteadThe text was updated successfully, but these errors were encountered: