Error handling: Status text missing for the "insufficient funds" case
Created by: hacklschorsch
Trying to buy storage-time with a card with insufficient funds currently results in a "400" HTTP error without any further information.
Having a statusText
to display (frontend code here) would be helpful.
I look at Monitoring for around that time and it seems it was indeed "insufficient funds":
2022-03-01 10:07:51 POST /v1/stripe/charge
2022-03-01 10:07:51 "Stripe createCharge failed:"
2022-03-01 10:07:51 "Your card has insufficient funds."
The related error on the server also has no statusText:
2022-03-01 10:07:51
Status: 400 1.732255581s
Maybe related to #50 (closed). Maybe already fixed by #111.