Skip to content

Detect expired API key errors from plugin commands and show helpful message#1709

Open
vzhang-stripe wants to merge 1 commit into
masterfrom
vzhang-apikey-expired-error
Open

Detect expired API key errors from plugin commands and show helpful message#1709
vzhang-stripe wants to merge 1 commit into
masterfrom
vzhang-apikey-expired-error

Conversation

@vzhang-stripe

@vzhang-stripe vzhang-stripe commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Plugin commands return unstructured RPC errors that don't match the typed RequestError check. This adds a broader string-based detection for "api_key_expired" in error messages, and surfaces the re-login guidance in plugin command paths too.

Motivation: https://jira.corp.stripe.com/browse/DX-11179

Reviewers

r? @
cc @stripe/developer-products

…essage

Plugin commands return unstructured RPC errors that don't match the typed
RequestError check. This adds a broader string-based detection for
"api_key_expired" in error messages, and surfaces the re-login guidance
in plugin command paths too.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Committed-By-Agent: claude
@vzhang-stripe vzhang-stripe requested a review from a team as a code owner June 23, 2026 21:44
@vzhang-stripe vzhang-stripe changed the title Detect expired API key errors from plugin commands and show helpful m… Detect expired API key errors from plugin commands and show helpful message Jun 24, 2026
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