Hello all,
When I try to make any edit to a page using VisualEditor or save a new page through VisualEditor the load bar gets to about 75% and then says:
Error loading data from server: apierror-visualeditor-docserver-http-error: (curl error: 7) Couldn't connect to server. Would you like to retry?
I'm not sure what details would be helpful, but I am running this on a Debian server on Google Cloud. At first I thought it may have been blocking the port 8142 but I believe I fixed that issue. (Is there some way to check?)
For reference, here is my parsoid config file: (sorry for the awful formatting, not sure what happened)
# This is a sample configuration file
#
# Also see:
# - `npm start -- -h` for more information about passing config files via
# the commandline.
# - lib/config/ParsoidConfig.js for all the properties that you can configure
# here. Not all properties are documented here.
worker_heartbeat_timeout: 300000
logging:
level: info
metrics:
type: log
services:
- module: ../src/lib/index.js
entrypoint: apiServiceWorker
conf:
# For backwards compatibility, and to continue to support non-static
# configs for the time being, optionally provide a path to a
# localsettings.js file. See localsettings.example.js
#localsettings: ./localsettings.js
# Set your own user-agent string
# Otherwise, defaults to:
# 'Parsoid/<current-version-defined-in-package.json>'
#userAgent: 'My-User-Agent-String'
# Configure Parsoid to point to your MediaWiki instances.
mwApis: -
# This is the only required parameter,
# the URL of you MediaWiki API endpoint.
uri: 'http://localhost/w/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: 'localhost' # 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'
# We pre-define wikipedias as 'enwiki', 'dewiki' etc. Similarly
# for other projects: 'enwiktionary', 'enwikiquote', 'enwikibooks',
# 'enwikivoyage' etc.
# The default for this is false. Uncomment the line below if you want
# to load WMF's config for wikipedias, etc.
Here is the end of my LocalSettings:
wfLoadExtension('VisualEditor');
$wgDefaultUserOptions['visualeditor-enable'] = 1;
$wgVirtualRestConfig['modules']['parsoid'] = array(
'url' => 'http://localhost:8142'
);