Improve Stripe error mapping for invoice fetches #15
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Invoice fetch failures from Stripe are currently surfaced as internal server errors. A missing invoice, permission issue, or other 4xx from Stripe is collapsed into a generic 500, which makes the API response misleading and harder for clients to handle correctly.
Current behavior
Billing::stripe_get_invoicecalls Stripe and useserror_for_status()api::get_invoiceconverts that error intoApiError::InternalExpected behavior