Jump to content

Topic on Extension talk:VisualEditor

MediaWiki: 1.35.0 PHP: 7.4.11 (apache2handler) MySQL: 5.7.31-0ubuntu0.18.04.1

The site is temporarily set up to accept both http and https. VisualEditor works fine with http or https directly to Apache. However, with Hitch and Varnish in front of Apache we get this error message on trying to save an edit (with http as well as https): "Error contacting the Parsoid/RESTBase server: http-bad-status". Hitch and Varnish work OK: things get cached. Hitch listens on port 443, Varnish listens on ports 80 (from web) and 8443 (from Hitch), Apache listens on port 8080 (from Varnish).

When I do "systemctl status hitch" after I have tried saving a VE edit, it lists two entries like this: "{backend} Socket error: Connection reset by peer". VisualEditor is presumably using the MediaWiki API. Is there something special one should (or shouldn't) do to make the API work with Hitch/Varnish? API GET requests work OK with Hitch/Varnish. What could be the reason for the VE problem? Any help would be much appreciated.