Topic on Project:Support desk

VisualEditor curl error 55

2
Julznova (talkcontribs)

Hi,

I'm attempting to use visualeditor over https, but when I attempt to edit an article using visualeditor I'm constantly getting curl error 55:

"Error loading data from server: apierror-visualeditor-docserver-http-error: (curl error: 55) Failed sending data to the peer. Would you like to retry?"

Localsettings.php:

wfLoadExtension( 'VisualEditor' );

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

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

        $wgHiddenPrefs[] = 'visualeditor-enable';

//      $wgVisualEditorParsoidURL = 'https://mydomain.net:8143';

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

        'url' => 'https://mydomain.net:8143',

        'domain' => 'localhost',

        'prefix' => 'localhost',

//      'forwardCookies' => false,

//      'parsoidCompat' => false

);

Stunnel parsoid.conf:

cert = /etc/httpd/conf/ssl/mydomain.net.crt

key = /etc/httpd/conf/ssl/mydomain.net.key

CAfile = /etc/httpd/conf/ssl/root.crt

[parsoid]

accept  = 8143

connect = 8142

Parsoids localsettings.js:

'use strict';

exports.setup = function(parsoidConfig) {

        // Do something dynamic with `parsoidConfig` like,

        parsoidConfig.setMwApi({

        uri: 'https://mydomain.net/wiki/api.php'

        });

};

I've tried millions of different combinations of uri/url, any help is greatly appreciated.

Ciencia Al Poder (talkcontribs)

If the setup instructions don't help, you should try to debug the issue yourself by inspecting the traffic the browser generates (use F12 to see the requests, where they are sent and if the URL makes sense). Open the RESTBase url from your browser and make sure it opens the documentation page.

If this is not a problem, you'll have to look at parsoid and RESTBase error logs, and if there's anything obvious, check communication between RESTBase, Parsoid and MediaWiki with a packet sniffer like tcpdump

Reply to "VisualEditor curl error 55"