【问题标题】:Azure Devops 203 Non-Authoritative Information with REST APIAzure Devops 203 带有 REST API 的非权威信息
【发布时间】:2020-03-18 08:53:03
【问题描述】:

在为 Azure DevOps 调用 REST API 时,我收到错误 203 Non-Authoritative Information。 其实我想在 REST API 的帮助下触发发布管道。

【问题讨论】:

标签: azure azure-devops azure-devops-rest-api azure-api-apps


【解决方案1】:

203 错误代码通常由不正确的 PAT 格式引起。看起来您可能未能通过身份验证,因为 PAT 未正确编码为 base64

确保TYPEBasic Auth,并在Password中输入正确的PAT格式

Authorization of Postman.

【讨论】:

  • 谢谢,上述解决方案有效,但为什么我不能在 Azure DevOps 中使用“Bearer Token”或 OAuth 2.0
【解决方案2】:
Yes, we are passing the PAT wrongly.

只是另一种方式,COPY PAT 将其手动编码为 base64,例如 -https://www.base64encode.org/

注意 - 确保在 PAT 上添加“:”作为 prefix,然后对其进行编码。

如前所述,将编码值复制到 Authorization 的标头 -

希望这会对一些人有所帮助,唯一的问题是确保我们在提到的位置添加“:”。

【讨论】:

    猜你喜欢
    • 2022-10-15
    • 2020-02-13
    • 2019-08-03
    • 2019-11-12
    • 1970-01-01
    • 2020-06-12
    • 1970-01-01
    • 1970-01-01
    • 2022-09-23
    相关资源
    最近更新 更多