MediaWiki 1.37-可视化器 - “错误联系广斯/Restbase服务器:(卷曲错误:28)超时已达到超时。 (有时并非总是)

发布于 2025-01-23 15:07:43 字数 2079 浏览 2 评论 0 原文

请帮忙,我被困。 :)

我已经搜索了相关的线程,这无济于事。

我的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;

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

魂牵梦绕锁你心扉 2025-01-30 15:07:43

添加到主机文件:127.0.0.1 example.com

Add to hosts file: 127.0.0.1 example.com

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文