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]: 403 Client Error #35

Closed
alex0103-git opened this issue May 26, 2022 · 2 comments
Closed

[Bug]: 403 Client Error #35

alex0103-git opened this issue May 26, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@alex0103-git
Copy link

enex2notion version

enex2notion 0.2.12

What OS are you using?

MacOS

OS Version / Linux distribution

Monterey 12.3.1

Bug description

While uploading a file (.enex) I get an error 403

Log excerpt

Traceback (most recent call last):
  File "enex2notion/__main__.py", line 4, in <module>
  File "enex2notion/cli.py", line 175, in main
  File "enex2notion/cli.py", line 134, in cli
  File "enex2notion/cli.py", line 165, in get_root
  File "enex2notion/enex_uploader.py", line 26, in get_notion_client
  File "notion/client.py", line 96, in __init__
  File "notion/client.py", line 127, in _update_user_info
  File "notion/client.py", line 270, in post
  File "requests/models.py", line 960, in raise_for_status
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://www.notion.so/api/v3/loadUserContent
[3314] Failed to execute script '__main__' due to unhandled exception!
@alex0103-git alex0103-git added the bug Something isn't working label May 26, 2022
@sypianski
Copy link

sypianski commented May 26, 2022

Today I started getting an almost identical error.

Traceback (most recent call last):
  File "/opt/homebrew/bin/enex2notion", line 8, in <module>
    sys.exit(main())
  File "/opt/homebrew/Cellar/enex2notion/0.2.12/libexec/lib/python3.10/site-packages/enex2notion/cli.py", line 175, in main
    cli(sys.argv[1:])
  File "/opt/homebrew/Cellar/enex2notion/0.2.12/libexec/lib/python3.10/site-packages/enex2notion/cli.py", line 134, in cli
    root = get_root(args.token, args.root_page)
  File "/opt/homebrew/Cellar/enex2notion/0.2.12/libexec/lib/python3.10/site-packages/enex2notion/cli.py", line 165, in get_root
    client = get_notion_client(token)
  File "/opt/homebrew/Cellar/enex2notion/0.2.12/libexec/lib/python3.10/site-packages/enex2notion/enex_uploader.py", line 26, in get_notion_client
    return NotionClient(token_v2=token)
  File "/opt/homebrew/Cellar/enex2notion/0.2.12/libexec/lib/python3.10/site-packages/notion/client.py", line 96, in __init__
    self._update_user_info()
  File "/opt/homebrew/Cellar/enex2notion/0.2.12/libexec/lib/python3.10/site-packages/notion/client.py", line 127, in _update_user_info
    records = self.post("loadUserContent", {}).json()["recordMap"]
  File "/opt/homebrew/Cellar/enex2notion/0.2.12/libexec/lib/python3.10/site-packages/notion/client.py", line 270, in post
    response.raise_for_status()
  File "/opt/homebrew/Cellar/enex2notion/0.2.12/libexec/lib/python3.10/site-packages/requests/models.py", line 960, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://www.notion.so/api/v3/loadUserContent

enex2notion 0.2.13
MacOS Monterey 12.4

@vzhd1701
Copy link
Owner

It was a Notion server-side hiccup, it should be resolved by now. Please try again.

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

3 participants