Skip to main content
Question

unknown errors - possible problems with the server

  • 8 June 2023
  • 1 reply
  • 347 views

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:
 

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

Purchases] - DEBUG: ℹ️ API request started: POST /v1/receipts
ePurchases] - DEBUG: ℹ️ SKReceiptRefreshRequest finished
sPurchases] - 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: h"myCode"]
Purchases] - ERROR: 😿‼️ Unknown error.
Purchases] - DEBUG: ℹ️ API request failed: POST /v1/receipts: Unknown error.
TPurchases] - DEBUG: ℹ️ PostReceiptDataOperation: Finished
PPurchases] - DEBUG: ℹ️ Serial request done: POST receipts, 0 requests left in the queue
rPurchases] - INFO: 💰 Finishing transaction '2000000346016019' for product 'myCode'
nPurchases] - DEBUG: ℹ️ PostReceiptDataOperation: Started
BPurchases] - INFO: ℹ️ Parsing receipt
dPurchases] - DEBUG: ℹ️ StoreKit1Wrapper (0x000000028009daa0) removedTransaction: myCode 2000000346016019 2000000154674445 1
aPurchases] - ERROR: 😿‼️ Unknown error.
6Purchases] - 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

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