-
Notifications
You must be signed in to change notification settings - Fork 11
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
Rate limiting during OneNote import #15
Comments
@altano what's the state of the notes that did get converted? I didn't think about service limits so I might have to get Notebooks + section groups + sections in a single request — this might help make it a bit better. But some kind of throttling is still required in case of getting pages. |
UPDATE: Oops, I didn't originally test all these with the new import zip file (I got tripped up by the fact that deleting all my notebooks doesn't delete all my notes). Sorry for the noise. I went ahead and updated everything below to reflect the new import. It's looking improved over the last time I tried this a while ago. I think this is almost usable for me! These are fixed:
I'm still seeing these but that might be caused by the 429 errors: These I can't test:
|
Oh nice, were you able to fix this @thecodrr ? I actually have an open PR with the graph sdk because they should be handling this better on their end: microsoftgraph/msgraph-sdk-javascript#1514 |
@altano yes! give it a try in v2.1.2 of the Importer. It should work much better. |
Describe the bug
During an import of my OneNote notebooks the network requests started to fail with HTTP error code 429 (rate limiting).
To Reproduce
Steps to reproduce the behavior:
graph.microsoft.com
started returning429
http errors:NOTE: Import is actually still ongoing and at the "Transforming pages" phase, but will definitely not complete successfully given all the network errors.
Expected behavior
Import completes successfully
Desktop (please complete the following information):
Additional context
429
http error response to requests # 292, 310, 646, and then EVERY request starting at # 938. I think I'm hitting the documented OneNote service limits. I would guess that at first I'm occasionally hitting the per-minute limit but at some point I hit the per-hour rate limit of 800.Retry-After
http response header mentioned in the documentation is NOT present in my http responses.Ideas to fix it... I'm just brainstorming
The text was updated successfully, but these errors were encountered: