Open
Description
When I am making a client.get_block(full_url)
call, I am getting the below:
Got 400 error attempting to POST to loadPageChunk, with data: {
"pageId": "***",
"limit": 100000,
"cursor": {
"stack": []
},
"chunkNumber": 0,
"verticalColumns": false
}
[ERROR] HTTPError: Invalid input.
Traceback (most recent call last):
File "/var/task/get_kitchens_function.py", line 15, in lambda_handler
page = client.get_block(full_url)
File "/opt/python/lib/python3.7/site-packages/notion/client.py", line 169, in get_block
block = self.get_record_data("block", block_id, force_refresh=force_refresh)
File "/opt/python/lib/python3.7/site-packages/notion/client.py", line 162, in get_record_data
return self._store.get(table, id, force_refresh=force_refresh)
File "/opt/python/lib/python3.7/site-packages/notion/store.py", line 184, in get
self.call_load_page_chunk(id)
File "/opt/python/lib/python3.7/site-packages/notion/store.py", line 286, in call_load_page_chunk
recordmap = self._client.post("loadPageChunk", data).json()["recordMap"]
File "/opt/python/lib/python3.7/site-packages/notion/client.py", line 262, in post
"message", "There was an error (400) submitting the request."
I didn't change anything in my code and this just started to happen. I suspected it was a token_V2 problem but just checked and it isn't. I saw #11 from back then and looks like there might be an API structural change.
Would love to hear all of your thoughts! Trying to get this resolved because a product of mine depends on this! Thank you!
Metadata
Metadata
Assignees
Labels
No labels