Topic on Extension talk:VisualEditor

Error when editing a page: Error loading data from server: HTTP 0. Would you like to retry?

3
Ti infotrad (talkcontribs)

System information:

OS: Windows Server 2008

Mediawiki: 1.27.3

PHP: 5.6.30

MySQL: 5.7.18

VisualEditor: 0.1.0

nodejs: v8.9.1

Parsoid: 0.8.0

Symptoms:

  • Editing a page with VisualEditor, received the following error:
Error loading data from server: HTTP 0. Would you like to retry?

The page itself is not very large (14 KB in wikicode). Using direct corresponding api call in the browser bar (http://xxx/api.php?action=visualeditor&format=json&paction=parse&page=...) returns a result after almost one minute;

  • Issue with 30 s ajax timeout in \mediawiki-1.27.3\resources\src\mediawiki\api.js . Changing the timeout to one minutes fixed the issue

Questions:

  • There are 200 media links in the test page. Is the parsoid response time I am experiencing (~ 60 seconds) what one would expect?
  • Any way of making it faster (e.g., setting ParsoidConfig.prototype.fetchImageInfo to false)?
  • Any way to provide better information as to what is happening to the user?

Thanks in advance for any answers.

Czech.Fox (talkcontribs)

I sometimes having the same issue with timeouts in VisualEditor, just because Parsoid is waiting for API.

C holtermann (talkcontribs)

Same issue for me in mediawiki 1.33.4. The file has changed here. It is now resources/src/mediawiki.api/index.js but the suggested fix still solves the problem.

Reply to "Error when editing a page: Error loading data from server: HTTP 0. Would you like to retry?"