Commit e1b03ab
committed
fix(page): serialize local image uploads to respect Notion rate limits
prepareLocalImageUploads fanned out up to four uploads in parallel,
but each upload fires three sequential official-API calls (create,
send, then poll), so even two in-flight uploads easily exceed
Notion's documented ~3 req/sec average limit. Without a shared rate
limiter or 429/Retry-After handling, multi-image sync hits HTTP 429
nondeterministically. Drop the concurrency limit to 1 so uploads
proceed serially and stay under the documented budget; full
rate-limit/backoff infrastructure can land separately.1 parent 38b6876 commit e1b03ab
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| |||
0 commit comments