[sdk] App exits immediately on errors

Bug #1333394 reported by dobey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu UX
Fix Released
Medium
Olga Kemmet

Bug Description

When there is an error talking to the server, the app exists immediately. This is a bit disconcerting for the user, as it results in an app opening and immediately closing, thus giving the appearance of a crash. Instead, the app should be displaying an error message of some sort, asking them to try again later in the case of 500 errors from the server, or to explain that the requested product could not be found on the server, if a 404 happens when trying to get the package details.

The current behavior also makes it much more difficult to test the full work flow of purchasing an app, as pay-service and libpay do not expose any error state. To the user, this means the app effectively crashed and it's not possible to buy anything on the store.

-- SOLUTION --
Please use the attached error message for apps requiring Network connection and receiving a 5xx or 4xx HTTP error

Related branches

Mike Nagle (mikenagle)
summary: - App exits immediately on errors
+ [apps] App exits immediately on errors
Changed in ubuntu-ux:
assignee: nobody → Benjamin Keyser (bjkeyser)
Revision history for this message
dobey (dobey) wrote : Re: [apps] App exits immediately on errors

This also happens if one is trying to talk to the staging server, but has production credentials.

dobey (dobey)
Changed in pay-ui:
status: New → In Progress
assignee: nobody → Diego Sarmentero (diegosarmentero)
importance: Undecided → High
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:pay-ui at revision 5, scheduled for release in pay-ui, milestone Unknown

Changed in pay-ui:
status: In Progress → Fix Committed
John Lea (johnlea)
summary: - [apps] App exits immediately on errors
+ [sdk] App exits immediately on errors
Changed in ubuntu-ux:
assignee: Benjamin Keyser (bjkeyser) → Giorgio Venturi (giorgio-venturi)
importance: Undecided → Medium
status: New → Triaged
dobey (dobey)
Changed in pay-ui:
status: Fix Committed → Fix Released
Revision history for this message
Giorgio Venturi (giorgio-venturi-deactivatedaccount) wrote :

-- SOLUTION --

Please use the attached error message for apps requiring Network connection and receiving a 5xx or 4xx HTTP error

description: updated
Changed in ubuntu-ux:
status: Triaged → Fix Committed
Changed in ubuntu-ux:
assignee: Giorgio Venturi (giorgio-venturi) → Olga Kemmet (olga-kemmet)
dobey (dobey)
Changed in ubuntu-ux:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.