Open
Description
Getting the following error when trying to load a database; I saw #385 #389 with similar issues, but this happens to me when trying to use client.get_collection
. I noticed the solution pointed out here; however, I still get the same errors.
Traceback (most recent call last):
File "/home/revise/Documents/code/strava-notion.py", line 74, in <module>
update_notion()
File "/home/revise/Documents/code/strava-notion.py", line 66, in update_notion
notion_client, cv = get_notion_client()
^^^^^^^^^^^^^^^^^^^
File "/home/revise/Documents/code/strava-notion.py", line 57, in get_notion_client
cv = client.get_collection(notion_database)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/revise/Documents/code/lib/python3.11/site-packages/notion/client.py", line 185, in get_collection
coll = self.get_record_data(
^^^^^^^^^^^^^^^^^^^^^
File "/home/revise/Documents/code/lib/python3.11/site-packages/notion/client.py", line 162, in get_record_data
return self._store.get(table, id, force_refresh=force_refresh)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/revise/Documents/code/lib/python3.11/site-packages/notion/store.py", line 186, in get
self.call_get_record_values(**{table: id})
File "/home/revise/Documents/code/lib/python3.11/site-packages/notion/store.py", line 254, in call_get_record_values
results = self._client.post(
^^^^^^^^^^^^^^^^^^
File "/home/revise/Documents/code/lib/python3.11/site-packages/notion/client.py", line 260, in post
raise HTTPError(
requests.exceptions.HTTPError: Something went wrong. (400)
Are there any other workarounds?
Metadata
Metadata
Assignees
Labels
No labels