Impact of network issues
Interrupted API calls can result in the loss of research processes, which is especially troubling in mobile offices or areas with unstable networks.
Stability Enhancement Program
- stop-and-go (computing): Backup the study state periodically and restore from the last successful iteration when error 502 is detected. Specific operation: execute window.backupSession() in the developer tools console to manually save the disk
- local cache: Modify the cache policy in src/lib/cache.js to extend the TTL for search results to 24 hours (default 2 hours)
- Degradation program:: Add "offlineMode":true to network settings to allow the use of historical cached data to generate base reports (requires prior completion of research on similar topics)
- Heartbeat Detection: Install the Network Watcher browser plug-in to automatically pause the research process when the delay exceeds 300ms.
Emergency Response Process
1) Take a screenshot of the research log immediately after the interruption 2) Export the har files in the network tab 3) Upload these files using the recovery.html tool that comes with the project 4) Follow the prompts to select "Continue from failure". In extreme cases, you can manually edit the searchStateJSON data in localStorage, but basic programming knowledge is required.
This answer comes from the articleKResearch: Generate Free In-depth Research Reports with Google Gemini APIsThe































