Question

Unity + Google play store | Error fetching offerings :"There was a problem with the store:"Error when fetching products - DebugMessage: An internal error occurred.. ErrorCode: SERVICE_UNAVAILABLE."

  • 5 July 2024
  • 1 reply
  • 14 views

Badge +2

I am using Unity 2021.3.27f1 and RevenueCat version 6.10.0.

My code works fine on iOS, but I encountered this error message on Android (real device) when get offerings. This error occurs whether I use Unity's build and run feature or upload it to the internal testing on the Google Play Console:
 

_getOfferings {"error":{"code":2,"message":"There was a problem with the store.",
"readableErrorCode":"StoreProblemError",
"readable_error_code":"StoreProblemError",
"underlyingErrorMessage":"Error when fetching products - DebugMessage: An internal error occurred.. ErrorCode: SERVICE_UNAVAILABLE."}}

I've checked my settings in RevenueCat:

  1. The Google Play package name matches across Google Play Console, Unity, and RevenueCat.
  2. The package and offerings are correctly set up in RevenueCat.
  3. It’s not an issue with the developer API, as the payment feature is only being tested by me and hasn't been officially launched.

Please advise on how to fix this error. Thank you!


This post has been closed for comments

1 reply

Badge +2

It turns out I resolved the issue myself.

It seems that the account logged into this device was not authorized in the Google Play Console.

After removing the unauthorized account and restarting the device, everything works correctly.