Commit 3859501
committed
fix(notion-fetch): improve logging and timeout for skipped content (Phase 1)
Phase 1 of fixing issue #95: Content being skipped during fetch
Changes:
1. Add detailed skip reason logging in generateBlocks.ts
- Shows specific reason why each page is skipped (cache hit, timestamp, path change, etc.)
- Helps diagnose incorrect skip behavior
- Includes "should not skip" warnings for potential bugs
2. Enhanced sub-page timeout error logging in fetchNotionData.ts
- Display error type and detailed message
- Add helpful hints when timeout occurs
- Better categorization of failures (timeout vs API error vs permission)
3. Increase sub-page fetch timeout from 10s to 30s
- Handles slow Notion API responses better
- Reduces false positive timeouts for complex pages
- Particularly helpful for pages with large blocks or nested children
Benefits:
- Immediate diagnostic value for debugging skipped pages
- Fewer legitimate pages timing out and being skipped
- Clear visibility into incremental sync behavior
Related: ISSUE_95_PLAN.md1 parent b0b9f4b commit 3859501
2 files changed
+46
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
190 | 192 | | |
191 | 193 | | |
192 | 194 | | |
| |||
221 | 223 | | |
222 | 224 | | |
223 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
224 | 236 | | |
225 | | - | |
| 237 | + | |
226 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
227 | 248 | | |
228 | 249 | | |
229 | 250 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
712 | 712 | | |
713 | 713 | | |
714 | 714 | | |
715 | | - | |
716 | | - | |
717 | | - | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
718 | 738 | | |
719 | 739 | | |
720 | 740 | | |
| |||
0 commit comments