Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: #99

Closed
darknesshub opened this issue Sep 1, 2023 · 0 comments
Closed

[Bug]: #99

darknesshub opened this issue Sep 1, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@darknesshub
Copy link

enex2notion version

0.2.26

What OS are you using?

Windows

OS Version / Linux distribution

Windows 10

Bug description

Uploading a document with images is causing an error. It works fine with plain text, but even with images smaller than 5MB, the error still occurs.

Log excerpt

Traceback (most recent call last):
  File "enex2notion\enex_uploader.py", line 28, in upload_note
  File "enex2notion\enex_uploader_block.py", line 16, in upload_block
  File "enex2notion\enex_uploader_block.py", line 54, in _upload_file
  File "notion\maps.py", line 50, in fset
  File "notion\records.py", line 115, in set
  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 290, in _post
requests.exceptions.HTTPError: Something went wrong. (400)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "enex2notion\__main__.py", line 4, in <module>
  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
[8628] Failed to execute script '__main__' due to unhandled exception!
@darknesshub darknesshub added the bug Something isn't working label Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant