Solved

"Error when fetching products" only happening in production version

  • 12 May 2023
  • 1 reply
  • 110 views

Badge +5

I’ve installed revenuecat for subscription product. It’s working well for iOS.

 

For android It’s also working well when I’m trying it as a license tester.

After after I made the app live on google play, calling Purchases.purchaseProduct() method throws the below error

 

{"nativeStackAndroid":[],'userinfo":
{"underlyingErrorMessage":"Error when fetching products.
DebugMessage: An internal error occurred.. ErrorCode:
SERVICE_UNAVAILABLE.""readable_error_code":"Stor
eProblemError",'readableErrorCode":"StoreProblemE
rror','message":"There was a problem with the Play
Store."'code":2},'message":" There was a problem with the
Play Store."'code":"2""userCancelled":false,'line":59,'column’
:1119,"sourceURL":"index.android.bundle"}

The strangest thing is, it’s not showing when I’m trying to purchase as license tester.

 

Any help would be highly appreciated.

icon

Best answer by Michael Fogel 15 May 2023, 23:17

View original

1 reply

Userlevel 4
Badge +6

Hey There! 

 

This error that you are seeing is forwarded from Google directly and indicates there was a problem connecting to the Play Store.

 

The problems that will trigger this on Android:

To resolve this, If everything is/was working while testing, you shouldn't have to do anything to handle this error in production. RevenueCat will automatically retry any purchase failures so no data is lost.

 

This should resolve itself in due time, but make sure to keep checking for any updates! 

Reply