eclipse Subclipse 出现“RA 层请求失败”错误,Web 浏览器没有错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8983845/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
"RA layer request failed" error with Subclipse, no errors with web browser
提问by Neets
I'm using STS 2.8.1 (I think it's based on Eclipse Indigo) with Subclipse 1.6.18.
我正在使用 STS 2.8.1(我认为它基于 Eclipse Indigo)和 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'
RA 层请求失败
svn:服务器发送意外返回值(503 服务不可用)以响应“http://abcom:18080/svn/myproject”的 OPTIONS 请求
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.
问题是,如果我尝试从 Web 浏览器(例如 Chrome 或 IE)访问该存储库,则可以访问它。它询问我的用户名和密码,我输入后,我可以看到项目树。
Does anyone know why I can access from the web browser but not from STS?
有谁知道为什么我可以从网络浏览器访问但不能从 STS 访问?
The proxy settings are configured correctly for Subclipse (and I can access other repositories from STS, but not that one).
为 Subclipse 正确配置了代理设置(我可以从 STS 访问其他存储库,但不能访问那个存储库)。
回答by VonC
This is usually due to an SVN setting (c:\Documents and Settings\_username_\Application Data\Subversion\servers
or ~/.subversion/servers
) overriding an Eclipse setting.
这通常是由于 SVN 设置(c:\Documents and Settings\_username_\Application Data\Subversion\servers
或~/.subversion/servers
)覆盖了 Eclipse 设置。
Or one of those settings could have the wrong password for the proxy.
或者这些设置之一可能具有错误的代理密码。
However, the OP Neetsreports:
然而,OP Neets报道:
- 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:
- 我能够连接到其他存储库位置(因此代理密码是正确的)
- 我解决了,在servers文件中添加了相应的异常,像这样:
http-proxy-exceptions = exception.com
That is compliant with what describes the openDNS article Configuring Subversion to Use a Proxy Server:
这符合 openDNS 文章配置 Subversion 以使用代理服务器的描述:
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:
这指定了一组不需要访问代理服务器的存储库地址。例如,如果您在本地 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