Error in API response is empty when previewing transaction for SM subscription purchase
Bug
Summary
Empty object is returned in the API response during transaction preview on SM subscription purchase flow:
errors: {}
Steps to reproduce
- Create a new customer and a new group for the customer on GitLab.com
- Purchase an addon with invalid City / Zip code
- Go to SM purchase flow: http://localhost:5000/subscriptions/new?plan_id=2c92c0f97700a4f7017704c7fe465919
What is the current bug behavior?
A generic error message is shown:
Could not get the data properly. If the problem persists, contact support.
What is the expected correct behavior?
Error message returned should have details about the failure.