-
Notifications
You must be signed in to change notification settings - Fork 229
Description
Hi,
The API that is caching has a null value and cached is not accepting it:
E/flutter ( 5080): [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: type 'Null' is not a subtype of type 'String' in type cast
E/flutter ( 5080): #0 _$CacheObjFromJson (package:dio_http_cache/src/core/obj.g.dart:11:17)
E/flutter ( 5080): #1 new CacheObj.fromJson (package:dio_http_cache/src/core/obj.dart:43:7)
E/flutter ( 5080): #2 DiskCacheStore.getCacheObj (package:dio_http_cache/src/store/store_disk.dart:118:44)
E/flutter ( 5080):
E/flutter ( 5080): #3 CacheManager._pullFromCache (package:dio_http_cache/src/core/manager.dart:32:13)
E/flutter ( 5080):
E/flutter ( 5080): #4 CacheManager.pullFromCacheBeforeMaxAge (package:dio_http_cache/src/core/manager.dart:56:15)
E/flutter ( 5080):
E/flutter ( 5080): #5 DioCacheManager._onRequest (package:dio_http_cache/src/manager_dio.dart:48:33)
E/flutter ( 5080):
E/flutter ( 5080):
Do you have any work around on this?