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

Page Threw Exception Error 1101 #27

Open
shyrz opened this issue Sep 22, 2020 · 9 comments
Open

Page Threw Exception Error 1101 #27

shyrz opened this issue Sep 22, 2020 · 9 comments

Comments

@shyrz
Copy link

shyrz commented Sep 22, 2020

My pageId is be69a36ae0a447bc8c3d36a803be48da, and it threw exception error 1101.
The subpage in it works well.

@shyrz
Copy link
Author

shyrz commented Sep 22, 2020

After 10mins it works... but threw the same error mins later

@shyrz
Copy link
Author

shyrz commented Sep 22, 2020

image

@dvdsgl
Copy link
Contributor

dvdsgl commented Sep 22, 2020

I'm getting the same with https://notion-api.splitbee.io/v1/table/015fe5ac66da487a934b9aacc2ef9dea

I tried master locally and it worked, but deployed master failed when deployed.

@shyrz
Copy link
Author

shyrz commented Sep 24, 2020

In wrangler dev, the true error is:

Uncaught (in promise)
TypeError: Cannot read property 'value' of undefined
    at Object.t.getCollectionData (worker.js:1:4367)
    at Object.t.pageRoute [as handler] (worker.js:21:5735)
    at async c (worker.js:1:6415)
Uncaught (in response)
TypeError: Cannot read property 'value' of undefined

@dvdsgl
Copy link
Contributor

dvdsgl commented Oct 5, 2020

I avoided the bug by removing the Person column in my table.

@viktorfa
Copy link

viktorfa commented Mar 4, 2021

I fixed this by replacing limit: 999 with limit: 30 on line 19 in src/api/notion.ts.

const loadPageChunkBody = {
  limit: 30,
  cursor: { stack: [] },
  chunkNumber: 0,
  verticalColumns: false,
};

Maybe Notion is experimenting with rate limits and blocking requests with too high limit?

@zhigang1992
Copy link

We also had a table running into

Error 1020

https://notion-api.splitbee.io/v1/table/29e821f336814cb394273cf275b1394b

image

@tobiaslins
Copy link
Member

@zhigang1992 we started blocking specific pages/requests due non fair use limits. You send over 2 million requests to that table in the last month.
Feel free to self host this worker in that case (or drastically reduce requests send to us)

@zhigang1992
Copy link

zhigang1992 commented Sep 19, 2021

@tobiaslins

Wow, we are terribly sorry, we were under the wrong impression that it will cache on the browser end.

So we just kept calling fetch. 🤦

We'd like to pay for that cost, please let us know how. My email is zhigang1992@gmail.com

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

5 participants