Comments (4)
What import error are you getting?
from enex2notion.
Here is what I get:
Network error: 413 Client Error: Payload Too Large for url: https://www.notion.so/api/v3/submitTransaction
Then it retries a number of times, then you get this:
Traceback (most recent call last):
File "enex2notion\enex_uploader.py", line 28, in upload_note
File "enex2notion\enex_uploader_block.py", line 10, in upload_block
File "notion\block.py", line 141, in add_new
File "notion\client.py", line 469, in exit
File "notion\client.py", line 323, in submit_transaction
File "ratelimit\decorators.py", line 113, in wrapper
File "ratelimit\decorators.py", line 80, in wrapper
File "notion\client.py", line 275, in post
File "notion\client.py", line 298, in _post
File "requests\models.py", line 1021, in raise_for_status
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 "enex2notion_main_.py", line 4, in
File "enex2notion\cli.py", line 47, in main
File "enex2notion\cli.py", line 32, in cli
File "enex2notion\cli.py", line 42, in _process_input
File "enex2notion\cli_upload.py", line 56, in upload_notebook
File "enex2notion\cli_upload.py", line 79, in upload_note
File "enex2notion\cli_upload.py", line 103, in _upload_note
File "enex2notion\enex_uploader.py", line 35, in upload_note
enex2notion.utils_exceptions.NoteUploadFailException
[16124] Failed to execute script 'main' due to unhandled exception!
from enex2notion.
Also, the file isn't actually large. It's a web clip. When exported by itself as an ENEX it's only 354kb.
It seems to have linked images that either don't exist or that for whatever reason it shows as broken image links., I've noticed that that seems to cause the same error for a number of web clips.
Export flat patterns from SOLIDWORKS part or assembly components.txt
Here is the ENEX for that one note as a TXT (github wont allow ENEX as an attachment)
from enex2notion.
This should be fixed now. I also added --skip-failed option to avoid crashes when upload error occurs. You can use --log option to keep track of failed notes.
from enex2notion.
Related Issues (20)
- [Bug]: ERROR: Got 400 error attempting to POST to submitTransaction HOT 7
- [Bug]: parse error HOT 4
- [Bug]: Problem downloading https://sourceforge.mirrorservice.org/l/li/libpng/libpng16/1.6.4 HOT 6
- [Bug]: Notion page not created if Evernote note has no content
- [Bug]: SSLError HOT 1
- Support new fitz
- [Bug]: Imported notes are duplicating HOT 1
- Started getting "413 Client Error: Payload Too Large" every time HOT 2
- [Bug]: AttributeError: 'dict' object has no attribute 'encode' HOT 3
- [Bug]: module 'numpy' has no attribute 'ndarray'
- [Bug]: [36444] Failed to execute script '__main__' due to unhandled exception! HOT 1
- 最新迁移工具, 功能强大,免费使用
- [Bug]: .HTTPError: 403 HOT 9
- [Bug]: No imported pages in Notion HOT 4
- [Bug]: Error when connection timeout/failure occurs HOT 1
- [Bug]: the number in note title disappear
- [Bug]: Parse error HOT 2
- [Bug]: Bad file descriptor when uploading attached images HOT 4
- [Bug]:
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enex2notion.