我试图访问Visual Studio Team Services(VSTS)中的Team rooms功能 如果我向以下地址发出请求,请使用有效令牌: HTTPS:?//.visualstudio.com/DefaultCollection/_apis/chat/rooms API-版本= 1.0
我收到错误401.我已经测试了令牌,我可以毫无问题地向其他端点发出请求。
status code: 401, headers {
"Content-Length" = 10828;
"Content-Type" = "text/html; charset=utf-8";
Date = "Fri, 17 Feb 2017 09:36:17 GMT";
Server = "Microsoft-IIS/10.0";
"Strict-Transport-Security" = "max-age=31536000; includeSubDomains";
"Www-Authenticate" = Bearer;
p3p = "CP=\"CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT\"";
"x-content-type-options" = nosniff;
"x-frame-options" = SAMEORIGIN;
"x-powered-by" = "ASP.NET";
"x-tfs-processid" = "925585e2-35c8-4691-b646-c96e48f04ee0";
"x-tfs-serviceerror" = "TF400813%3a+Resource+not+available+for+anonymous+access.+Client+authentication+required.";
"x-tfs-soapexception" = "%3c%3fxml+version%3d%221.0%22+encoding%3d%22utf-8%22%3f%3e%3csoap%3aEnvelope+xmlns%3asoap%3d%22http%3a%2f%2fwww.w3.org%2f2003%2f05%2fsoap-envelope%22%3e%3csoap%3aBody%3e%3csoap%3aFault%3e%3csoap%3aCode%3e%3csoap%3aValue%3esoap%3aReceiver%3c%2fsoap%3aValue%3e%3csoap%3aSubcode%3e%3csoap%3aValue%3eInvalidIdentityException%3c%2fsoap%3aValue%3e%3c%2fsoap%3aSubcode%3e%3c%2fsoap%3aCode%3e%3csoap%3aReason%3e%3csoap%3aText+xml%3alang%3d%22en%22%3eTF400813%3a+Resource+not+available+for+anonymous+access.+Client+authentication+required.%3c%2fsoap%3aText%3e%3c%2fsoap%3aReason%3e%3c%2fsoap%3aFault%3e%3c%2fsoap%3aBody%3e%3c%2fsoap%3aEnvelope%3e";
"x-vss-s2stargetservice" = "00000002-0000-8888-8000-000000000000/visualstudio.com";
} })