我使用appstore连接API。我使用了create,得到了500个错误(profile)。我检查了所有的字段,它们都是正确的。我也和苹果联系过,但他们没有回来。
请求:帖子: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/.'
}
]
}发布于 2019-09-08 12:37:07
解决了
证书数据必须是数组。
"certificates": {
"data": {
"id": "xxx",
"type": "certificates"
}
}至
"certificates": {
"data": [{
"id": "xxx",
"type": "certificates"
}]
}https://stackoverflow.com/questions/57841473
复制相似问题