I am uploading 1,000+ webclips and all is going well until I reach 752, when I get this message in the log below.
Any ideas as to what went wrong? It seems the clip may have been too large, but not sure how. How should I continue the process and skip this file, without restarting again?
Many thanks in advance!
Log excerpt
INFO: Uploading note 750 out of 1086 'Element 2'
INFO: Uploading note 751 out of 1086 'alectro.io | Elegant and verifiable emissions insight for positive businesses.'
INFO: Uploading note 752 out of 1086 'Watr - The Smart Water Monitor'
WARNING: Failed to upload note 'Watr - The Smart Water Monitor' to Notion! Retrying...
WARNING: Failed to upload note 'Watr - The Smart Water Monitor' to Notion! Retrying...
WARNING: Failed to upload note 'Watr - The Smart Water Monitor' to Notion! Retrying...
WARNING: Failed to upload note 'Watr - The Smart Water Monitor' to Notion! Retrying...
Traceback (most recent call last):
File "/usr/local/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/enex2notion/enex_uploader.py", line 28, in upload_note
upload_block(new_page, block)
File "/usr/local/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/enex2notion/enex_uploader_block.py", line 10, in upload_block
new_block = root.children.add_new(block.type, **block.attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/notion/block.py", line 136, in add_new
with self._client.as_atomic_transaction():
File "/usr/local/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/notion/client.py", line 469, in __exit__
self.client.submit_transaction(operations)
File "/usr/local/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/notion/client.py", line 323, in submit_transaction
self.post("submitTransaction", data)
File "/usr/local/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/ratelimit/decorators.py", line 113, in wrapper
return func(*args, **kargs)
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/ratelimit/decorators.py", line 80, in wrapper
return func(*args, **kargs)
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/notion/client.py", line 275, in post
return self._post(endpoint, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/notion/client.py", line 298, in _post
response.raise_for_status()
File "/usr/local/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 413 Client Error: Payload Too Large for url: https://www.notion.so/api/v3/submitTransaction
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/enex2notion", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/enex2notion/cli.py", line 47, in main
cli(sys.argv[1:])
File "/usr/local/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/enex2notion/cli.py", line 32, in cli
_process_input(enex_uploader, args.enex_input)
File "/usr/local/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/enex2notion/cli.py", line 42, in _process_input
enex_uploader.upload_notebook(path)
File "/usr/local/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/enex2notion/cli_upload.py", line 56, in upload_notebook
self.upload_note(note, note_idx)
File "/usr/local/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/enex2notion/cli_upload.py", line 79, in upload_note
_upload_note(self.notebook_root, note, note_blocks)
File "/usr/local/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/enex2notion/cli_upload.py", line 103, in _upload_note
upload_note(notebook_root, note, note_blocks)
File "/usr/local/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/enex2notion/enex_uploader.py", line 35, in upload_note
raise NoteUploadFailException
enex2notion.utils_exceptions.NoteUploadFailException
enex2notion version
0.2.25
What OS are you using?
MacOS
OS Version / Linux distribution
10
Bug description
I am uploading 1,000+ webclips and all is going well until I reach 752, when I get this message in the log below.
Any ideas as to what went wrong? It seems the clip may have been too large, but not sure how. How should I continue the process and skip this file, without restarting again?
Many thanks in advance!
Log excerpt