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

Authorisation problem - can you please help? #1

Closed
AJJCAIRNS opened this issue Mar 17, 2022 · 1 comment
Closed

Authorisation problem - can you please help? #1

AJJCAIRNS opened this issue Mar 17, 2022 · 1 comment

Comments

@AJJCAIRNS
Copy link

Traceback (most recent call last):
File "D:\PycharmProjects\notion-graph-view\main.py", line 26, in
read_page(my_token_v2, my_url)
File "D:\PycharmProjects\notion-graph-view\main.py", line 10, in read_page
client = NotionClient(token_v2=token_v2)
File "D:\PycharmProjects\notion-graph-view\venv\lib\site-packages\notion\client.p
y", line 95, in init
self._update_user_info()
File "D:\PycharmProjects\notion-graph-view\venv\lib\site-packages\notion\client.p
y", line 126, in _update_user_info
records = self.post("loadUserContent", {}).json()["recordMap"]
File "D:\PycharmProjects\notion-graph-view\venv\lib\site-packages\notion\client.p
y", line 265, in post
response.raise_for_status()
File "D:\PycharmProjects\notion-graph-view\venv\lib\site-packages\requests\models
.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://www.
notion.so/api/v3/loadUserContent

@AJJCAIRNS
Copy link
Author

Remove curly brackets in the config file and it connects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant