Skip to content

Prevent crashes from API timeouts & fix build issues related to pipeline update#20

Merged
LinaBell merged 6 commits intomainfrom
dev
Apr 16, 2026
Merged

Prevent crashes from API timeouts & fix build issues related to pipeline update#20
LinaBell merged 6 commits intomainfrom
dev

Conversation

@LinaBell
Copy link
Copy Markdown
Contributor

Summary:

  • Add res.headersSent guard in errorHandler to prevent double-send crashes when Topia public API returns 502 timeout
  • Add unhandledRejection and uncaughtException process handlers as safety net
  • Fixes intermittent app crashes during API timeouts

Test plan:

  • Verify app continues to handle normal errors correctly
  • Verify app does not crash when an SDK call times out mid-request
  • Verify error is logged but response completes gracefully when headers already sent

Generated with Claude Code (https://claude.com/claude-code)

Terraform and others added 6 commits April 15, 2026 20:21
- Add res.headersSent guard in errorHandler to prevent double-send crashes
- Add unhandledRejection and uncaughtException process handlers in index.ts
- Fixes app crashes when Topia public API returns 502 timeout

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@LinaBell LinaBell changed the title Prevent crashes from API timeouts Prevent crashes from API timeouts & fix build issues related to pipeline update Apr 16, 2026
@LinaBell LinaBell merged commit 7b67c07 into main Apr 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant