gpt4 book ai didi

tfs - 团队基础服务器 : HTTP code 400 - Bad Request

转载 作者:行者123 更新时间:2023-12-04 23:28:48 25 4
gpt4 key购买 nike

Team Foundation Server 有问题。 “HTTP code 400: Bad Request”错误消息出现在 Visual Studio 中的不同位置(请参阅带屏幕截图的附件)(例如,在单击“待定更改”、“源代码管理资源管理器”、“获取最新版本”等之后... ).

我们公司有 3 名开发人员。错误消息是随机的,有时它可以工作,然后错误消息出现...或者错误消息仅出现在计算机 1 和计算机 2 上。第三台计算机正常。第二天,开发者1正常,另外两个出现错误信息...

我们的环境:

客户:3 台 PC,Visual Studio Professional 2015,Windows 10

TFS 服务器:Win2012 R2、TFS 2015 Update 3

SQL 服务器:SQL 2012 标准

附件:

Screenshots with error

Another screenshots

从 wireshark 登录:

Hypertext Transfer Protocol
POST /tfs/defaultcollection/Services/v3.0/LocationService.asmx HTTP/1.1\r\n
[Expert Info (Chat/Sequence): POST /tfs/defaultcollection/Services/v3.0/LocationService.asmx HTTP/1.1\r\n]
[POST /tfs/defaultcollection/Services/v3.0/LocationService.asmx HTTP/1.1\r\n]
[Severity level: Chat]
[Group: Sequence]
Request Method: POST
Request URI: /tfs/defaultcollection/Services/v3.0/LocationService.asmx
Request Version: HTTP/1.1
User-Agent: Team Foundation (devenv.exe, 14.102.25619.0, Pro, SKU:31)\r\n
X-TFS-Version: 1.0.0.0\r\n
Accept-Language: cs-CZ\r\n
X-TFS-Session: eb5ed6e7-04ea-4ae5-8444-211cd145a568, Connect\r\n
X-VSS-Agent: TFS: af687f1c-d07d-42ca-b185-15a5a10d20ca\r\n
Content-Type: application/soap+xml; charset=utf-8\r\n
SOAPAction: "http://microsoft.com/webservices/Connect"\r\n
Host: tfssrv:8080\r\n
Content-Length: 244\r\n
[Content length: 244]
Expect: 100-continue\r\n
Accept-Encoding: gzip\r\n
Connection: Keep-Alive\r\n
\r\n
[Full request URI: http://tfssrv:8080/tfs/defaultcollection/Services/v3.0/LocationService.asmx]
[HTTP request 1/3]
[Response in frame: 1933]
[Next request in frame: 1935]
File Data: 244 bytes

eXtensible Markup Language
<s:Envelope
xmlns:s="http://www.w3.org/2003/05/soap-envelope">
<s:Body>
<Connect
xmlns="http://microsoft.com/webservices/">
<connectOptions>
1
</connectOptions>
<lastChangeId>
331005
</lastChangeId>
<features>
1
</features>
</Connect>
</s:Body>
</s:Envelope>



Hypertext Transfer Protocol
POST /tfs/defaultcollection/Services/v3.0/LocationService.asmx HTTP/1.1\r\n
[Expert Info (Chat/Sequence): POST /tfs/defaultcollection/Services/v3.0/LocationService.asmx HTTP/1.1\r\n]
[POST /tfs/defaultcollection/Services/v3.0/LocationService.asmx HTTP/1.1\r\n]
[Severity level: Chat]
[Group: Sequence]
Request Method: POST
Request URI: /tfs/defaultcollection/Services/v3.0/LocationService.asmx
Request Version: HTTP/1.1
User-Agent: Team Foundation (devenv.exe, 14.102.25619.0, Pro, SKU:31)\r\n
X-TFS-Version: 1.0.0.0\r\n
Accept-Language: cs-CZ\r\n
X-TFS-Session: a5d31d36-1b78-4602-b765-e2a7082abef9, Connect\r\n
X-VSS-Agent: TFS: af687f1c-d07d-42ca-b185-15a5a10d20ca\r\n
Content-Type: application/soap+xml; charset=utf-8\r\n
SOAPAction: "http://microsoft.com/webservices/Connect"\r\n
Host: tfssrv:8080\r\n
Content-Length: 244\r\n
[Content length: 244]
Expect: 100-continue\r\n
Accept-Encoding: gzip\r\n
Connection: Keep-Alive\r\n
\r\n
[Full request URI: http://tfssrv:8080/tfs/defaultcollection/Services/v3.0/LocationService.asmx]
[HTTP request 2/2]
[Response in frame: 695]
File Data: 244 bytes


Hypertext Transfer Protocol
HTTP/1.1 400 Bad Request\r\n
[Expert Info (Chat/Sequence): HTTP/1.1 400 Bad Request\r\n]
[HTTP/1.1 400 Bad Request\r\n]
[Severity level: Chat]
[Group: Sequence]
Request Version: HTTP/1.1
Status Code: 400
Response Phrase: Bad Request
Content-Type: text/html; charset=us-ascii\r\n
Server: Microsoft-HTTPAPI/2.0\r\n
Date: Mon, 31 Oct 2016 13:23:34 GMT\r\n
Connection: close\r\n
Content-Length: 326\r\n
[Content length: 326]
\r\n
[HTTP response 2/2]
[Time since request: 0.000720000 seconds]
[Prev response in frame: 692]
[Request in frame: 694]
File Data: 326 bytes


Line-based text data: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">\r\n
<HTML><HEAD><TITLE>Bad Request</TITLE>\r\n
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>\r\n
<BODY><h2>Bad Request - Invalid Verb</h2>\r\n
<hr><p>HTTP Error 400. The request verb is invalid.</p>\r\n
</BODY></HTML>\r\n

最佳答案

要缩小问题范围,您可以尝试重置 IIS 服务器。如果您使用任何代理,请尝试删除代理并重试。还要查看TFS服务器上的事件 View ,看是否有相关信息可以解决问题。

根据您的错误截图和错误 ID TF400813。下次当你无法通过 VS 连接到 TFS 时,你可以试试这个:

  1. 在 Visual Studio 的右上角,您会发现一个彩色的盒子里面有你的名字或你的首字母缩写。单击向下箭头,然后然后是账户设置。在打开的窗口中,请点击“签名out"在窗口的左上部分。
  2. 重新启动 Visual Studio 并重新登录后,错误应该走了。

关于tfs - 团队基础服务器 : HTTP code 400 - Bad Request,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40341617/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com