Skip to main content
Solved

🍎‼️ Error fetching offerings - but only from second run onwards


Forum|alt.badge.img+3

My iOS SwiftUI app is in Testflight, everything seemed OK, but since this weekend, there is this strange behaviour. When the app is run for the first time, everything works fine. But on second run (and all subsequent runs), offerings are not shown.

If the app is deleted from device and reinstalled, the issue repeats: first launch shows offerings, second launch does not.

______ Console ____________

2022-03-20 21:32:45.986445+0100 AppName[12345:1234567] [Purchases] - DEBUG: 👤 Identifying App User ID

2022-03-20 21:32:45.988665+0100 AppName[12345:1234567] [Purchases] - DEBUG: ℹ️ Debug logging enabled

2022-03-20 21:32:45.988708+0100 AppName[12345:1234567] [Purchases] - DEBUG: ℹ️ SDK Version - 4.2.0-SNAPSHOT

2022-03-20 21:32:45.988732+0100 AppName[12345:1234567] [Purchases] - DEBUG: 👤 No initial App User ID

2022-03-20 21:32:45.991893+0100 AppName[12345:1234567] [Purchases] - DEBUG: ℹ️ Sending latest CustomerInfo to delegate.

2022-03-20 21:32:45.992082+0100 AppName[12345:1234567] [Purchases] - DEBUG: ℹ️ Delegate set

2022-03-20 21:32:45.992151+0100 AppName[12345:1234567] [Purchases] - DEBUG: ℹ️ No cached Offerings, fetching from network

2022-03-20 21:32:46.361250+0100 AppName[12345:1234567] [Purchases] - DEBUG: ℹ️ GetOfferingsOperation: Started

2022-03-20 21:32:46.361551+0100 AppName[12345:1234567] [Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET subscribers/$RCAnonymousID%3A3a76a19a576341c1a6da114133489f00/offerings

2022-03-20 21:32:46.363966+0100 AppName[12345:1234567] [Purchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/$RCAnonymousID:3a76a19a576341c1a6da114133489f00/offerings

2022-03-20 21:32:46.364121+0100 AppName[12345:1234567] [Purchases] - DEBUG: ℹ️ applicationDidBecomeActive

2022-03-20 21:32:47.161337+0100 AppName[12345:1234567] [Purchases] - DEBUG: ℹ️ API request completed: GET /v1/subscribers/$RCAnonymousID:3a76a19a576341c1a6da114133489f00/offerings304

2022-03-20 21:32:47.163889+0100 AppName[12345:1234567] [Purchases] - ERROR: 😿‼️ There is an issue with your configuration. Check the underlying error for more details.

2022-03-20 21:32:47.165720+0100 AppName[12345:1234567] [Purchases] - ERROR: 🍎‼️ Error fetching offerings - There's a problem with your configuration. There are no products registered in the RevenueCat dashboard for your offerings. To configure products, follow the instructions in https://rev.cat/how-to-configure-offerings.

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

2022-03-20 21:32:47.165937+0100 AppName[12345:1234567] [Purchases] - ERROR: 😿‼️ There is an issue with your configuration. Check the underlying error for more details.

2022-03-20 21:32:47.166074+0100 AppName[12345:1234567] [Purchases] - ERROR: 🍎‼️ Error fetching offerings - There's a problem with your configuration. There are no products registered in the RevenueCat dashboard for your offerings. To configure products, follow the instructions in https://rev.cat/how-to-configure-offerings.

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

2022-03-20 21:32:47.166165+0100 AppName[12345:1234567] [Purchases] - DEBUG: ℹ️ GetOfferingsOperation: Finished

2022-03-20 21:32:47.166403+0100 AppName[12345:1234567] [Purchases] - DEBUG: ℹ️ Serial request done: GET subscribers/$RCAnonymousID%3A3a76a19a576341c1a6da114133489f00/offerings, 0 requests left in the queue

2022-03-20 21:32:47.166438+0100AppName[12345:1234567] [Purchases] - DEBUG: ℹ️ GetCustomerInfoOperation: Started

2022-03-20 21:32:47.166553+0100AppName[12345:1234567] [Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET subscribers/$RCAnonymousID%3A3a76a19a576341c1a6da114133489f00

2022-03-20 21:32:47.168110+0100AppName[12345:1234567] [Purchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/$RCAnonymousID:3a76a19a576341c1a6da114133489f00

2022-03-20 21:32:47.408575+0100 AppName[12345:1234567] [Purchases] - DEBUG: ℹ️ API request completed: GET /v1/subscribers/$RCAnonymousID:3a76a19a576341c1a6da114133489f00304

2022-03-20 21:32:47.409627+0100 AppName[12345:1234567] [Purchases] - ERROR: 😿‼️ Unable to find subscriber object in data:

[:]

2022-03-20 21:32:47.418514+0100 AppName[12345:1234567] [Purchases] - ERROR: 😿‼️ There was an unknown backend error.

2022-03-20 21:32:47.420419+0100 AppName[12345:1234567] [Purchases] - WARN: ⚠️ Attempt to update CustomerInfo from network failed.

There was an unknown backend error.

2022-03-20 21:32:47.420574+0100 AppName[12345:1234567] [Purchases] - DEBUG: ℹ️ GetCustomerInfoOperation: Finished

2022-03-20 21:32:47.420772+0100 AppName[12345:1234567] [Purchases] - DEBUG: ℹ️ Serial request done: GET subscribers/$RCAnonymousID%3A3a76a19a576341c1a6da114133489f00, 0 requests left in the queue

Best answer by NachoSoto

Thanks for the report! This was indeed a regression caused by a recent refactor that happened after the 4.1.0 release. I just submitted a fix: https://github.com/RevenueCat/purchases-ios/pull/1403

View original
Did this post help you find an answer to your question?

3 replies

Forum|alt.badge.img+3
  • Author
  • Helper
  • 3 replies
  • March 20, 2022

Ok, I reverted from main branch to 4.1.0 and the issue went away. So it looks like a bug in 4.2.0!


NachoSoto
Forum|alt.badge.img+5
  • Active Helper
  • 22 replies
  • Answer
  • March 21, 2022

Thanks for the report! This was indeed a regression caused by a recent refactor that happened after the 4.1.0 release. I just submitted a fix: https://github.com/RevenueCat/purchases-ios/pull/1403


Forum|alt.badge.img+3
  • Member
  • 8 replies
  • November 17, 2022
NachoSoto wrote:

Thanks for the report! This was indeed a regression caused by a recent refactor that happened after the 4.1.0 release. I just submitted a fix: https://github.com/RevenueCat/purchases-ios/pull/1403

I still experience this with 4.14.1 sometimes. See 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings