Skip to main content
Question

Amazon: Error fetching offerings - PurchasesError(code=UnknownError, underlyingErrorMessage=Timeout error trying to get Amazon user data., message='Unknown error.')


Forum|alt.badge.img+4

I am encountering the following errors while testing my app’s integration with the Amazon Store.

😿‼️ PurchasesError(code=UnknownError, underlyingErrorMessage=Timeout error trying to get Amazon user data., message='Unknown error.')

I have already implemented purchases using RevenueCat for Google Play and Apple, and everything works fine on those stores.

However, when I try to connect to Amazon, I receive this error. I am testing with a user account that is a tester on LAT, using an Amazon Fire HD 8 (2022) with Amazon App Tester (with a loaded JSON configuration).

Any ideas on what might be going wrong and how to resolve this? I'm stuck on this issue. The app is ready for the Amazon Appstore, but the subscription issue is blocking it from functioning properly.

 

Flutter 3.29.0

purchases_flutter: ^8.6.0

Log:

D/[Purchases] - DEBUG(12948): ℹ️ Debug logging enabled

D/[Purchases] - DEBUG(12948): ℹ️ SDK Version - 8.13.0

D/[Purchases] - DEBUG(12948): ℹ️ Package name …...

D/[Purchases] - DEBUG(12948): 👤 Initial App User ID - null

D/[Purchases] - DEBUG(12948): ℹ️ Purchases configured with response verification: DISABLED

D/[Purchases] - DEBUG(12948): 👤 Identifying App User ID: $RCAnonymousID:056753aa98c542b6b09b490ea056f012

D/[Purchases] - DEBUG(12948): ℹ️ Deleting old synced subscriber attributes that don't belong to $RCAnonymousID:056753aa98c542b6b09b490ea056f012

D/d (12948): Appstore SDK - Sandbox Mode: PurchasingListener registered: com.revenuecat.purchases.amazon.AmazonBilling@63de026

D/d (12948): Appstore SDK - Sandbox Mode: PurchasingListener Context: android.app.Application@df059e2

D/[Purchases] - DEBUG(12948): ℹ️ Updating pending purchase queue

D/[Purchases] - DEBUG(12948): ℹ️ App foregrounded

D/[Purchases] - DEBUG(12948): ℹ️ CustomerInfo cache is stale, updating from network in foreground.

D/[Purchases] - DEBUG(12948): ℹ️ Listener set

D/[Purchases] - DEBUG(12948): ℹ️ Sending latest CustomerInfo to listener.

D/[Purchases] - DEBUG(12948): Retrieving customer info with policy: FETCH_CURRENT

D/[Purchases] - DEBUG(12948): ℹ️ Updating pending purchase queue

D/[Purchases] - DEBUG(12948): ℹ️ Offerings cache is stale, updating from network in foreground

D/[Purchases] - DEBUG(12948): 😻 Start Offerings update from network.

D/[Purchases] - DEBUG(12948): Request already scheduled with jitter delay, adding existing callbacks to unjittered request with key: BackgroundAwareCallbackCacheKey(cacheKey=[/subscribers/%24RCAnonymousID%3A056753aa98c542b6b09b490ea056f012/offerings], appInBackground=false)

D/[Purchases] - DEBUG(12948): ℹ️ Updating pending purchase queue

D/[Purchases] - DEBUG(12948): ℹ️ No subscriber attributes to synchronize.

D/[Purchases] - DEBUG(12948): Getting storefront from cache was null.

D/[Purchases] - DEBUG(12948): API request started: GET /subscribers/%24RCAnonymousID%3A056753aa98c542b6b09b490ea056f012/offerings

D/[Purchases] - DEBUG(12948): API request completed with status: GET /subscribers/%24RCAnonymousID%3A056753aa98c542b6b09b490ea056f012/offerings 304

D/e (12948): Appstore SDK - Sandbox Mode: sendPurchaseUpdatesRequest/sendGetUserData first:3b7df011-99c8-47fa-b840-de81283ecc4d

D/e (12948): Appstore SDK - Sandbox Mode: sendPurchaseUpdatesRequest/sendGetUserData first:1d55296c-1b9f-4022-ba4f-cdad15b89176

D/e (12948): Appstore SDK - Sandbox Mode: sendPurchaseUpdatesRequest/sendGetUserData first:d992724f-bc71-4cda-a04a-31228d1f1e1c

D/[Purchases] - DEBUG(12948): Retrieving customer info with policy: CACHED_OR_FETCHED

D/[Purchases] - DEBUG(12948): ℹ️ Vending CustomerInfo from cache.

D/[Purchases] - DEBUG(12948): ℹ️ Checking if cache is stale AppInBackground false

D/[Purchases] - DEBUG(12948): ℹ️ CustomerInfo cache is stale, updating from network in foreground.

D/[Purchases] - DEBUG(12948): ℹ️ Updating pending purchase queue

D/e (12948): Appstore SDK - Sandbox Mode: sendPurchaseUpdatesRequest/sendGetUserData first:1fc7ba60-6b50-4779-a2ab-4368ddccfe21

D/[Purchases] - DEBUG(12948): Retrieving customer info with policy: CACHED_OR_FETCHED

D/[Purchases] - DEBUG(12948): ℹ️ Vending CustomerInfo from cache.

D/[Purchases] - DEBUG(12948): ℹ️ Checking if cache is stale AppInBackground false

