Started getting "413 Client Error: Payload Too Large" every time #71
Replies: 2 comments
-
This should be fixed now. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I've just hit this error to, fyi
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been migrating from Evernote to Notion and this tool has been absolutely amazing. It was working perfectly to import several thousand records across several ENEX files. For some reason, it's stopped working now. I'm not sure if I've reached some sort of limit with Notion API usage or if something else is going on. I've tried running the script from different IP addresses, changing to Cloudfare DNS, using a VPN, and still the same issue. I've also tried with different ENEX files of different sizes and same things. Every time I run the script, the first record gets imported successfully and the second record errors out with the following:
Traceback (most recent call last):
File "/opt/homebrew/bin/enex2notion", line 8, in
sys.exit(main())
^^^^^^
File "/opt/homebrew/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/enex2notion/cli.py", line 47, in main
cli(sys.argv[1:])
File "/opt/homebrew/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 "/opt/homebrew/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 "/opt/homebrew/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 "/opt/homebrew/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 "/opt/homebrew/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 "/opt/homebrew/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/enex2notion/enex_uploader.py", line 20, in upload_note
new_page = _make_page(note, root)
^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/enex2notion/enex_uploader.py", line 59, in _make_page
root.collection.add_row(
File "/opt/homebrew/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/notion/collection.py", line 202, in add_row
return self.add_row_block(columns=columns)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/notion/collection.py", line 219, in add_row_block
with self._client.as_atomic_transaction():
File "/opt/homebrew/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/notion/client.py", line 469, in exit
self.client.submit_transaction(operations)
File "/opt/homebrew/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/notion/client.py", line 323, in submit_transaction
self.post("submitTransaction", data)
File "/opt/homebrew/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/ratelimit/decorators.py", line 113, in wrapper
return func(*args, **kargs)
^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/ratelimit/decorators.py", line 80, in wrapper
return func(*args, **kargs)
^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/notion/client.py", line 275, in post
return self._post(endpoint, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/enex2notion/0.2.25/libexec/lib/python3.11/site-packages/notion/client.py", line 298, in _post
response.raise_for_status()
File "/opt/homebrew/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
So I can keep re-running it and each time the next one record gets imported successfully...and I guess eventually the 1471 records left to import will be completed, but I'd like to figure out why it's failing all of a sudden.
Beta Was this translation helpful? Give feedback.
All reactions