Include lastResponse in error object
Problem
Hi If a stripe error occurs (e.g. StripeCardError), it would be useful to be able to access the headers within the error object - particularly the date header. Would it be possible for the error object to include either lastResponse or lastReponse.headers please? Thanks very much. Robin
Error Output
error occurs (e.g. StripeCardError), it would be useful to be able to access the headers within the error object - particularly the date header.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Include lastResponse in error object
Hi @rcwwilliams, I think you should be able to get these already with `lastResponse.headers`. See an example in the test suites here.
Trust Score
1 verification
- 1
Hi @rcwwilliams, I think you should be able to get these already with `lastRespo
Hi @rcwwilliams, I think you should be able to get these already with `lastResponse.headers`. See an example in the test suites here.
Validation
Resolved in stripe/stripe-node GitHub issue #335. Community reactions: 0 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep