【问题标题】:Appstore connect create profile api doesn't workAppstore 连接创建配置文件 api 不起作用
【发布时间】:2020-01-10 11:32:00
【问题描述】:

我使用 appstore 连接 API。我使用创建配置文件 api 并收到 500 错误 (https://developer.apple.com/documentation/appstoreconnectapi/create_a_profile)。我检查了所有字段,它们是正确的。我也联系了苹果,但他们没有回。

请求:[POST]:https://api.appstoreconnect.apple.com/v1/profiles

身体数据:

{
    "data": {
        "attributes": {
            "name": "xxx",
            "profileType": "IOS_APP_STORE"
        },
        "relationships": {
            "bundleId": {
                "data": {
                    "id": "xxx",
                    "type": "bundleIds"
                }
            },
            "certificates": {
                "data": {
                    "id": "xxx",
                    "type": "certificates"
                }
            }
        },
        "type": "profiles"
    }
}

回复:

{
  errors: [
    {
      status: '500',
      code: 'UNEXPECTED_ERROR',
      title: 'An unexpected error occurred.',
      detail: 'An unexpected error occurred on the server side. If this issue ' +
        'continues, contact us at https://developer.apple.com/contact/.'
    }
  ]
}

【问题讨论】:

    标签: ios app-store-connect apple-developer


    【解决方案1】:

    已解决

    证书数据必须是数组

    "certificates": {
          "data": {
                "id": "xxx",
                "type": "certificates"
          }
     }
    

    "certificates": {
          "data": [{
                "id": "xxx",
                "type": "certificates"
          }]
     }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-07-05
      • 2021-02-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-29
      • 2020-11-30
      • 2015-01-25
      相关资源
      最近更新 更多