Topic on Extension talk:VisualEditor

Error contacting the Parsoid/RESTBase server: http-request-error

Wikiusr23 (talkcontribs)

Getting the error mentioned in the Topic when trying to edit anything on mediawiki.

Upgraded Wiki from 1.32 to 1.35 (sequential upgrade). This is a private Wiki.

Followed the steps as per the Visualeditor extension page. I have read other users thread who are having similar issues.

Following is the setup in localsettings.php

wfLoadExtension( 'VisualEditor' );

$wgDefaultUserOptions['visualeditor-enable'] = 1;

$wgDefaultUserOptions['visualeditor-editor'] = "visualeditor";

$wgVisualEditorParsoidAutoConfig = true;

#Added this based on reading a few threads as VE requests as an anonymus user

if (in_array($_SERVER['REMOTE_ADDR'],





        '<public IP>',



)) {

        $wgGroupPermissions['*']['read'] = true;

        $wgGroupPermissions['*']['write'] = true;

        $wgGroupPermissions['*']['writeapi'] = true;


Appreciate if any one could help me with this (talkcontribs)

Any update for this? (talkcontribs)

Had the same problem and couldn't find any solution here. After a bit of debugging i found out, that the problem was the HTTPS communication within the web server. We use for $wgServer = the HTTPS-address and a certificate of our own PKI. Therefore we had to make sure, that the web server trusts this PKI.

We copied the public certificates of our PKI to /usr/share/pki/trust/anchors/ and run update-ca-certificates. After this the PKI certificates were listed at /etc/ssl/certs and the visual editor works.

Hope this helps anybody. (talkcontribs)

Got the same issue, when saving changes on any page. Parsoid-/RESTBase-Server:http-request-error. None of the workarounds worked for me. Does someone has another idea? Mediawiki version is 1.35 as well.

Nevaram (talkcontribs)

The tool is connected to the local server. So check that you can connect to the address given in $wgServer from the machine

$wgServer = "yourSiteAddress";

try from the server: ping yourSiteAddress

if it doesn't work, you can add an entry in the /etc/hosts file

MattPilz (talkcontribs)

If you are experiencing this problem only on existing pages, but are able to create a new page and add a heading/paragraph and save it again, the problem may be a glitch in the wiki formatting itself.

In my case after switching from the basic code-only editor to VisualEditor, any page that included a preformatted textblock that itself also contained URLs seemed to throw this error. I removed the offending block(s) and replaced them with INSERT → MORE → CODE BLOCK and the problem went away.

I did not have to alter any other permissions or options even with a private wiki, it was just an odd parsing/content issue with some preformatted blocks. I have nothing special in LocalSettings.php, the following works fine (for private):

$wgGroupPermissions['*']['createaccount'] = false;

$wgGroupPermissions['*']['edit'] = false;

$wgGroupPermissions['*']['read'] = false;

Reply to "Error contacting the Parsoid/RESTBase server: http-request-error"