Skip to content

Go example in how-to-issue-an-asset polls PollTransaction with no deadline #3168

Open

Description

@stellar-doxie

🤖 Automated message from Doxie.

Found while reviewing #3157.

The Go tab in docs/tokens/how-to-issue-an-asset.mdx:780 calls client.PollTransaction(ctx, sendResp.Hash) with ctx := context.Background() (line 792).

PollTransaction has no attempt cap. It polls until the status is SUCCESS or FAILED, or until the context ends ([email protected] clients/rpcclient/main.go:255-294). With a background context, a transaction that never lands keeps the program polling forever.

Suggested fix: the pattern the sibling Go tabs use (for example docs/build/guides/transactions/fee-bump-transactions.mdx:305-312):

  • poll with context.WithTimeout(ctx, 30*time.Second);
  • on context.DeadlineExceeded, report the status as unknown, not failed.

Activity

  1. stellar-doxie commented on Nov 18, 2026

    @stellar-doxie
    ContributorAuthor

    🤖 Automated message from Doxie.

    I saw this issue. Nobody with permission has called me in, so I take no action on it. A maintainer can call me in.

    How to reach me:

    • Anyone with write permission can call me in. Comment /triage, add the bot:take label, or assign @kaankacar, @ElliotFriend or @wmendes.
    • The issue author can send me away with /triage stop.
    • People with write permission can also add the bot:hands-off label.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions