Skip to content

Update info endpoint fetching to handle updated core response#364

Merged
sisuresh merged 1 commit intostellar:mainfrom
sisuresh:info
Feb 17, 2026
Merged

Update info endpoint fetching to handle updated core response#364
sisuresh merged 1 commit intostellar:mainfrom
sisuresh:info

Conversation

@sisuresh
Copy link
Contributor

stellar-core can respond with {"error":"Core is booting, try again later"} now, so handle that scenario.

Copy link
Contributor

@SirTyson SirTyson left a comment

Choose a reason for hiding this comment

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

LGTM

@sisuresh sisuresh merged commit 50753bd into stellar:main Feb 17, 2026
7 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the /info endpoint handling to gracefully handle a new error response format from stellar-core during boot.

Changes:

  • Modified GetInfo() to detect and retry when stellar-core returns a boot error response
  • Refactored GetState() and GetStatusOrState() to call GetInfo() directly, removing duplicate retry logic

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

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.

3 participants