使用 vsts rest 时出现错误 203 api

getting 203 with error when using vsts rest api

当我尝试使用 POST 请求在 VSTS 中创建新工作项时:

https://galilinetsky.visualstudio.com/Automatiom/_apis/wit/workitems/$Test%20Case?api-version=5.0-preview.2

我收到下一个回复:

Microsoft Internet Explorer's Enhanced Security Configuration is currently enabled on your environment. This enhanced level of security prevents our web integration experiences from displaying or performing correctly. To continue with your operation please disable this configuration or contact your administrator.

我做错了什么?

主要是PAT格式不对造成的

例如如果我在 PAT 之前添加冒号 :,则 REST API 将 return 与 203.

解决方案在类似的问题中找到:

Andy

the PAT has to be prefix[ed] by ":" before you base 64 encode it"

所以解决方案是:

  1. 创建个人访问令牌
  2. 前面加一个冒号(':')
  3. 使用 Base 64 编码新 PAT(前面有冒号)

瞧瞧!该 PAT 将不再给您 203 错误。