Skip to content

Improve error handling, diagnostics, and make api_version required#257

Draft
tonyxiao wants to merge 2 commits intov2from
better-errors
Draft

Improve error handling, diagnostics, and make api_version required#257
tonyxiao wants to merge 2 commits intov2from
better-errors

Conversation

@tonyxiao
Copy link
Copy Markdown
Collaborator

@tonyxiao tonyxiao commented Apr 8, 2026

Summary

  • Improve error handling in source-stripe with better failure typing and error propagation
  • Harden local test tooling and improve diagnostics (logging, request tracing)
  • Make api_version required in source-stripe config schema — uses .default(BUNDLED_API_VERSION) so callers get a resolved version without needing to pass it explicitly; removes scattered fallbacks and hardcoded Stripe-Version header

Test plan

  • pnpm test — all unit tests pass
  • pnpm build — no type errors
  • pnpm lint — no lint errors

🤖 Generated with Claude Code

tonyxiao and others added 2 commits April 8, 2026 17:52
- engine: detect trace_type=error messages in withLoggedStream, log with logger.error + track errorCount
- source-stripe: add describeApiKey() helper (prefix + fingerprint), log client init/setup/read entry points
- source-stripe: make api_version .default(BUNDLED_API_VERSION) instead of .optional(); remove scattered ?? fallbacks
- src-list-api: collect failedStreams[] and emit a single summary instead of per-failure console.error

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Committed-By-Agent: claude
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Committed-By-Agent: claude
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