Solved

Offerings returned empty on iOS 14 - RCPurchasesErrorDomain Code=23

  • 3 December 2021
  • 41 replies
  • 6456 views

Badge +5

We seem to be getting a `Domain=RCPurchasesErrorDomain Code=23` error when trying to retrieve offerings on iOS 14. The full log is as follows:

2021-12-03 10:22:16.648693+0200 Today[34769:534081] [Purchases] - ERROR: SKRequest failed: UNKNOWN_ERROR2021-12-03 10:22:16.649045+0200 Today[34769:491827] [Purchases] - ERROR: Error fetching offerings - Error Domain=RCPurchasesErrorDomain Code=23 "None of the products registered in the RevenueCat dashboard could be fetched from App Store Connect (or the StoreKit Configuration file if one is being used).This could be due to a timeout, or a problem in your configuration.More information: https://rev.cat/why-are-offerings-empty" UserInfo={NSLocalizedDescription=None of the products registered in the RevenueCat dashboard could be fetched from App Store Connect (or the StoreKit Configuration file if one is being used).This could be due to a timeout, or a problem in your configuration.More information: https://rev.cat/why-are-offerings-empty, readable_error_code=CONFIGURATION_ERROR}

The same procedure appears to be working properly on iOS 15 and the setup on both RC dashboard and App Store Connect appears to be correct. Any ideas on where this is coming from or what we can do to resolve it?

icon

Best answer by ryan 26 January 2022, 21:45

View original

41 replies

Badge +4

I am continuing to receive errors on iOS 14 only. I’m confused as to why this question is “Solved”

Badge

I don’t think you need to mark close this issue. After reading all articles i came to know that you are not able to resolve the issue. Then let us know clearly can able to fix this or not so we it can’t affect our users. Sorry for my disappointing reply but you need to fix the issue or you can make a discord group to help developers. You guys are doing amazing work but please help us. So we can be on our clients timeline.

2022-04-09 00:54:41.339931+0500[Purchases] - ERROR: 😿‼️ There is an issue with your configuration. Check the underlying error for more details.

2022-04-09 00:54:41.341036+0500 [Purchases] - ERROR: 🍎‼️ Error fetching offerings - There's a problem with your configuration. None of the products registered in the RevenueCat dashboard could be fetched from App Store Connect (or the StoreKit Configuration file if one is being used).

More information: https://rev.cat/why-are-offerings-empty

nil

2022-04-09 00:54:41.341576+0500 [Purchases] - ERROR: 😿‼️ There is an issue with your configuration. Check the underlying error for more details.

2022-04-09 00:54:41.342041+0500 [Purchases] - ERROR: 🍎‼️ Error fetching offerings - There's a problem with your configuration. None of the products registered in the RevenueCat dashboard could be fetched from App Store Connect (or the StoreKit Configuration file if one is being used).

More information: https://rev.cat/why-are-offerings-empty

Badge

New Revenuecat user here, first couple lines of code and I got hit by this problem, so disappointing tbh.

Is there any solutions that can help?

Userlevel 5
Badge +9

@Leon the App Store servers had some issues today which could be related. To clarify, this error is either caused by a configuration issue in App Store Connect or some connection issue on Apple’s servers.

Userlevel 5
Badge +9

From the error message, it could be something with the StoreKit Configuration file as well. If you’re making changes to the build target (iOS 14 vs iOS 15) you may need to re-upload the public certificate to the RevenueCat dashboard: https://docs.revenuecat.com/docs/apple-app-store#step-4-uploading-the-public-certificate-to-revenuecat

Testing on a physical device could also help and is what I always try to recommend. 

 

 

Badge

Also experiencing the same issue on a revenue cat install - I am a new user, but getting this error 23 on both simulator and on-device built from Xcode. 

Badge

still having  this issue in iOS 14 simulator
revenue cat version 4.6.1 via spm

Badge +3

Our subscription offering in iOS flutter stopped working, exisitng subscribers are not getting the benefits. How can be fix this, we are losing customers because of this. Can you please help to resolve this?

Badge

I have the same issue using a physical device with iOS 14. Please fix it. Thank you!

Badge +5

Hello Ryan and thanks for the response. We did re-upload the certificate but to no avail unfortunately, the error still persists. We have also tried on device and still getting the same behaviour. Any other ideas?

Badge +2

Hi!

I am getting this error lately. iOS 16. App is a Flutter App which worked fine for almost a year. This thread is marked as Solved, but I cannot see the solution.

Can anyone help on this?

Badge

React Native Error on IOS:

None of the products registered in the RevenueCat dashboard could be fetched from App Store Connect (or the StoreKit Configuration file if one is being used)

Badge +3

Hi, 
Same thing for me. Revenue cat is working on Play Store, but not iOS 16 lately. 
Does someone know what is causing that?
Thank you

Badge +2

I’ve hit what appears to be the same error when upgrading to v4 of RevenueCat. I only see the error on iOS 14 simulators, not iOS 15 simulators.

2022-05-09 20:40:33.375235+0100 ReadingList[59729:6027896] [Purchases] - ERROR: 🍎‼️ SKProductsRequest failed! error: UNKNOWN_ERROR
2022-05-09 20:40:37.096275+0100 ReadingList[59729:6027907] [Purchases] - ERROR: 🍎‼️ SKProductsRequest failed! error: UNKNOWN_ERROR
2022-05-09 20:40:40.814378+0100 ReadingList[59729:6027908] [Purchases] - ERROR: 🍎‼️ SKProductsRequest failed! error: UNKNOWN_ERROR
2022-05-09 20:40:44.535124+0100 ReadingList[59729:6027904] [Purchases] - ERROR: 🍎‼️ SKProductsRequest failed! error: UNKNOWN_ERROR
2022-05-09 20:40:48.254384+0100 ReadingList[59729:6027904] [Purchases] - ERROR: 🍎‼️ SKProductsRequest failed! error: UNKNOWN_ERROR
2022-05-09 20:40:51.949562+0100 ReadingList[59729:6027904] [Purchases] - ERROR: 🍎‼️ SKProductsRequest failed! error: UNKNOWN_ERROR
2022-05-09 20:40:55.674803+0100 ReadingList[59729:6027907] [Purchases] - ERROR: 🍎‼️ SKProductsRequest failed! error: UNKNOWN_ERROR
2022-05-09 20:40:59.403505+0100 ReadingList[59729:6027907] [Purchases] - ERROR: 🍎‼️ SKProductsRequest failed! error: UNKNOWN_ERROR
2022-05-09 20:40:59.403887+0100 ReadingList[59729:6027907] [Purchases] - ERROR: 🍎‼️ SKProductsRequest took longer than 30 seconds, cancelling request and returning an empty set. This seems to be an App Store quirk. If this is happening to you consistently, you might want to try using a new Sandbox account. More information: https://rev.cat/skproductsrequest-hangs
2022-05-09 20:40:59.405896+0100 ReadingList[59729:6027907] [Purchases] - ERROR: 🍎‼️ SKProductsRequest took too long to complete.
2022-05-09 20:40:59.409066+0100 ReadingList[59729:6027907] [Purchases] - ERROR: 🍎‼️ Error fetching offerings - The operation couldn’t be completed. (RevenueCat.OfferingsManager.Error error 1.)
2022-05-09 20:40:59.409439+0100 ReadingList[59729:6027907] [Purchases] - ERROR: 🍎‼️ SKProductsRequest took too long to complete.
2022-05-09 20:41:03.136522+0100 ReadingList[59729:6028353] [Purchases] - ERROR: 🍎‼️ SKProductsRequest failed! error: UNKNOWN_ERROR
2022-05-09 20:41:06.824559+0100 ReadingList[59729:6027904] [Purchases] - ERROR: 🍎‼️ SKProductsRequest failed! error: UNKNOWN_ERROR
2022-05-09 20:41:06.825812+0100 ReadingList[59729:6027904] [Purchases] - ERROR: 😿‼️ callback not found for failing request: <SKProductsRequest: 0x6000031e95a0>

 

Userlevel 5
Badge +9

Hmmm that’s strange it’s not working on a physical device it sounded like a StoreKit config issue being OS specific. I logged into App Store Connect recently and noticed they did update the Paid Applications Agreement, so you could triple check that document is signed since it could cause things to suddenly break. 

That specific error indicates that the product IDs configured in RevenueCat are not available through StoreKit, so something in this article is most likely the underlying cause: 

 

Badge +5

Hey, Ryan. The paid applications agreement is active on our account and no updates appear to be available. We went through the article but everything appears to be correctly setup on both ASC and RC as far as we can understand. It’s weird that we can reproduce this only on iOS 14 and not on iOS 15, so I guess that the general setup should be fine. Is there anything iOS 14 specific that we need to be aware of?

Badge +7

I think this has something to do with revenuecat being blocked on some WiFi networks.

Userlevel 5
Badge +9

@Neybox Digital can you confirm the SDK platform and version that you’re running? It should be one of the first debug log outputs. I’m going to try and build our sample app and see if I hit this. Never heard of an OS specific issue fetching products on a physical device.

Badge +1

i know this is an old post but i had this issue and it was somehow related to caching. my products were not in the correct status in the connect store. i corrected that and then it still didnt work. It wasnt until i tried proxying the requests through Charles proxy that it started working. 

The proxy “fixed” it because it busted the cache somehow. afterward i just restarted my computer and everythign worked without the proxy. 

so… the old “turn it off and back on” trick fixed the issue ultimately.

 

Same. New app, Error 23, even though manually trying curl with app auth returns non empty subscriber/entitlements/offerings/packages

Badge

I am seeing this error in production on a range of iOS versions. It does not impact most of my users but I am not sure why it is impacting the ones it is. Any insight would be valuable.

Userlevel 5
Badge +9

This happens in production when the SKProductsRequest fails: https://developer.apple.com/documentation/storekit/skproductsrequest

Usually pretty rare, but sometimes there’s moments of higher unavailability. There’s no network request on the RevenueCat side so we don’t have a ton of insights into the error rate at scale since we don’t log anything.

Badge

Thanks Ryan, I am seeing a growing number of this error. Retrying does not resolve the problem. If there is no network request why does the error mention a potential timeout?

PlatformException(23, None of the products registered in the RevenueCat dashboard could be fetched from App Store Connect (or the StoreKit Configuration file if one is being used).This could be due to a timeout, or a problem in your configuration.More information: https://rev.cat/why-are-offerings-empty, {code: 23, message: None of the products registered in the RevenueCat dashboard could be fetched from App Store Connect (or the StoreKit Configuration file if one is being used).This could be due to a timeout, or a problem in your configuration.More information: https://rev.cat/why-are-offerings-empty, underlyingErrorMessage: , readable_error_code: CONFIGURATION_ERROR, readableErrorCode: CONFIGURATION_ERROR}, null)

 

A configuration error also seems unlikely because this is working for most users. This error started happening after updating the Flutter SDK to 3.8.0. 

Userlevel 5
Badge +9

If there is no network request why does the error mention a potential timeout?

Sorry, no network request to RevenueCat - the timeout is on SKProductRequest that connects to Apple. 

 

A configuration error also seems unlikely because this is working for most users.

Yeah, configuration issue would be 100% failure. This is most common in sandbox if something isn’t hooked up right which is why we link to that article in the error message - I don’t think it’s applying in your case if you’re seeing it randomly in production.

 

The RevenueCat SDKs used to not return an error in these cases and products/offerings would just be null if they couldn’t be retrieved. We added an error response toward the end of last year so the getOfferings call would return an error: https://github.com/RevenueCat/purchases-ios/pull/879. This way would could provide a more useful message to developers and the end result is still the same - offerings are empty. This could explain why you started seeing it only after updating the SDK. The empty Offerings have always been happening but now you have visibility into it with an error being returned? 

Badge

@ryan Thank you for the clarification. 

It sounds like resolving this error might not be something you can do. My in app offerings do not really change. If I configured an alternative way to fetch them so that I can display them to my users what would happen if a user tried to purchase them and I passed a valid product id to the revenue cat sdk even though it was not loaded via the revenuecat get offerings API?

Reply