请帮忙,我被困。 :)
我已经搜索了相关的线程,这无济于事。
我的MediaWiki版本是1.37.2,
在使用VisualEditor编辑页面时,我有时会遇到以下错误(有时它有效,有时我会遇到错误;它可以连续使用10次,然后不起作用):
“与广斯/Restbase服务器联系的错误:(卷曲错误:28)到达超时”
错误似乎发生了什么页面大小。它发生在任何页面上。
注意:我在另一台具有相同配置的测试服务器上没有此错误。
在日志文件中,我会得到:
[http] HTTP start: GET https://example.com/wiki/rest.php/example.com/v3/page/html/Language%2FMultiple-languages/129917?redirect=false&stash=true
[http] Error fetching URL "https://example.com/wiki/rest.php/example.com/v3/page/html/Language%2FMultiple-languages/129917?redirect=false&stash=true":
(curl error: 28) Timeout was reached
有时在浏览器中直接使用此URL时也会遇到超时错误:
https://example.com/wiki/wiki/api.php?action = visaleditor&paction = parse=parse = parse&page = language/multiplepirpire-languages
我从来没有如果我这样做(使用ssh),请获取错误:
curl https://example.com/wiki/wiki/wiki/wiki/rest.php/example.com/v3/page/page/html/language%2fmultiple-languages/129917? actash = true
或
curl https://example.com/wiki/api.php?action=visaleditor& paction= parse& page = language/multiple-language
我在localsetstings.php中的配置
wfLoadExtension( 'VisualEditor' );
$wgDefaultUserOptions['visualeditor-enable'] = 1;
$wgDefaultUserOptions['visualeditor-editor'] = "visualeditor";
$wgGroupPermissions['*']['read'] = true;
$wgGroupPermissions['*']['edit'] = true;
$wgGroupPermissions['*']['writeapi'] = true;
Please help, I am stuck. :)
I've searched related threads which could not help me.
My version of Mediawiki is 1.37.2
While editing a page with VisualEditor, I sometimes get the following error (Sometimes it works, sometimes I get the error ; it can work 10 times in a row and then don't work):
"Error contacting the Parsoid/RESTBase server: (curl error: 28) Timeout was reached"
The error seems to occur whatever the page size. It happens on any page.
Note: I do not have this error on another test server with the same configuation.
In the log file I get :
[http] HTTP start: GET https://example.com/wiki/rest.php/example.com/v3/page/html/Language%2FMultiple-languages/129917?redirect=false&stash=true
[http] Error fetching URL "https://example.com/wiki/rest.php/example.com/v3/page/html/Language%2FMultiple-languages/129917?redirect=false&stash=true":
(curl error: 28) Timeout was reached
I also sometimes get a timeout error when using this url directely in a browser:
https://example.com/wiki/api.php?action=visualeditor&paction=parse&page=Language/Multiple-languages
I never get an error if I do (using SSH):
curl https://example.com/wiki/rest.php/example.com/v3/page/html/Language%2FMultiple-languages/129917?redirect=false&stash=true
or
curl https://example.com/wiki/api.php?action=visualeditor&paction=parse&page=Language/Multiple-languages
My config in LocalSettings.php
wfLoadExtension( 'VisualEditor' );
$wgDefaultUserOptions['visualeditor-enable'] = 1;
$wgDefaultUserOptions['visualeditor-editor'] = "visualeditor";
$wgGroupPermissions['*']['read'] = true;
$wgGroupPermissions['*']['edit'] = true;
$wgGroupPermissions['*']['writeapi'] = true;
发布评论
评论(1)
添加到主机文件:127.0.0.1 example.com
Add to hosts file: 127.0.0.1 example.com