Solved

SERVICE_UNAVAILABLE Error when fetching products. An internal error occurred.

  • 4 January 2022
  • 5 replies
  • 854 views

Badge +2

I’ve properly installed RevenueCat in Flutter and connected Play Store and App Store properly in the dashboard. I’m still getting these error.

D/[Purchases] - DEBUG( 6650): ℹ️ Debug logging enabled
D/[Purchases] - DEBUG( 6650): ℹ️ SDK Version - 4.6.0
D/[Purchases] - DEBUG( 6650): 👤 Initial App User ID - null
D/[Purchases] - DEBUG( 6650): 👤 Identifying App User ID: $RCAnonymousID:538da561a80b40f4a23aa08aa6709f83
D/[Purchases] - DEBUG( 6650): ℹ️ Deleting old synced subscriber attributes that don't belong to $RCAnonymousID:538da561a80b40f4a23aa08aa6709f83
D/[Purchases] - DEBUG( 6650): ℹ️ App foregrounded
D/[Purchases] - DEBUG( 6650): ℹ️ PurchaserInfo cache is stale, updating from network in foreground.
D/[Purchases] - DEBUG( 6650): ℹ️ Offerings cache is stale, updating from network in foreground
D/[Purchases] - DEBUG( 6650): 😻 Offerings updated from network.
D/[Purchases] - DEBUG( 6650): ℹ️ Skipping updating pending purchase queue since BillingClient is not connected yet.
D/[Purchases] - DEBUG( 6650): ℹ️ No subscriber attributes to synchronize.
D/[Purchases] - DEBUG( 6650): ℹ️ Listener set
D/[Purchases] - DEBUG( 6650): ℹ️ Sending latest PurchaserInfo to listener.
D/[Purchases] - DEBUG( 6650): ℹ️ Starting connection for com.android.billingclient.api.BillingClientImpl@afa1d64
D/[Purchases] - DEBUG( 6650): ℹ️ Billing Service Setup finished for com.android.billingclient.api.BillingClientImpl@afa1d64
D/[Purchases] - DEBUG( 6650): ℹ️ Updating pending purchase queue
D/[Purchases] - DEBUG( 6650): ℹ️ API request started: GET /subscribers/%24RCAnonymousID%3A538da561a80b40f4a23aa08aa6709f83
D/[Purchases] - DEBUG( 6650): ℹ️ API request completed with status: GET /subscribers/%24RCAnonymousID%3A538da561a80b40f4a23aa08aa6709f83 304
D/[Purchases] - DEBUG( 6650): ℹ️ PurchaserInfo updated, sending to listener.
D/[Purchases] - DEBUG( 6650): ℹ️ API request started: GET /subscribers/%24RCAnonymousID%3A538da561a80b40f4a23aa08aa6709f83/offerings
D/[Purchases] - DEBUG( 6650): ℹ️ API request completed with status: GET /subscribers/%24RCAnonymousID%3A538da561a80b40f4a23aa08aa6709f83/offerings 304
D/[Purchases] - DEBUG( 6650): ℹ️ Querying purchases
D/[Purchases] - DEBUG( 6650): ℹ️ Cleaning previously sent tokens
D/[Purchases] - DEBUG( 6650): ℹ️ Tokens already posted: []
D/[Purchases] - DEBUG( 6650): ℹ️ Saving tokens []
D/[Purchases] - DEBUG( 6650): ℹ️ Tokens already posted: []
W/BillingClient( 6650): getSkuDetails() failed. Response code: 2
E/[Purchases] - ERROR( 6650): 🤖‼️ Error when fetching products DebugMessage: An internal error occurred.. ErrorCode: SERVICE_UNAVAILABLE.
E/[Purchases] - ERROR( 6650): 🤖‼️ There was a problem with the Play Store.
E/[Purchases] - ERROR( 6650): 🤖‼️ Error fetching offerings - PurchasesError(code=StoreProblemError, underlyingErrorMessage=Error when fetching products. DebugMessage: An internal error occurred.. ErrorCode: SERVICE_UNAVAILABLE., message='There was a problem with the Play Store.')

Flutter doctor log:

[✓] Flutter (Channel stable, 2.8.1, on macOS 11.1 20C69 darwin-x64, locale en-PH)
• Flutter version 2.8.1 at /Volumes/500/Development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 77d935af4d (3 weeks ago), 2021-12-16 08:37:33 -0800
• Engine revision 890a5fca2e
• Dart version 2.15.1

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0-rc1)
• Android SDK at /Users/kirkcharlesniverba/Library/Android/sdk
• Platform android-31, build-tools 32.0.0-rc1
• Java binary at: /Volumes/500/Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
• All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 12.5)
• Xcode at /Volumes/500/Applications/Xcode.app/Contents/Developer
! Flutter recommends a minimum Xcode version of 13.0.0.
Download the latest version or update via the Mac App Store.
• CocoaPods version 1.11.2

[✓] Chrome - develop for the web
• CHROME_EXECUTABLE = /Volumes/500/Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
• Android Studio at /Volumes/500/Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] VS Code (version 1.63.2)
• VS Code at /Volumes/500/Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.29.0

[✓] Connected device (2 available)
• sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
• Chrome (web) • chrome • web-javascript • Google Chrome 96.0.4664.110

! Doctor found issues in 1 category.

 

icon

Best answer by ryan 4 January 2022, 17:48

View original

5 replies

Badge +2

I understand that these problems may trigger the issue on Android:

Upon checking, it has been days that this issue is still persistent. Developer API Quota has not been exceeded. I’ve checked the package name on RevenueCat dashboard, and it’s correct.

Userlevel 5
Badge +9

`SERVICE_UNAVAILABLE` from Google would indicate their network is down. Reference: https://developer.android.com/reference/com/android/billingclient/api/BillingClient.BillingResponseCode#SERVICE_UNAVAILABLE

I wouldn’t expect this to persist for too long and it’s not something we’re hearing reports of so doesn’t seem to be widespread. I wonder if there’s some configuration that could also cause this error 🤔. Is there some permission that’s blocking Google Play Billing on the device? 

Here’s some more info I found on Stackoverflow about the error: https://stackoverflow.com/questions/15889480/iabresult-billing-service-unavailable-on-device-response-3billing-unavailab. Doesn’t seem like there’s a universal solution that’s worked for everyone but maybe something there would help?

 

 

I am facing same error, and trying to solve it, but still no break through. any solution ?

I understand that these problems may trigger the issue on Android:

Upon checking, it has been days that this issue is still persistent. Developer API Quota has not been exceeded. I’ve checked the package name on RevenueCat dashboard, and it’s correct.

I am facing same error. Could you tell me whether product Identifiers for Google Play Store and Apple App Store can be the same or not?

Badge

Getting the same issue here. Did anyone solve this?

 

BTW, how can you tell that you have added both apps properly in the Dashboard? 

Reply