Topic on Project:Support desk

Visualeditor cant connect to Parsoid

2
46.82.168.33 (talkcontribs)

Hey i try to install visualeditor on my Wiki (latest version) my Pasoid Service is running and seem to work. I Cant find out why my Wiki cant connect to the Pasoid Server. If i try to edit a page i become :

"(curl error: no status set)"

LocalSettings.php:


wfLoadExtension( 'VisualEditor' );

// Enable by default for everybody
$wgDefaultUserOptions['visualeditor-enable'] = 1;

// Optional: Set VisualEditor as the default for anonymous users
// otherwise they will have to switch to VE
$wgDefaultUserOptions['visualeditor-editor'] = "visualeditor";

// Benutzer zum Visual Editor zwingen
//$wgHiddenPrefs[] = 'visualeditor-enable';

// Experimentelle Funkionen einschalten
//#$wgDefaultUserOptions['visualeditor-enable-experimental'] = 1;

$wgVirtualRestConfig['modules']['parsoid'] = array(
	// URL to the Parsoid instance
	// Use port 8142 if you use the Debian package
	'url' => 'http://localhost:8142',
	// Parsoid "domain", see below (optional)
	'domain' => 'itswiki',

);

 

Config.yaml


         # Configure Parsoid to point to your MediaWiki instances.
         mwApis:
         - # This is the only required parameter,
           # the URL of you MediaWiki API endpoint.
           uri: 'https://wiki.itswob.de/api.php'
           # The "domain" is used for communication with Visual Editor
           # and RESTBase.  It defaults to the hostname portion of
           # the `uri` property below, but you can manually set it
           # to an arbitrary string.
           domain: 'itswiki'  # optional
           # To specify a proxy (or proxy headers) specific to this prefix
           # (which overrides defaultAPIProxyURI). Alternatively, set `proxy`
           # to `null` to override and force no proxying when a default proxy
           # has been set.
           #proxy:
           #    uri: 'http://my.proxy:1234/'
           #    headers:  # optional
           #        'X-Forwarded-Proto': 'https'
  

if i use

curl -L http://localhost:8142/itswiki/v3/page/html/Hauptseite

it works and parsoid show html version of my Main page. so the Connection from Parsoid to my Wiki seems to work. but the Wiki cant connect he parsoid Service

Osnard (talkcontribs)