Skip to main content
Solved

SERVICE_UNAVAILABLE Error when fetching products. An internal error occurred.

  • January 4, 2022
  • 6 replies
  • 3114 views

Forum|alt.badge.img+3

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.

 

Best answer by ryan

`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?

 

 

This post has been closed for comments

6 replies

Forum|alt.badge.img+2
  • New Member
  • 1 reply
  • December 7, 2022

Same problem. I have no idea how to solve that. After Googled and search at Stack Overflow, all running like a charm at iOS, but in Android 🐒💩


Forum|alt.badge.img+3
  • New Member
  • 1 reply
  • September 22, 2022

Getting the same issue here. Did anyone solve this?

 

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


Forum|alt.badge.img+2
  • New Member
  • 1 reply
  • April 4, 2022

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?


Forum|alt.badge.img
  • New Member
  • 2 replies
  • March 4, 2022

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


ryan
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 391 replies
  • Answer
  • January 4, 2022

`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?

 

 


Forum|alt.badge.img+3
  • Author
  • New Member
  • 1 reply
  • January 4, 2022

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.