GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Show diagnostic events when a transaction fails on-chain by fnando · Pull Request #2700 · stellar/stellar-cli

Conversation

@fnando

@fnando fnando commented Aug 24, 2026

Copy link
Copy Markdown
Member

What

When a transaction passes simulation but fails on-chain, the CLI now prints the transaction's diagnostic events (host/contract error, message, and any logs) on stderr, across contract invoke, tx send, and the tx op commands. Previously only the TransactionResult result codes were shown. Closes #495.

Why

The reason for a failure was never displayed — the diagnostic events were decoded and available on the RPC response but discarded before reaching the user.

Before (main):

🌎 Sending transaction…
❌ error: transaction submission failed: Some(
    TransactionResult {
        fee_charged: 10858,
        result: TxFailed(
            VecM([OpInner(InvokeHostFunction(ResourceLimitExceeded))]),
        ),
        ext: V0,
    },
)

After (this branch):

🌎 Sending transaction…
❌ Error event: [{"symbol":"error"},{"error":{"budget":"exceeded_limit"}}] = {"vec":[{"string":"operation instructions exceeds amount specified"},{"u64":"3880"},{"u64":"1"}]}
❌ error: transaction submission failed: Some(
    TransactionResult { ... InvokeHostFunction(ResourceLimitExceeded) ... },
)

The new Error event line surfaces the host's message (operation instructions exceeds amount specified, needs 3880 vs 1 allowed) — absent before.

Known limitations

Only Soroban transactions have diagnostic events; classic ops print nothing extra. The event line uses raw ScVal JSON rather than fully decoded text.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Copilot AI balanced review requested due to automatic review settings August 24, 2026 15:03
@github-project-automation github-project-automation Bot added this to DevX Aug 24, 2026
@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX Aug 24, 2026
Copilot started reviewing on behalf of fnando August 24, 2026 15:03
View session
Copilot AI reviewed Aug 24, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull request overview

Surfaces Soroban diagnostic events when on-chain transaction submission fails.

Changes:

  • Adds shared failure-event recovery after polling.
  • Formats error, contract, and log diagnostics.
  • Applies behavior to invoke, send, and transaction operation commands.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
cmd/soroban-cli/src/tx.rs Adds shared submission and event recovery.
cmd/soroban-cli/src/log/event.rs Formats failed transaction diagnostics.
cmd/soroban-cli/src/commands/tx/send.rs Uses enhanced submission for tx send.
cmd/soroban-cli/src/commands/tx/args.rs Uses enhanced submission for transaction operations.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread cmd/soroban-cli/src/tx.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@fnando
fnando marked this pull request as draft August 24, 2026 21:22
fnando added 2 commits August 25, 2026 23:52
@fnando
Show detailed events when a transaction fails.
be48f0b
@fnando
Read failed transaction events from diagnostics field.
363cb47
@fnando
fnando force-pushed the detailed-transaction-submission-errors branch from 1d19742 to 363cb47 Compare August 26, 2026 03:01
@fnando fnando self-assigned this Aug 26, 2026
@fnando fnando moved this from Backlog (Not Ready) to Needs Review in DevX Aug 26, 2026
@fnando
fnando marked this pull request as ready for review August 26, 2026 03:30
@fnando
fnando enabled auto-merge (squash) August 26, 2026 03:31
@fnando
fnando requested review from a team and leighmcculloch August 26, 2026 03:31
leighmcculloch
leighmcculloch approved these changes Aug 26, 2026
View reviewed changes

@leighmcculloch leighmcculloch left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Couple questions otherwise looks good to me.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread cmd/soroban-cli/src/tx.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread cmd/soroban-cli/src/tx.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@fnando
Clarify when send helper logs transaction events.
18e3428
@fnando
fnando disabled auto-merge August 26, 2026 13:30
@fnando
fnando enabled auto-merge (squash) August 26, 2026 13:36
@fnando
fnando merged commit b37d549 into main Aug 26, 2026
229 of 233 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@fnando
fnando deleted the detailed-transaction-submission-errors branch August 26, 2026 13:38
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in DevX Aug 26, 2026
Uthen242
Uthen242 approved these changes Sep 16, 2026
View reviewed changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@leighmcculloch leighmcculloch leighmcculloch approved these changes
Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
+1 more reviewer
@Uthen242 Uthen242 Uthen242 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@fnando fnando

Labels

None yet

Projects

DevX
Status: Done

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

soroban-cli: Print more detailed transaction submission errors

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@fnando @leighmcculloch @Uthen242
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.