Question

unknown errors - possible problems with the server

  • 8 June 2023
  • 1 reply
  • 218 views

Badge +2

I am have flutter app(ios/android), usinng purchases-flutter 4.13.0(dev), 4.12.0(prod).
The error appeared 4-5 days ago, it is in prod and dev. 

For android - this error does not appear every time but today very often. 4-5 days ago it was working

PlatformException(10, Error performing request., {code: 10, message: Error performing request., readableErrorCode: NetworkError, readable_error_code: NetworkError, underlyingErrorMessage: Unable to resolve host "api.revenuecat.com": No address associated with hostname}, null)

For iOS - I tried this code
 

final purchaserInfo = await Purchases.getCustomerInfo();

and it is never completed

it is logs:
 

[Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request POST receipts

[Purchases] - DEBUG: ℹ️ API request started: POST /v1/receipts
[Purchases] - DEBUG: ℹ️ SKReceiptRefreshRequest finished
[Purchases] - DEBUG: ℹ️ Loaded receipt from url file:///private/var/mobile/Containers/Data/Application/D1593594-6743-4414-BC41-E34FC5560BEE/StoreKit/sandboxReceipt
[Purchases] - DEBUG: ℹ️ Skipping products request for these products because they were already cached: ["myCode"]
[Purchases] - ERROR: 😿‼️ Unknown error.
[Purchases] - DEBUG: ℹ️ API request failed: POST /v1/receipts: Unknown error.
[Purchases] - DEBUG: ℹ️ PostReceiptDataOperation: Finished
[Purchases] - DEBUG: ℹ️ Serial request done: POST receipts, 0 requests left in the queue
[Purchases] - INFO: 💰 Finishing transaction '2000000346016019' for product 'myCode'
[Purchases] - DEBUG: ℹ️ PostReceiptDataOperation: Started
[Purchases] - INFO: ℹ️ Parsing receipt
[Purchases] - DEBUG: ℹ️ StoreKit1Wrapper (0x000000028009daa0) removedTransaction: myCode 2000000346016019 2000000154674445 1
[Purchases] - ERROR: 😿‼️ Unknown error.
[Purchases] - ERROR: 💰 Product purchase for 'myCode' failed with error: Error Domain=RevenueCat.ErrorCode Code=0 "Unknown error." UserInfo={rc_backend_error_code=0, NSLocalizedDescription=Unknown error.

this cycle is repeated(POST /v1/receipts ->😿‼️ Unknown error)

The subscription logic in my application is broken. I need urgent help


1 reply

Userlevel 3
Badge +8

Hi,

Happy to help here. For Android, that’s an issue with connecting to RC from the device. Are you able to access RC or other websites from the browser?

A network issue may be the case for iOS as well.

Reply