iOS Error Domain=AMSErrorDomain Code=301 调用苹果的内购报错301

今天上午debug模式下调用苹果的内购报错301

// 通过内购ID去苹果商店寻找内购产品
NSSet *nsset = [NSSet setWithObjects:@“内购ID”, nil];
SKProductsRequest *request = [[SKProductsRequest alloc]initWithProductIdentifiers:nsset];
request.delegate = self;
[request start];

 

// 请求失败的代理方法
- (void)request:(SKRequest *)request didFailWithError:(NSError *)error
{
   NSLog(@"%@ ",error.description);
}

//-----------报错信息---------------

Error Domain=AMSErrorDomain Code=301 "Invalid Status Code" UserInfo={AMSStatusCode=502, NSLocalized Description=Invalid Status Code, NS Localized Failure Reason=The response has an invalid status code}

//-----------------------------------

咱也不知道为啥

网上也搜不到相关内容

baidu bing国内/国际 乱七八糟搜索引擎各种搜 没找到任何一篇关于这个报错的文章

所以先记录一下吧

不过我发现线上商店版本是没有影响的

只是在开发模式下调用内购会报错

开始以为代码问题一顿折腾找不到原因

还专门做个demo去测试内购 结果也一样

难道新版本Xcode问题?

又去别的项目看结果也是一样

一颗忐忑的心终于平静了

可喜的是现在已经正常了

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 15
    评论
ipa equestOrder IOS 14.8 版本手机报错,信息如下,其他版本不报错。 equestOrder failed: {"code":0,"message":"Payment_appleiap:Error Domain=SKErrorDomain Code=0 \"An unknown error occurred\" UserInfo={NSLocalizedDescription=An unknown error occurred, NSUnderlyingError=0x282b4a670 {Error Domain=ASDErrorDomain Code=500 \"Unhandled exception\" UserInfo={NSUnderlyingError=0x282b4bcf0 {Error Domain=AMSErrorDomain Code=203 \"Bag Load Failed\" UserInfo={NSLocalizedFailureReason=Unable to retrieve p2-product-offers-batch-limit because we failed to load the bag., NSLocalizedDescription=Bag Load Failed, NSUnderlyingError=0x282b4b510 {Error Domain=AMSErrorDomain Code=203 \"Bag Load Failed\" UserInfo=0x283049b40 (not displayed)}}}, NSLocalizedFailureReason=An unknown error occurred, NSLocalizedDescription=Unhandled exception}}},https://ask.dcloud.net.cn/article/282","errCode":0,"errMsg":"Payment_appleiap:Error Domain=SKErrorDomain Code=0 \"An unknown error occurred\" UserInfo={NSLocalizedDescription=An unknown error occurred, NSUnderlyingError=0x282b4a670 {Error Domain=ASDErrorDomain Code=500 \"Unhandled exception\" UserInfo={NSUnderlyingError=0x282b4bcf0 {Error Domain=AMSErrorDomain Code=203 \"Bag Load Failed\" UserInfo={NSLocalizedFailureReason=Unable to retrieve p2-product-offers-batch-limit because we failed to load the bag., NSLocalizedDescription=Bag Load Failed, NSUnderlyingError=0x282b4b510 {Error Domain=AMSErrorDomain Code=203 \"Bag Load Failed\" UserInfo=0x283049b40 (not displayed)}}}, NSLocalizedFailureReason=An unknown error occurred, NSLocalizedDescription=Unhandled exception}}}
06-03

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 15
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值