Appstore 连接创建配置文件 api 不起作用
Appstore connect create profile api doesn't work
我使用应用商店连接 API。我使用创建配置文件 api,但出现 500 错误 (https://developer.apple.com/documentation/appstoreconnectapi/create_a_profile)。我检查了所有字段,它们都是正确的。我也联系过苹果,但他们没有return。
请求:[POST]:https://api.appstoreconnect.apple.com/v1/profiles
Body数据:
{
"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/.'
}
]
}
已解决
证书数据必须是数组
"certificates": {
"data": {
"id": "xxx",
"type": "certificates"
}
}
到
"certificates": {
"data": [{
"id": "xxx",
"type": "certificates"
}]
}
我使用应用商店连接 API。我使用创建配置文件 api,但出现 500 错误 (https://developer.apple.com/documentation/appstoreconnectapi/create_a_profile)。我检查了所有字段,它们都是正确的。我也联系过苹果,但他们没有return。
请求:[POST]:https://api.appstoreconnect.apple.com/v1/profiles
Body数据:
{
"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/.'
}
]
}
已解决
证书数据必须是数组
"certificates": {
"data": {
"id": "xxx",
"type": "certificates"
}
}
到
"certificates": {
"data": [{
"id": "xxx",
"type": "certificates"
}]
}