Unable to retrieve p2-product-offers-batch-limit

I have iOS 13 Beta 3 phone and have issues all over the place. As I was fixing them one by one, this error is giving me particular headaches and help would be more than welcome:
Error code: 203, Bag Load Failed
Unable to retrieve p2-product-offers-batch-limit because we failed to load the bag.

Error Domain=AMSErrorDomain Code=203 “Bag Load Failed”
UserInfo={NSLocalizedFailureReason=We failed to load the bag.
NSLocalizedDescription=Bag Load Failed,
{Error Domain=NSURLErrorDomain Code=-1200
“An SSL error has occurred and a secure connection to the server cannot be made.”
NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?,
_NSURLErrorRelatedURLSessionTaskErrorKey=( “LocalDataTask .<16>” ),
NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made.,
https://bag.itunes.apple.com/bag.xml?os=iOS&osVersion=13.0&deviceClass=iPhone&product=com.apple.appstored&productVersion=1.0&profile=appstored&profileVersion=1&storefront=143441-1,29&format=json&buildVariant=seed, _kCFStreamErrorDomainKey=3, NSErrorFai

1 Like

Hey there!
this doesn’t look like a StoreKit issue. Are you using an SSL proxy like Charles? Or on a corporate network with a built-in proxy?

Seeing “An SSL error has occurred” has me suspecting that it’s primarily a connection issue. I’d try again on a device using 4G and see if you can reproduce the problem

If you’re encountering issues with the retrieveProductOffersBatch method in the StoreKit API, there are several troubleshooting steps you can take to identify and resolve the problem:

  1. Refer to the StoreKit API Documentation: This should be your initial point of reference to understand the correct way to use the retrieveProductOffersBatch method.
  2. Use a Compatible API Version: Keep in mind that retrieveProductOffersBatch was introduced in iOS 13. If you’re on an older iOS version, consider using an alternative API version.
  3. Verify Network Status: A stable network connection is essential; also, ensure no firewall is blocking access to the StoreKit API.
  4. Log the Request and Response: If the issue persists, detailed logging can help you identify what’s going wrong.
  5. Contact Apple Support: As a last resort, Apple’s support team can provide specialized assistance.

By following these steps in sequence, you should be able to troubleshoot most issues you encounter with the retrieveProductOffersBatch method."