Topic on Talk:Parsoid

Why does "node roundtrip-test.js "Main Page"" work, but "node roundtrip-test.js "Main Page" --domain http://<my wiki's domain>" does not?

2
Summary by Arlolra

The script uses enwiki by default

TheMystics (talkcontribs)

I'm doing a new install on Windows 2012 and I haven't gotten visual editor to work on saved pages at all yet. I'm on MediaWiki 1.31.1, PHP 7.0.7 (apache2handler), MySQL 5.7.13-log, and VisualEditor 0.1.0 (6854ea0) 22:33, 5 November 2018.

I've gotten to the point where I can use visual editor to create pages, but I can't edit pages (due to a "Error loading data from server: apierror-visualeditor-docserver-http: HTTP 404. Would you like to retry?" error).

As a debugging step, I checked that I

1) Can run "node bin/roundtrip-test.js "Main Page"" in a command prompt with only expected errors,

2) "node bin/roundtrip-test.js "Main Page" --domain <my wiki's domain>" fails due to a 404 error,

3) "node bin/roundtrip-test.js "Main Page" --apiURL http://<domain>/mediawiki/api.php" keeps trying to reconnect (even though http://<domain>/mediawiki/api.php brings me to the API page of my wiki), and

4) Doing both of #2 & #3 above's switches in the same command makes it keep trying to reconnect.

What can I do next to diagnose the issue so I can get Visual Editor up and running?

Arlolra (talkcontribs)

1) This works because, if no domain is supplied, it uses en.wikipedia.org which is configured correctly by the setting loadWMF: true, in that script. 2) This fails because <my wiki's domain> is not one of the WMF domains that are loaded by default so the uri of the mediawiki api for it is unknown. 3) This should work and is the place you want to start debugging. Is there information about why it's failing to connect? 4) --domain is ignored if an --apiURL is provided, so should be the same 3)