Hi all, I'm trying to run the sample code - it gives these errors and empty lists of available subscriptions and purchases
2022-07-22 17:32:51.978942+0300 SKDemo[11045:586088] [Default] Error enumerating unfinished transactions for first transaction listener: Error Domain=ASDErrorDomain Code=500 "Unhandled exception" UserInfo={NSUnderlyingError=0x283f8a7c0 {Error Domain=AMSErrorDomain Code=301 "Invalid Status Code" UserInfo={NSLocalizedDescription=Invalid Status Code, AMSURL=https://mzstorekit-sb.itunes.apple.com/inApps/v1/history?REDACTED, AMSStatusCode=404, AMSServerPayload={
errorCode = 4040003;
errorMessage = "App not found.";
okButtonString = OK;
}, NSLocalizedFailureReason=The response has an invalid status code}}, NSLocalizedFailureReason=An unknown error occurred, NSLocalizedDescription=Unhandled exception}
2022-07-22 17:32:52.426875+0300 SKDemo[11045:586088] [Default] Error enumerating all current transactions: Error Domain=ASDErrorDomain Code=500 "Unhandled exception" UserInfo={NSUnderlyingError=0x283f8a790 {Error Domain=AMSErrorDomain Code=301 "Invalid Status Code" UserInfo={NSLocalizedDescription=Invalid Status Code, AMSURL=https://mzstorekit-sb.itunes.apple.com/inApps/v1/history?REDACTED, AMSStatusCode=404, AMSServerPayload={
errorCode = 4040003;
errorMessage = "App not found.";
okButtonString = OK;
}, NSLocalizedFailureReason=The response has an invalid status code}}, NSLocalizedFailureReason=An unknown error occurred, NSLocalizedDescription=Unhandled exception}
How do I fix it? Thank you in advance.
Topic:
App & System Services
SubTopic:
StoreKit
Tags:
In-App Purchase
StoreKit
Subscriptions
wwdc2022-110404