Page MenuHomePhabricator

VisualEditor hangs on "switching to source view" if got 503 error from API, cannot return to visual editor
Open, NormalPublic1 Story Points

Description

Saw while editing https://www.mediawiki.org/wiki/Extension:TimedMediaHandler in VE in Chrome; while switching from visual to source editor, got an error popup generic "http" error. Looking at console, see:

Failed to load resource: the server responded with a status of 503 ()
https://www.mediawiki.org/w/api.php

After closing the in-VE popup about the error, the "Switching to source editing…" popup is still sitting there, with progress indicator moving along. Everything remains grayed out in the UI, and there's no way to recover my edits that I can see.

If a transitory error happens during the switchover, it should abort cleanly back to the view I was on before.

Event Timeline

brion created this task.Oct 26 2017, 8:44 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 26 2017, 8:44 PM
brion added a comment.Oct 26 2017, 8:46 PM

Aha, actually "escape" key closes the dialog and appears to return me to the editor. Not discoverable visually.

brion added a comment.Oct 26 2017, 8:47 PM

Exact error dialog is "Error loading data from server: http."

Checking the POST return on the API request:

Request from 2601:1c0:5201:b82:15f1:e2ea:e8ee:1f99 via cp1053 cp1053, Varnish XID 829916032
Error: 503, Backend fetch failed at Thu, 26 Oct 2017 20:46:25 GMT

This is basically a duplicate of T179119. Although that task was filed first, this task contains far more useful information than the other one, so I'll merge that one into this.

Deskana triaged this task as Normal priority.Oct 27 2017, 11:22 AM
Deskana set the point value for this task to 1.
Deskana moved this task from To Triage to Freezer on the VisualEditor board.