使用rally-rest-api-2.1.2.jar访问rally时出错
我在rally中收到API密钥的身份验证错误。甚至api密钥也被授予完全访问权限使用rally-rest-api-2.1.2.jar访问rally时出错,rest,api,rally,Rest,Api,Rally,我在rally中收到API密钥的身份验证错误。甚至api密钥也被授予完全访问权限 java.io.IOException: HTTP/1.1 401 Full authentication is required to access this resource at com.rallydev.rest.client.HttpClient.executeRequest(HttpClient.java:163) at com.rallydev.rest.client.HttpClient.doRe
java.io.IOException: HTTP/1.1 401 Full authentication is required to access this resource
at com.rallydev.rest.client.HttpClient.executeRequest(HttpClient.java:163)
at com.rallydev.rest.client.HttpClient.doRequest(HttpClient.java:145)
at com.rallydev.rest.client.ApiKeyClient.doRequest(ApiKeyClient.java:37)
at com.rallydev.rest.client.HttpClient.doGet(HttpClient.java:221)
at com.rallydev.rest.RallyRestApi.query(RallyRestApi.java:168)
代码如下:
String wsapiVersion = "v2.0";
restApi.setWsapiVersion(wsapiVersion);
restApi.setApplicationName(projectname);
QueryRequest testCaseRequest = new QueryRequest("Testsets");
if(null !=workspace && ""!=workspace)
testCaseRequest.setWorkspace(workspace);
QueryResponse testCaseQueryResponse = restApi.query(testCaseRequest);
这里出了什么问题?我要检查的一件事是,您是否在使用经过身份验证的代理服务器的公司网络中。除非您正确配置连接,否则代理将在您的请求恢复之前拒绝您的请求
我刚刚想到的第二件事是,您是否在标题中设置了正确的字段以启用APIKey的使用。Rally服务器希望将ZSESSIONID设置为APIKey,我相信。Hi@mayank jain,如果您能够修复,我正在使用Rally node api并面临类似问题。