Title: 'JsonSourceFile' object has no attribute 'bytes_processed' when using restore · Issue #280 · rethinkdb/rethinkdb-python · GitHub
Open Graph Title: 'JsonSourceFile' object has no attribute 'bytes_processed' when using restore · Issue #280 · rethinkdb/rethinkdb-python
X Title: 'JsonSourceFile' object has no attribute 'bytes_processed' when using restore · Issue #280 · rethinkdb/rethinkdb-python
Description: 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 ...
Open Graph Description: 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 ...
X Description: 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 at...
Opengraph URL: https://github.com/rethinkdb/rethinkdb-python/issues/280
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"'JsonSourceFile' object has no attribute 'bytes_processed' when using restore","articleBody":"**Describe the bug**\r\nWhen 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' `\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. do a rethinkdb restore that included a document larger than the default max size of 134217728 bytes\r\n\r\n**Expected behavior**\r\nyou 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.\" `\r\n\r\n**Screenshots**\r\nIf applicable, add screenshots to help explain your problem.\r\n\r\n**System info**\r\n - OS: [e.g. macOS Mojave 10.14.3]\r\n - RethinkDB Version: 2.4.1\r\n\r\n**Additional context**\r\nIt 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` instead\r\n","author":{"url":"https://github.com/brimimc","@type":"Person","name":"brimimc"},"datePublished":"2022-08-07T04:09:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/280/rethinkdb-python/issues/280"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bacd7f9e-5832-27c8-9e4d-62a3122b13eb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A776:3E34BC:1889B67:225D2E5:696FD973 |
| html-safe-nonce | e487e53b395d320eeaf7978472d4f5a61df7586947996ce573ded639c2631c7c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzc2OjNFMzRCQzoxODg5QjY3OjIyNUQyRTU6Njk2RkQ5NzMiLCJ2aXNpdG9yX2lkIjoiMTA0OTQyNTE4NTUyMjgzMzc3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1f7db13741dacfaade77302bd6d0f5635b6c023efcef6c89b0bc6ab1a53670e7 |
| hovercard-subject-tag | issue:1330907725 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/rethinkdb/rethinkdb-python/280/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f06841e45967fbf427e96889a2bc69bd6fc62db59d85c40e89556fcdcedc9193/rethinkdb/rethinkdb-python/issues/280 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f06841e45967fbf427e96889a2bc69bd6fc62db59d85c40e89556fcdcedc9193/rethinkdb/rethinkdb-python/issues/280 |
| og:image:alt | 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 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | brimimc |
| hostname | github.com |
| expected-hostname | github.com |
| None | a5d30ba41f7d9acded2fd135aa830ac2f5c7e52dca0e776e658d37eaf9dfb033 |
| turbo-cache-control | no-preview |
| go-import | github.com/rethinkdb/rethinkdb-python git https://github.com/rethinkdb/rethinkdb-python.git |
| octolytics-dimension-user_id | 1229647 |
| octolytics-dimension-user_login | rethinkdb |
| octolytics-dimension-repository_id | 134593743 |
| octolytics-dimension-repository_nwo | rethinkdb/rethinkdb-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 134593743 |
| octolytics-dimension-repository_network_root_nwo | rethinkdb/rethinkdb-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2f945b7bb88421600e89dfefbb1548ad0a44781a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width