“RA层请求失败” Subclipse 出错,Web 浏览器没有错误

发布于 2024-12-28 15:19:25 字数 407 浏览 1 评论 0原文

我正在使用 STS 2.8.1(我认为它基于 Eclipse Indigo)和 Subclipse 1.6.18。

我正在尝试从存储库中检查一些代码,但是当我添加存储库位置时,出现以下错误:

RA层请求失败
svn:服务器发送了意外的返回值(503 服务不可用)以响应“http://abcom:18080/svn/myproject”的 OPTIONS 请求

问题是,如果我尝试从网络浏览器(例如Chrome或IE),我可以访问它。它要求我输入用户名和密码,输入它们后,我可以看到项目树。

有谁知道为什么我可以从网络浏览器访问但不能从STS访问?

Subclipse 的代理设置已正确配置(我可以从 STS 访问其他存储库,但不能访问该存储库)。

I'm using STS 2.8.1 (I think it's based on Eclipse Indigo) with Subclipse 1.6.18.

I'm trying to check some code out from a repository, but when I add the repository location, I get the following error:

RA layer request failed
svn: Server sent unexpected return value (503 Service Unavailable) in response to OPTIONS request for 'http://a.b.com:18080/svn/myproject'

The thing is, if I try to access that repository from a web browser (e.g. Chrome or IE), I'm allowed to access it. It asks for my username and password, and after I enter them, I can see the project tree.

Does anyone know why I can access from the web browser but not from STS?

The proxy settings are configured correctly for Subclipse (and I can access other repositories from STS, but not that one).

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

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

发布评论

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

评论(1

何止钟意 2025-01-04 15:19:25

这通常是由于 SVN 设置(c:\Documents and Settings\_username_\Application Data\Subversion\servers~/.subversion/servers)覆盖 Eclipse 设置造成的。

或者这些设置之一可能有错误的代理密码。

然而,OP Neets 报告:

  • 我能够连接到其他存储库位置(因此代理密码是正确的)
  • 我解决了这个问题,在服务器文件中添加了相应的异常,如下所示:
http-proxy-exceptions = exception.com

所示: 这符合 openDNS 文章 配置 Subversion 使用代理服务器

http-proxy-exceptions

这指定了一组您不需要访问代理服务器的存储库地址。例如,如果您的本地 LAN 上有一个存储库,那么您可能不需要代理来访问它。
这应该是一个以逗号分隔的服务器列表,您可以使用星号作为通配符。
如果您要访问的所有存储库都要求您使用代理服务器,那么您可以忽略它。

下面显示了一个示例配置,它将使用代理服务器访问 example.com 域之外的所有服务器:

[global]
http-proxy-exceptions = *.example.com
http-proxy-host = proxy.example.com
http-proxy-port = 8080
http-proxy-username = myuserid
http-proxy-password = mypassword

This is usually due to an SVN setting (c:\Documents and Settings\_username_\Application Data\Subversion\servers or ~/.subversion/servers) overriding an Eclipse setting.

Or one of those settings could have the wrong password for the proxy.

However, the OP Neets reports:

  • I'm able to connect to other repository locations (so the proxy password is correct)
  • I solved it, adding the corresponding exception in the servers file, like this:
http-proxy-exceptions = exception.com

That is compliant with what describes the openDNS article Configuring Subversion to Use a Proxy Server:

http-proxy-exceptions

This specifies a set of repository addresses for which you don't need to access a proxy server. For example, if you have a repository on your local LAN, then you probably won't need a proxy to access it.
This should be a comma-delimited list of servers, and you can use an asterisk as a wildcard.
If all of the repositories that you will access require you to use a proxy server, then you can leave this out.

The following shows a sample configuration that will use a proxy server to access all servers outside of the example.com domain:

[global]
http-proxy-exceptions = *.example.com
http-proxy-host = proxy.example.com
http-proxy-port = 8080
http-proxy-username = myuserid
http-proxy-password = mypassword
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文