Question

FLutter: The error handler of Future.catchError must return a value of the future's type

  • 13 October 2021
  • 0 replies
  • 41 views

Badge

After upgrading my flutter app to flutter 2.5.2, and also updating my purchases_flutter package to 3.4.5, I am getting this error reported in my production app (I haven’t seen it in debug / test):

Invalid argument(s) (onError): The error handler of Future.catchError must return a value of the future's type
  • Crashed in non-app: 

    future_impl.dart in _FutureListener.handleError
  • purchases_flutter.dart in Purchases.getOfferings within purchases_flutter

Unfortunately my error reporter (Sentry) doesn’t give me any more information (eg line numbers, stack trace). Can someone at revenue cat please check if there is an incorrect usage of future error handling in somewhere in the flutter SDK relating to Purchases.getOfferings? Any advice on what could be causing this error?

Thanks


0 replies

Be the first to reply!

Reply