Skip to content

Fixed crash on redeploy due to openai failure#263

Merged
sfreeman422 merged 1 commit into
masterfrom
fix/redeploy-errors
Jun 23, 2026
Merged

Fixed crash on redeploy due to openai failure#263
sfreeman422 merged 1 commit into
masterfrom
fix/redeploy-errors

Conversation

@sfreeman422

@sfreeman422 sfreeman422 commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

This pull request improves error handling during the application startup process. Specifically, it ensures that any errors encountered when redeploying Moonbeam are properly logged instead of being silently ignored.

Error handling improvements:

  • Wrapped the call to aiService.redeployMoonbeam() in a .catch() block to log any errors using indexLogger.error, ensuring failures are visible in the logs.

Copilot AI review requested due to automatic review settings June 23, 2026 16:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request improves backend startup reliability by preventing unhandled promise rejections during application boot when aiService.redeployMoonbeam() fails (e.g., due to OpenAI/Gemini errors), and ensures such failures are visible in logs.

Changes:

  • Wrap aiService.redeployMoonbeam() with a .catch() at startup to avoid unhandled rejections.
  • Log redeploy failures via indexLogger.error instead of silently ignoring them.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sfreeman422 sfreeman422 merged commit 053c747 into master Jun 23, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants