【问题标题】:Microsoft Graph upload imageMicrosoft Graph 上传图片
【发布时间】:2019-01-15 12:02:34
【问题描述】:

我正在尝试向https://graph.microsoft.com/v1.0/me/photo/$value 发出 PUT 请求 使用 Microsoft Graph 资源管理器

但我收到内部错误 500。我做错了什么还是 Graph API 有问题

    {
    "error": {
        "code": "ErrorInternalServerError",
        "message": "An internal server error occurred. The operation failed., The file you chose isn't an image. Please choose a different file.",
        "innerError": {
            "request-id": "60c801ff-7d83-47a1-9d38-c01a4769ec1b",
            "date": "2018-08-08T09:28:18"
        }
    }

【问题讨论】:

    标签: azure microsoft-graph-api put


    【解决方案1】:

    在当前状态下,您无法使用 Microsoft Graph Explorer 上传二进制文件。使用 Postman 上传二进制文件。使用“User.ReadWrite”作为权限和 Content-Type:Image/Jpeg 发出 PUT 请求。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-04-19
      • 2011-12-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多