Skip to content

fix: add billing link to insufficient_credit error hint#139

Merged
somanshreddy merged 1 commit into
mainfrom
05-11-insufficient_credit_hint
May 12, 2026
Merged

fix: add billing link to insufficient_credit error hint#139
somanshreddy merged 1 commit into
mainfrom
05-11-insufficient_credit_hint

Conversation

@somanshreddy
Copy link
Copy Markdown
Collaborator

Description

Users hitting insufficient_credit errors only saw "Check your credit balance: heygen user me get", with no guidance on where to actually purchase more credits. This adds a direct link to the API credits settings page (https://app.heygen.com/settings?nav=API) so users can resolve the issue without hunting through the HeyGen UI.

Discovered via PostHog error analysis: insufficient_credit on video-agent create was the #1 revenue-blocking error this week (48 distinct installs).

Testing

  • go test ./internal/errors/ -run TestHintForAPICode passes (test uses Contains assertion, so the appended URL doesn't break it)
  • No other tests reference this hint string

🤖 Generated with Claude Code

Users hitting insufficient_credit errors had no way to discover
where to purchase API credits. The hint now includes a direct link
to the API credits settings page.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@somanshreddy somanshreddy merged commit cb95b6c into main May 12, 2026
9 checks passed
@somanshreddy somanshreddy deleted the 05-11-insufficient_credit_hint branch May 12, 2026 00:31
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.

1 participant