Topic on Talk:MediaWiki-Docker/Extension/VisualEditor

Summary by ZFilipin (WMF)

Updated page with correct instructions.

Physikerwelt (talkcontribs)

I followed the instructions. However, when I try to edit a page visually I receive the following error

{"error":{"code":"apierror-visualeditor-docserver-http-error","info":"Error contacting the Parsoid/RESTBase server: (curl error: 7) Couldn't connect to server","docref":"See http://localhost:8080/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."}}

How can I figure out which url is trying to be contacted?

Physikerwelt (talkcontribs)
ZFilipin (WMF) (talkcontribs)

This page is a draft. I'm pretty sure that you'll not get a working VE after following these steps.

VPuffetMichel (WMF) (talkcontribs)

@Physikerwelt Are you using Docker on a mac? If this is the case, you might want to add

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

'url' => 'http://host.docker.internal:8080' . $wgScriptPath . '/rest.php',

];

This seems to be working for me.

ZFilipin (WMF) (talkcontribs)

It worked for me too! Thanks!

ZFilipin (WMF) (talkcontribs)

I've tested it both on macos and ubuntu, and it's needed in both.