Page MenuHomePhabricator

VisualEditor: When API returns HTTP 500, present a more useful error message to the user
Closed, ResolvedPublic

Description

I don't know what it should be, but the following is not very clear:

Error loading data from server: error. Would you like to retry?


Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=39057
https://bugzilla.wikimedia.org/show_bug.cgi?id=43147

Details

Reference
bz63149

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:06 AM
bzimport set Reference to bz63149.

(In reply to Roan Kattouw from comment #0)

I don't know what it should be, but the following is not very clear:

Error loading data from server: error. Would you like to retry?

Maybe:

The editor's contact with the server failed (5xx). Would you like to retry?

?

Change 157775 had a related patch set uploaded by Jforrester:
Add debugging help to VisualEditor

https://gerrit.wikimedia.org/r/157775

Change 157775 merged by jenkins-bot:
Add debugging help to VisualEditor

https://gerrit.wikimedia.org/r/157775

With the above patch, the former message:

Error loading data from server: parsoidserver-http-bad-status:
500. Would you like to retry?

… turns into:

Error loading data from server: parsoidserver-http-bad-status:
500: Page Fetch failure for "BADURL": Error: getaddrinfo
ENOTFOUND. Would you like to retry?

Which is not ideal, but at least describes things a bit. Marking this as FIXED.