“RA层请求失败”与Subclipse错误,Web浏览器没有错误 [英] "RA layer request failed" error with Subclipse, no errors with web browser
问题描述
我正在使用STS 2.8.1(我认为它基于Eclipse Indigo)与Subclipse 1.6.18。
我正在尝试检查一些代码从存储库,但是当我添加存储库位置,我得到以下错误:
RA层请求失败
svn:服务器响应http:// abcom:18080 / svn / myproject的OPTIONS请求发送意外返回值(503服务不可用)
事情是,如果我尝试从Web浏览器(例如Chrome或IE)访问该存储库,我被允许访问它。它要求我的用户名和密码,输入后,我可以看到项目树。
有谁知道为什么我可以从网络浏览器访问,但不能从STS?
为Subclipse正确配置代理设置(我可以从STS访问其他存储库,但不能访问其他存储库)。
这通常是由于SVN设置( c:\Documents and Settings\_username_\Application Data\Subversion\服务器
或〜/ .subversion / servers
)覆盖Eclipse设置。
或其中一个设置可能会导致代理的密码错误。
然而, OP Neets 报告:
- 我可以连接到其他存储库位置(所以代理密码正确)
- 我解决了这个问题,在服务器文件中添加了相应的异常,如下所示: / li>
http-proxy-exceptions = exception.com
符合描述openDNS文章配置Subversion使用代理服务器:
http-proxy-exceptions
这指定一组您不需要访问代理服务器的存储库地址。例如,如果您的本地LAN上有一个存储库,那么您可能不需要代理来访问它。
这应该是以逗号分隔的服务器列表,您可以使用星号作为通配符。
如果您要访问的所有存储库都需要使用代理服务器,则可以将其退出。
以下示例将使用代理服务器访问example.com域外的所有服务器的示例配置:
[global]
pre>
http-proxy-exceptions = * .example.com
http-proxy-host = proxy .example.com
http-proxy-port = 8080
http-proxy-username = myuserid
http-proxy-password = mypassword
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).
解决方案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
这篇关于“RA层请求失败”与Subclipse错误,Web浏览器没有错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!