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
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}}}) {
ERROR: 🍎‼️ There was a problem with the App Store.
Hey
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?
![Strength In Numbers Badge](https://uploads-us-west-2.insided.com/revenuecat-en/attachment/ad9785ad-84a4-4bde-98db-d0de530785fc_thumb.png)
Hi
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
Hey
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:
![Strength In Numbers Badge](https://uploads-us-west-2.insided.com/revenuecat-en/attachment/ad9785ad-84a4-4bde-98db-d0de530785fc_thumb.png)
I will do.
![Strength In Numbers Badge](https://uploads-us-west-2.insided.com/revenuecat-en/attachment/ad9785ad-84a4-4bde-98db-d0de530785fc_thumb.png)
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.