Topic on Project:Support desk

VisualEditor cannot save: Error contacting the Parsoid/RESTBase server (HTTP 415)

3
Maiden taiwan (talkcontribs)

On MediaWiki 1.35.3, I can load VisualEditor and make all the changes I want, but when I click the final "Save changes," I receive an error dialog: Error contacting the Parsoid/RESTBase server (HTTP 415). This problem began when I upgraded from MW 1.35.2 to 1.35.3.

Here are the relevant lines from the Apache access.log file. The server hostname and IP address have been anonymized. The IP address 108.26.197.171 is my client computer.

Click "Edit" to edit the article in VisualEditor:

11.22.33.44 - - [02/Aug/2021:11:51:06 -0400] "GET /w/rest.php/wiki.example.com/v3/page/html/MRI_scanner_safety/5839?redirect=false&stash=true HTTP/1.1" 301 769 "-" "VisualEditor-MediaWiki/1.35.3"

11.22.33.44 - - [02/Aug/2021:11:51:06 -0400] "GET /w/rest.php/wiki.example.com/v3/page/html/MRI_scanner_safety/5839?redirect=false&stash=true HTTP/1.1" 200 14918 "-" "VisualEditor-MediaWiki/1.35.3"

108.26.197.171 - - [02/Aug/2021:11:51:06 -0400] "GET /w/api.php?action=visualeditor&format=json&paction=parse&page=MRI_scanner_safety&uselang=en&formatversion=2&oldid=5839 HTTP/1.1" 200 11210 "https://wiki.example.com/wiki/MRI_scanner_safety?veaction=edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36"

I make an edit, click "Save changes...", and see the "Save your changes" dialog:

11.22.33.44 - - [02/Aug/2021:11:51:20 -0400] "POST /w/rest.php/wiki.example.com/v3/transform/html/to/wikitext/MRI_scanner_safety/5839 HTTP/1.1" 301 747 "-" "VisualEditor-MediaWiki/1.35.3"

11.22.33.44 - - [02/Aug/2021:11:51:20 -0400] "POST /w/rest.php/wiki.example.com/v3/transform/html/to/wikitext/MRI_scanner_safety/5839 HTTP/1.1" 415 5719 "-" "VisualEditor-MediaWiki/1.35.3"

108.26.197.171 - - [02/Aug/2021:11:51:20 -0400] "POST /w/api.php HTTP/1.1" 200 1460 "https://wiki.example.com/wiki/MRI_scanner_safety?veaction=edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36"

I click the "Save changes" button on the dialog:

11.22.33.44 - - [02/Aug/2021:11:51:29 -0400] "POST /w/rest.php/wiki.example.com/v3/transform/html/to/wikitext/MRI_scanner_safety/5839 HTTP/1.1" 301 747 "-" "VisualEditor-MediaWiki/1.35.3"

11.22.33.44 - - [02/Aug/2021:11:51:29 -0400] "POST /w/rest.php/wiki.example.com/v3/transform/html/to/wikitext/MRI_scanner_safety/5839 HTTP/1.1" 415 5719 "-" "VisualEditor-MediaWiki/1.35.3"

108.26.197.171 - - [02/Aug/2021:11:51:29 -0400] "POST /w/api.php HTTP/1.1" 200 1491 "https://wiki.example.com/wiki/MRI_scanner_safety?veaction=edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36"

The error dialog appears:

Something went wrong

Error contacting the Parsoid/RESTBase server (HTTP 415)

[Dismiss]

Thanks for any help.

Maiden taiwan (talkcontribs)

In case it's relevant, the wiki is an https site.

Maiden taiwan (talkcontribs)

It appears I am being bitten by this bug which prevents VisualEditor from saving articles when anonymous users are forbidden edit permission ($wgGroupPermissions['*']['edit'] = false). None of the suggested workarounds work for me.

Reply to "VisualEditor cannot save: Error contacting the Parsoid/RESTBase server (HTTP 415)"