Solved

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

  • 12 December 2021
  • 5 replies
  • 465 views

Badge +3
  • Dedicated Member
  • 22 replies

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
[Purchases] - DEBUG: ℹ️ SDK Version - 3.12.6
[Purchases] - DEBUG: 👤 Initial App User ID - (null)
[Purchases] - DEBUG: 👤 Identifying App User ID: $RCAnonymousID:aa5680df790640a0823e5cd15d8d05ed
[Purchases] - DEBUG: ℹ️ Delegate set
[Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET /subscribers/$RCAnonymousID0X0P+0aa5680df790640a0823e5cd15d8d05ed
[Purchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/$RCAnonymousID:aa5680df790640a0823e5cd15d8d05ed
[Purchases] - DEBUG: ℹ️ There's a request currently running and 0 requests left in the queue, queueing GET /subscribers/$RCAnonymousID0X0P+0aa5680df790640a0823e5cd15d8d05ed/offerings
[Purchases] - 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
[Purchases] - DEBUG: ℹ️ setFBAnonymousID called
[Purchases] - 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
[Purchases] - DEBUG: ℹ️ Starting the next request in the queue, <RCHTTPRequest: httpMethod=GET
[Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET /subscribers/$RCAnonymousID0X0P+0aa5680df790640a0823e5cd15d8d05ed/offerings
[Purchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/$RCAnonymousID:aa5680df790640a0823e5cd15d8d05ed/offerings
[Purchases] - DEBUG: ℹ️ Vending PurchaserInfo from cache.
[Purchases] - DEBUG: ℹ️ API request completed with status: GET /v1/subscribers/$RCAnonymousID:aa5680df790640a0823e5cd15d8d05ed/offerings 200
[Purchases] - DEBUG: ℹ️ Requesting products from the store with identifiers: {(
[Purchases] - DEBUG: ℹ️ Serial request done: GET /subscribers/$RCAnonymousID0X0P+0aa5680df790640a0823e5cd15d8d05ed/offerings, 1 requests left in the queue
[Purchases] - DEBUG: ℹ️ Starting the next request in the queue, <RCHTTPRequest: httpMethod=POST
[Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request POST /subscribers/identify
[Purchases] - DEBUG: ℹ️ API request started: POST /v1/subscribers/identify
[Purchases] - DEBUG: ℹ️ API request completed with status: POST /v1/subscribers/identify 200
[Purchases] - DEBUG: 👤 Log in successful
[Purchases] - DEBUG: ℹ️ Serial request done: POST /subscribers/identify, 0 requests left in the queue
[Purchases] - 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
[Purchases] - DEBUG: ℹ️ Vending PurchaserInfo from cache.
[Purchases] - DEBUG: ℹ️ setEmail called
[Purchases] - DEBUG: ℹ️ API request completed with status: GET /v1/subscribers/980c4e30-5acb-11ec-bffd-aa665a180610/offerings 200
[Purchases] - DEBUG: ℹ️ Serial request done: GET /subscribers/980c4e30-5acb-11ec-bffd-aa665a180610/offerings, 0 requests left in the queue
[Purchases] - DEBUG: ℹ️ Products request finished.
[Purchases] - DEBUG: 💰 Retrieved SKProducts:
[Purchases] - DEBUG: 💰 jsdev_12_1m - <SKProduct: 0x282df7e60>
[Purchases] - DEBUG: 💰 jsdev_59_1y_1w0 - <SKProduct: 0x282df7e20>
[Purchases] - 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.
[Purchases] - DEBUG: ℹ️ Vending PurchaserInfo from cache.
[Purchases] - 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
[Purchases] - DEBUG: ℹ️ Vending PurchaserInfo from cache.
[Purchases] - DEBUG: ℹ️ setEmail called
[Purchases] - DEBUG: ℹ️ API request completed with status: GET /v1/subscribers/980c4e30-5acb-11ec-bffd-aa665a180610/offerings 200
[Purchases] - DEBUG: ℹ️ Serial request done: GET /subscribers/980c4e30-5acb-11ec-bffd-aa665a180610/offerings, 0 requests left in the queue
[Purchases] - WARN: ⚠️ The appUserID passed to logIn is the same as the one already cached. No action will be taken.
[Purchases] - DEBUG: ℹ️ Vending PurchaserInfo from cache.
[Purchases] - 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
[Purchases] - DEBUG: ℹ️ Vending PurchaserInfo from cache.
[Purchases] - DEBUG: ℹ️ setEmail called
[Purchases] - DEBUG: ℹ️ API request completed with status: GET /v1/subscribers/980c4e30-5acb-11ec-bffd-aa665a180610/offerings 200
[Purchases] - DEBUG: ℹ️ Serial request done: GET /subscribers/980c4e30-5acb-11ec-bffd-aa665a180610/offerings, 0 requests left in the queue
[Purchases] - 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
[Purchases] - 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
[Purchases] - DEBUG: ℹ️ Serial request done: POST /subscribers/980c4e30-5acb-11ec-bffd-aa665a180610/attributes, 1 requests left in the queue
[Purchases] - DEBUG: ℹ️ Starting the next request in the queue, <RCHTTPRequest: httpMethod=POST
[Purchases] - 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
[Purchases] - 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.
[Purchases] - INFO: ℹ️ Marking the following attributes as synced for App User ID: $RCAnonymousID:aa5680df790640a0823e5cd15d8d05ed: {
[Purchases] - ERROR: 😿‼️ Error when syncing subscriber attributes. Details: One or more of the attributes sent could not be saved.
[Purchases] - DEBUG: ℹ️ Serial request done: POST /subscribers/$RCAnonymousID0X0P+0aa5680df790640a0823e5cd15d8d05ed/attributes, 0 requests left in the queue
[Purchases] - DEBUG: ℹ️ applicationDidBecomeActive
[Purchases] - DEBUG: ℹ️ Vending Offerings from cache
[Purchases] - DEBUG: ℹ️ Vending Offerings from cache
[Purchases] - DEBUG: ℹ️ makePurchase
[Purchases] - DEBUG: 💰 Purchasing product from package  - jsdev_59_1y_1w0 in Offering default
[Purchases] - DEBUG: ℹ️ PaymentQueue updatedTransaction: jsdev_59_1y_1w0 (null) ((null)) (null) - 0
[Purchases] - DEBUG: ℹ️ applicationDidBecomeActive
[Purchases] - 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.
[Purchases] - DEBUG: 💰 Finishing transaction jsdev_59_1y_1w0 (null) ((null))
[Purchases] - 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}}}) {
 

icon

Best answer by tina 17 December 2021, 19:39

View original

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