Topic on Talk:Parsoid

Error loading data from server: 500: apierror-visualeditor-docserver-http: HTTP 500. Would you like to retry?

5
Summary by Arlolra

User disappeared

NicolasEcarnot (talkcontribs)

Hello,

Here is my setup :

- Debian 10

- Mediawiki 1.31.4

- VisualEditor 0.1.0

- Parsoid 0.10.0

I installed the above using packages, and using short URLs with the following setup :

LocalSettings.php :

$wgScriptPath = "";

$wgArticlePath = "/wiki/$1";


Then about Parsoid binding with VisualEditor :

$wgVirtualRestConfig['modules']['parsoid'] = array(

   'url' => 'http://wiki.example.lan:8142',

   'domain' => 'mydomain'

);


In /etc/mediawiki/parsoid/config.yaml, I've set up this :

mwApis:

       -

         uri: 'http://wiki.example.lan/wiki/api.php'

         domain: 'mydomain'


When I'm trying to edit an article with VisualEditor, I get the error described in the subject :

Error loading data from server: 500: apierror-visualeditor-docserver-http: HTTP 500. Would you like to retry?


In /var/log/parsoid/parsoid.log, I see :

"Config Request failure for \"http://wiki.example.lan/wiki/api.php\": 404","time":"2019-12-09T15:11:21.586Z","v":0}


Using curl, I can ask simple things to Parsoid like its version, but that's all.

The wiki is open (no auth restriction).

Obviously, I've read 72% of all internet web pages and tried tons of settings before asking my question here, but now, I don't know what to check.

May you help me please?

Arlolra (talkcontribs)
NicolasEcarnot (talkcontribs)

Hello Arlolra,

As I'm using short URLs, my wiki is serving its page like the page you're reading at present :

<code>https://www.mediawiki.org/wiki/Topic:Vcmzn6wl4la0fd69}</code> so in my case :

<code>http://wiki.example.lan/wiki/}</code>.

This URLs shortening is working for articles, but I agree that in the case of special files like load.php, api.php, something has to be looked at. Though, so far, except on this Parsoid issue, things seem to be working nicely.


You wrote : Usually that's something like, http://wiki.example.lan/w/api.php or http://wiki.example.lan/api.php

1 : Using http://wiki.example.lan/w/api.php, is very similar to http://wiki.example.lan/w/api.php and this only deals with how one shortens the URL in the config file.

2 : But using http://wiki.example.lan/api.php does not seem possible to me as I'm serving the mediawiki folder through an apache Alias directive (I did not choose this, this came from the Debian package. About Short URLs, other people here wrote one had to choose between aliases and rewriting. The Debian package maintainers have chosen aliases.)

I'd be very glad to have a look at the setup of www.mediawiki.org setup files, especially how they shorten their URLs.

Arlolra (talkcontribs)
2003:C6:4F25:E6E0:285D:1D34:EF27:E455 (talkcontribs)

Hi,

are you using the heroku app?

1) Make sure that no htpasswd is set up in your /w folder. I realized that the heroku app is not working with a password protected ftp folder.

2) Be careful where you set your root directory in your website hosting app. I realized that it worked very well after I set the /w folder under public_html