You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Did not get a valid JSON response from the server. Check that you used the correct hostname. If you did, the server might be wrongly configured or experiencing temporary problems.
which i consider quite misleading when the JSON response is empty.
IMHO there should be a hint in this case that JSON is empty (which is a subset of not valid).The situation needs to be replicated manually and then mediawiki debugging needs to be switched on. In my case the culprit was a:
PHP Fatal error: Declaration of MWCallbackStream::write($string) must be compatible with Psr\Http\Message\StreamInterface::write(string $string): int in /home/user/public_html/muizenmesh.co.za/wiki/includes/http/MWCallbackStream.php on line 49
which is just an annoying dependency hell situation.
The text was updated successfully, but these errors were encountered:
well, "the server might be wrongly configured or experiencing temporary problems" points you pretty clearly in the direction of the server. I'm not sure I see why we should consider the JSON being empty a particularly special case; any time the response is invalid JSON in any way, that's kinda out of the realm of something mwclient can do anything about, and needs to be resolved somewhere else. We could maybe strengthen the "the server might be wrongly configured" part to more specifically say "go figure out what's wrong with the server"? But I'm not sure a different message for the response being empty vs. it being invalid in any other way makes sense.
str: {"edit":{"result":"Success","pageid":1,"title":"Main Page","contentmodel":"wikitext","nochange":"","watched":""}}<br />
<b>Deprecated</b>: Use of InternalParseBeforeSanitize hook (used in VariablesHooks::onInternalParseBeforeSanitize) was deprecated in MediaWiki 1.35. [Called from MediaWiki\HookContainer\HookContainer::run in /var/www/html/includes/HookContainer/HookContainer.php at line 137] in <b>/var/www/html/includes/debug/MWDebug.php</b> on line <b>381</b><br />
When debugging https://phabricator.wikimedia.org/T335073 see https://stackoverflow.com/questions/76072671/guzzle-update-brakes-mediawiki-1-39-3-lts-what-are-the-reasons-and-workarounds
i got:
which i consider quite misleading when the JSON response is empty.
IMHO there should be a hint in this case that JSON is empty (which is a subset of not valid).The situation needs to be replicated manually and then mediawiki debugging needs to be switched on. In my case the culprit was a:
which is just an annoying dependency hell situation.
The text was updated successfully, but these errors were encountered: