Skip to main content
Solved

ERROR: 🍎‼️ There was a problem with the App Store.

  • 12 December 2021
  • 5 replies
  • 531 views

I’m getting a successful “response” from the native iOS purchase dialog (it gives me the check and the happy ding sound) but RevenueCat fails. Unfortunately, the failure also takes like 30 seconds to be responded to so beyond it failing, the failure is a bad UX and it’s not really clear how to handle it. Below are the debug logs. This is in our sandbox environment:

/Purchases] - DEBUG: ℹ️ Debug logging enabled
nPurchases] - DEBUG: ℹ️ SDK Version - 3.12.6
nPurchases] - DEBUG: 👤 Initial App User ID - (null)
rPurchases] - DEBUG: 👤 Identifying App User ID: $RCAnonymousID:aa5680df790640a0823e5cd15d8d05ed
8Purchases] - DEBUG: ℹ️ Delegate set
Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET /subscribers/$RCAnonymousID0X0P+0aa5680df790640a0823e5cd15d8d05ed
7Purchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/$RCAnonymousID:aa5680df790640a0823e5cd15d8d05ed
8Purchases] - DEBUG: ℹ️ There's a request currently running and 0 requests left in the queue, queueing GET /subscribers/$RCAnonymousID0X0P+0aa5680df790640a0823e5cd15d8d05ed/offerings
0Purchases] - DEBUG: ℹ️ There's a request currently running and 1 requests left in the queue, queueing POST /subscribers/identify
Purchases] - DEBUG: ℹ️ collectDeviceIdentifiers called
:Purchases] - DEBUG: ℹ️ setAttributes called
cPurchases] - DEBUG: ℹ️ setFBAnonymousID called
rPurchases] - DEBUG: ℹ️ API request completed with status: GET /v1/subscribers/$RCAnonymousID:aa5680df790640a0823e5cd15d8d05ed 201
/Purchases] - DEBUG: ℹ️ Sending latest PurchaserInfo to delegate.
Purchases] - DEBUG: ℹ️ Serial request done: GET /subscribers/$RCAnonymousID0X0P+0aa5680df790640a0823e5cd15d8d05ed, 2 requests left in the queue
5Purchases] - DEBUG: ℹ️ Starting the next request in the queue, <RCHTTPRequest: httpMethod=GET
tPurchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET /subscribers/$RCAnonymousID0X0P+0aa5680df790640a0823e5cd15d8d05ed/offerings
iPurchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/$RCAnonymousID:aa5680df790640a0823e5cd15d8d05ed/offerings
vPurchases] - DEBUG: ℹ️ Vending PurchaserInfo from cache.
oPurchases] - DEBUG: ℹ️ API request completed with status: GET /v1/subscribers/$RCAnonymousID:aa5680df790640a0823e5cd15d8d05ed/offerings 200
EPurchases] - DEBUG: ℹ️ Requesting products from the store with identifiers: {(
>Purchases] - DEBUG: ℹ️ Serial request done: GET /subscribers/$RCAnonymousID0X0P+0aa5680df790640a0823e5cd15d8d05ed/offerings, 1 requests left in the queue
nPurchases] - DEBUG: ℹ️ Starting the next request in the queue, <RCHTTPRequest: httpMethod=POST
]Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request POST /subscribers/identify
BPurchases] - DEBUG: ℹ️ API request started: POST /v1/subscribers/identify
cPurchases] - DEBUG: ℹ️ API request completed with status: POST /v1/subscribers/identify 200
fPurchases] - DEBUG: 👤 Log in successful
tPurchases] - DEBUG: ℹ️ Serial request done: POST /subscribers/identify, 0 requests left in the queue
There are no requests currently running, starting request GET /subscribers/980c4e30-5acb-11ec-bffd-aa665a180610/offerings
aPurchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/980c4e30-5acb-11ec-bffd-aa665a180610/offerings
rPurchases] - DEBUG: ℹ️ Vending PurchaserInfo from cache.
bPurchases] - DEBUG: ℹ️ setEmail called
0Purchases] - DEBUG: ℹ️ API request completed with status: GET /v1/subscribers/980c4e30-5acb-11ec-bffd-aa665a180610/offerings 200
uPurchases] - DEBUG: ℹ️ Serial request done: GET /subscribers/980c4e30-5acb-11ec-bffd-aa665a180610/offerings, 0 requests left in the queue
sPurchases] - DEBUG: ℹ️ Products request finished.
rPurchases] - DEBUG: 💰 Retrieved SKProducts:
Purchases] - DEBUG: 💰 jsdev_12_1m - <SKProduct: 0x282df7e60>
ePurchases] - DEBUG: 💰 jsdev_59_1y_1w0 - <SKProduct: 0x282df7e20>
uPurchases] - DEBUG: ℹ️ 2 completion handlers waiting on products
Purchases] - WARN: ⚠️ The appUserID passed to logIn is the same as the one already cached. No action will be taken.
nPurchases] - DEBUG: ℹ️ Vending PurchaserInfo from cache.
TPurchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET /subscribers/980c4e30-5acb-11ec-bffd-aa665a180610/offerings
oPurchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/980c4e30-5acb-11ec-bffd-aa665a180610/offerings
/Purchases] - DEBUG: ℹ️ Vending PurchaserInfo from cache.
]Purchases] - DEBUG: ℹ️ setEmail called
1Purchases] - DEBUG: ℹ️ API request completed with status: GET /v1/subscribers/980c4e30-5acb-11ec-bffd-aa665a180610/offerings 200
uPurchases] - DEBUG: ℹ️ Serial request done: GET /subscribers/980c4e30-5acb-11ec-bffd-aa665a180610/offerings, 0 requests left in the queue
1Purchases] - WARN: ⚠️ The appUserID passed to logIn is the same as the one already cached. No action will be taken.
1Purchases] - DEBUG: ℹ️ Vending PurchaserInfo from cache.
bPurchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET /subscribers/980c4e30-5acb-11ec-bffd-aa665a180610/offerings
Purchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/980c4e30-5acb-11ec-bffd-aa665a180610/offerings
tPurchases] - DEBUG: ℹ️ Vending PurchaserInfo from cache.
1Purchases] - DEBUG: ℹ️ setEmail called
Purchases] - DEBUG: ℹ️ API request completed with status: GET /v1/subscribers/980c4e30-5acb-11ec-bffd-aa665a180610/offerings 200
uPurchases] - DEBUG: ℹ️ Serial request done: GET /subscribers/980c4e30-5acb-11ec-bffd-aa665a180610/offerings, 0 requests left in the queue
TPurchases] - DEBUG: ℹ️ There are no requests currently running, starting request POST /subscribers/980c4e30-5acb-11ec-bffd-aa665a180610/attributes
-Purchases] - DEBUG: ℹ️ API request started: POST /v1/subscribers/980c4e30-5acb-11ec-bffd-aa665a180610/attributes
cPurchases] - DEBUG: ℹ️ There's a request currently running and 0 requests left in the queue, queueing POST /subscribers/$RCAnonymousID0X0P+0aa5680df790640a0823e5cd15d8d05ed/attributes
-Purchases] - DEBUG: ℹ️ API request completed with status: POST /v1/subscribers/980c4e30-5acb-11ec-bffd-aa665a180610/attributes 200
Purchases] - INFO: ℹ️ Marking the following attributes as synced for App User ID: 980c4e30-5acb-11ec-bffd-aa665a180610: {
Purchases] - DEBUG: 😻 Subscriber attributes synced successfully for App User ID: 980c4e30-5acb-11ec-bffd-aa665a180610
IPurchases] - DEBUG: ℹ️ Serial request done: POST /subscribers/980c4e30-5acb-11ec-bffd-aa665a180610/attributes, 1 requests left in the queue
bPurchases] - DEBUG: ℹ️ Starting the next request in the queue, <RCHTTPRequest: httpMethod=POST
hPurchases] - DEBUG: ℹ️ There are no requests currently running, starting request POST /subscribers/$RCAnonymousID0X0P+0aa5680df790640a0823e5cd15d8d05ed/attributes
Purchases] - DEBUG: ℹ️ API request started: POST /v1/subscribers/$RCAnonymousID:aa5680df790640a0823e5cd15d8d05ed/attributes
sPurchases] - DEBUG: ℹ️ API request completed with status: POST /v1/subscribers/$RCAnonymousID:aa5680df790640a0823e5cd15d8d05ed/attributes 400
Purchases] - ERROR: 😿‼️ One or more of the attributes sent could not be saved.
cPurchases] - INFO: ℹ️ Marking the following attributes as synced for App User ID: $RCAnonymousID:aa5680df790640a0823e5cd15d8d05ed: {
4Purchases] - ERROR: 😿‼️ Error when syncing subscriber attributes. Details: One or more of the attributes sent could not be saved.
rPurchases] - DEBUG: ℹ️ Serial request done: POST /subscribers/$RCAnonymousID0X0P+0aa5680df790640a0823e5cd15d8d05ed/attributes, 0 requests left in the queue
Purchases] - DEBUG: ℹ️ applicationDidBecomeActive
iPurchases] - DEBUG: ℹ️ Vending Offerings from cache
.Purchases] - DEBUG: ℹ️ Vending Offerings from cache
SPurchases] - DEBUG: ℹ️ makePurchase
dPurchases] - DEBUG: 💰 Purchasing product from package  - jsdev_59_1y_1w0 in Offering default
Purchases] - DEBUG: ℹ️ PaymentQueue updatedTransaction: jsdev_59_1y_1w0 (null) ((null)) (null) - 0
sPurchases] - DEBUG: ℹ️ applicationDidBecomeActive
rPurchases] - DEBUG: ℹ️ PaymentQueue updatedTransaction: jsdev_59_1y_1w0 (null) (Error Domain=SKErrorDomain Code=0 "An unknown error occurred" UserInfo={NSLocalizedDescription=An unknown error occurred, NSUnderlyingError=0x28214d020 {Error Domain=ASDErrorDomain Code=500 "Unhandled exception" UserInfo={NSUnderlyingError=0x28214f960 {Error Domain=AMSErrorDomain Code=100 "Authentication Failed" UserInfo={NSLocalizedFailureReason=The verify credentials call failed., NSLocalizedDescription=Authentication Failed, NSUnderlyingError=0x28214e640 {Error Domain=AMSErrorDomain Code=15 "An unknown error occurred. Please try again." UserInfo=0x28292e500 (not displayed)}}}, NSLocalizedFailureReason=An unknown error occurred, NSLocalizedDescription=Unhandled exception}}}) (null) - 2
.Purchases] - ERROR: 🍎‼️ There was a problem with the App Store.
8Purchases] - DEBUG: 💰 Finishing transaction jsdev_59_1y_1w0 (null) ((null))
rPurchases] - DEBUG: ℹ️ PaymentQueue removedTransaction: jsdev_59_1y_1w0 (null) ((null) Error Domain=SKErrorDomain Code=0 "An unknown error occurred" UserInfo={NSLocalizedDescription=An unknown error occurred, NSUnderlyingError=0x28214d020 {Error Domain=ASDErrorDomain Code=500 "Unhandled exception" UserInfo={NSUnderlyingError=0x28214f960 {Error Domain=AMSErrorDomain Code=100 "Authentication Failed" UserInfo={NSLocalizedFailureReason=The verify credentials call failed., NSLocalizedDescription=Authentication Failed, NSUnderlyingError=0x28214e640 {Error Domain=AMSErrorDomain Code=15 "An unknown error occurred. Please try again." UserInfo=0x28292e500 (not displayed)}}}, NSLocalizedFailureReason=An unknown error occurred, NSLocalizedDescription=Unhandled exception}}}) {
 

5 replies

Userlevel 5
Badge +10

Hey @Tony 

Taking a look at that SKErrorDomain Code=0 , Apple docs suggest that it can be an issue with the sandbox account. Have you tried creating a new sandbox account and testing on a real device yet? 

Badge +5

Hi @tina,

 

I have been having the same issue for the last 4 days, and have been desperately trying to solve it.

I have created multiple new sandbox accounts, and I am testing on a real device. I thought, as per a few other posts on the platform, that the problem is just apple sandbox being the issue and that it will go away, however I have tried all options I can think of. 

 

Any help would be hugely appreciated

Userlevel 5
Badge +10

Hey @Calvinvw94 

Can you open a new community post and provide details about your issue? You can refer to this post for help on crafting on a post:

 

Badge +5

I will do.

Badge +5

@tina  do you mind taking a look at the post ive made in response to this :)

 

Reply