Giter Site home page Giter Site logo

Comments (4)

vzhd1701 avatar vzhd1701 commented on June 16, 2024

What import error are you getting?

from enex2notion.

ShrimpyChips avatar ShrimpyChips commented on June 16, 2024

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.

ShrimpyChips avatar ShrimpyChips commented on June 16, 2024

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.

vzhd1701 avatar vzhd1701 commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.