Page MenuHomePhabricator

Visual Editor in MediaWiki 1.37.1: Error contacting the Parasoid/RESTBase Server: http-bad-status.
Closed, ResolvedPublicBUG REPORT

Description

I installed MediaWiki 1.37.1 on Windows 2019. Database: MariaDB 10.6.5. Webserver: IIS 10.0.17763.1. PHP version 7.3.33. I allow anyone to read the pages but only registered users can edit the pages. Registered users also have the writeapi permission. I turned on the Visual Editor with wgLoadExtension ('VisualEditor'). Per the documentation I made no other Visual Editor configuration changes. When I use Visual Editor to create new pages then save or edit existing pages, I get the following error:

Error contacting the Parasoid/RESTBase Server: http-bad-status.

I can be reached at wolfcu@vystarcu.org if you have any additional questions.

Event Timeline

Hi @Wolfcu69, thanks for taking the time to report this and welcome to Wikimedia Phabricator!
Has this been brought up at https://www.mediawiki.org/wiki/Project:Support_desk first? Which "documentation" do you refer to?

Aklapper renamed this task from Visual Editor does not work in MediaWiki 1.37.1 to Visual Editor in MediaWiki 1.37.1: Error contacting the Parasoid/RESTBase Server: http-bad-status..Jan 19 2022, 3:58 PM
Aklapper added a project: VisualEditor.

Yes I brought up in the Support Desk.

Please mention so, as discussion in two places duplicates time spent by folks. Link: https://www.mediawiki.org/wiki/Topic:Wo1btn1sxv33c8wx


I uploaded a debug file. I hope that this helps.

Is there any way to get more information about the following error in this excerpt from the debug file?

[http] * HTTP request failed due to unknown error.

  • There was a problem during the HTTP request: 0 Error

[Pingback] Pingback::run: failed to send; check 'http' log channel
[DBQuery] Pingback::schedulePingback [0s] localhost: COMMIT

These are the settings that I am aware that involve the Visual Editor. Note that only one of them is not commented out. Should I be setting any of the commented settings to certain values? If so what values? Thanks.

wfLoadExtension( 'VisualEditor' );

#$wgDefaultUserOptions['visualeditor-enable'] = 1;
#$wgVisualEditorPluginModules
#$wgVisualEditorPreloadModules
#$wgVisualEditorPreferenceModules
#$wgVisualEditorParsoidAutoConfig;
#$wgVisualEditorRestbaseURL
#$wgVisualEditorFullRestbaseURL
#$wgVisualEditorAllowLossySwitching
#$wgVisualEditorSerializationCacheTimeout
#$wgVisualEditorAvailableNamespaces
#$wgVisualEditorAvailableContentModels
#$wgVisualEditorUseChangeTagging
#$wgVisualEditorEnableWikitext
#$wgVisualEditorEnableDiffPage
#$wgVisualEditorEnableDiffPageBetaFeature
#$wgVisualEditorEnableVisualSectionEditing
#$wgVisualEditorUseSingleEditTab
#$wgVisualEditorSingleEditTabSwitchTime
#$wgVisualEditorTabPosition
#$wgVisualEditorTabMessages
#$wgVisualEditorAutoAccountEnable
#$wgVisualEditorDisableForAnons
#$wgVisualEditorTransitionDefault
#$wgVisualEditorShowBetaWelcome
#$wgVisualEditorNewAccountEnableProportion
#$wgVisualEditorFeedbackTitle
#$wgVisualEditorFeedbackAPIURL
#$wgVisualEditorSkinToolbarScrollOffset
#$wgVisualEditorBrowserUnsupportedList
#$wgVisualEditorBrowserBlacklist
#$wgVisualEditorEnableTocWidget
#$wgVisualEditorRebaserURL

Peter,

Does it matter if the MediaWiki IIS site is set to a specific hostname? In this case the URL is https://vyguidewikitest.jaxnavy.org/index.php?title=Main_Page. The vyguidewikitest A record points to the IP address of the server hosting MediaWiki. I was looking at https://www.mediawiki.org/wiki/Manual:$wgVirtualRestConfig and saw that the default Parasoid and RESTBase URL setting points to localhost. I was wondering if the hostname setting would create a problem for this. I was trying a couple of settings changes related to this but nothing has worked yet.

I found this web page - https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki_on_Windows_Server_2016. It had some additional configuration that I previously missed. Once I did that and got curl config working correctly, I am now getting a http 500 error from the Parsoid/RESTBase server when I click on the Edit link. Is there any logging that I can turn on that can tell me what is going on in the Parsoid/RESTBase server? Thanks.

matmarex added a project: MW-1.41-notes.
matmarex subscribed.

This problem should no longer occur on MediaWiki 1.41 and later, as VisualEditor no longer uses HTTP requests internally to contact Parsoid, it just calls the PHP methods directly (see T320529 for related work).

Please try MediaWiki 1.41 and hopefully VisualEditor will now finally just work. If you still encounter some issues, please file a new task.