D/[Purchases] - DEBUG(12948): ℹ️ CustomerInfo cache is stale, updating from network in foreground.

D/[Purchases] - DEBUG(12948): ℹ️ Updating pending purchase queue

D/[Purchases] - DEBUG(12948): Retrieving customer info with policy: CACHED_OR_FETCHED

D/[Purchases] - DEBUG(12948): ℹ️ Vending CustomerInfo from cache.

D/[Purchases] - DEBUG(12948): ℹ️ Checking if cache is stale AppInBackground false

D/[Purchases] - DEBUG(12948): ℹ️ CustomerInfo cache is stale, updating from network in foreground.

D/[Purchases] - DEBUG(12948): ℹ️ Updating pending purchase queue

D/e (12948): Appstore SDK - Sandbox Mode: sendPurchaseUpdatesRequest/sendGetUserData first:dd256b06-f8f0-48f9-92d9-9332a0541504

D/e (12948): Appstore SDK - Sandbox Mode: sendPurchaseUpdatesRequest/sendGetUserData first:10e03459-7c30-4f79-9c41-082e0fb46598

D/[Purchases] - DEBUG(12948): Retrieving customer info with policy: CACHED_OR_FETCHED

D/[Purchases] - DEBUG(12948): ℹ️ Vending CustomerInfo from cache.

D/[Purchases] - DEBUG(12948): ℹ️ Checking if cache is stale AppInBackground false

D/[Purchases] - DEBUG(12948): ℹ️ CustomerInfo cache is stale, updating from network in foreground.

D/[Purchases] - DEBUG(12948): ℹ️ Updating pending purchase queue

D/[Purchases] - DEBUG(12948): Retrieving customer info with policy: CACHED_OR_FETCHED

D/[Purchases] - DEBUG(12948): ℹ️ Vending CustomerInfo from cache.

D/[Purchases] - DEBUG(12948): ℹ️ Checking if cache is stale AppInBackground false

D/[Purchases] - DEBUG(12948): ℹ️ CustomerInfo cache is stale, updating from network in foreground.

D/[Purchases] - DEBUG(12948): ℹ️ Updating pending purchase queue

D/e (12948): Appstore SDK - Sandbox Mode: sendPurchaseUpdatesRequest/sendGetUserData first:ccb28c4f-69a2-4117-b563-df6fd504184f

D/e (12948): Appstore SDK - Sandbox Mode: sendPurchaseUpdatesRequest/sendGetUserData first:b529689d-dea4-4f13-a6b3-716f0eb9b121

E/[Purchases] - ERROR(12948): Error obtaining storefront in Amazon: PurchasesError(code=UnknownError, underlyingErrorMessage=Timeout error trying to get Amazon user data., message='Unknown error.')

E/[Purchases] - ERROR(12948): 😿‼️ PurchasesError(code=UnknownError, underlyingErrorMessage=Timeout error trying to get Amazon user data., message='Unknown error.')

E/[Purchases] - ERROR(12948): 🤖‼️ Error fetching offerings - PurchasesError(code=UnknownError, underlyingErrorMessage=Timeout error trying to get Amazon user data., message='Unknown error.')

D/[Purchases] - DEBUG(12948): ℹ️ No cached Offerings, fetching from network

D/[Purchases] - DEBUG(12948): 😻 Start Offerings update from network.

D/[Purchases] - DEBUG(12948): Request already scheduled with jitter delay, adding existing callbacks to unjittered request with key: BackgroundAwareCallbackCacheKey(cacheKey=[/subscribers/%24RCAnonymousID%3A056753aa98c542b6b09b490ea056f012/offerings], appInBackground=false)

D/[Purchases] - DEBUG(12948): Getting storefront from cache was null.

D/[Purchases] - DEBUG(12948): API request started: GET /subscribers/%24RCAnonymousID%3A056753aa98c542b6b09b490ea056f012/offerings

D/[Purchases] - DEBUG(12948): API request completed with status: GET /subscribers/%24RCAnonymousID%3A056753aa98c542b6b09b490ea056f012/offerings 304

E/[Purchases] - ERROR(12948): 🤖‼️ Error fetching offerings - PurchasesError(code=UnknownError, underlyingErrorMessage=Timeout error trying to get Amazon user data., message='Unknown error.')

 

2 replies

Forum|alt.badge.img+8
  • RevenueCat Staff
  • 509 replies
  • March 7, 2025

Hi, can you confirm the following

  1. Did you add the Amazon public key (the .pem file) to your Android Studio project? Amazon documents this here: https://developer.amazon.com/docs/appstore-sdk/integrate-appstore-sdk.html#configure-key (if you already have, try repeating this step, as it has solved the error for some of our customers in the past)
  2. Did you add live app testers to your build, and you are makings sure to login with that account: https://www.revenuecat.com/docs/amazon-store-sandbox-testing
  3. Please go through our troubleshooter for Amazon and make sure everything has been properly configured there: https://www.revenuecat.com/docs/offerings/troubleshooting-offerings

Forum|alt.badge.img+4
  • Author
  • New Member
  • 3 replies
  • March 10, 2025

Finally, it helps to add the following to my AndroidManifest.xml:

<queries>

...

   <package android:name="com.amazon.sdktestclient" />

   <package android:name="com.amazon.venezia" />

</queries>

 

Thanks to RevenueCat support for their help!


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