We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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?
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
@jerlai15 Did you find any solutions? I facing it when response json is large
No branches or pull requests
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?
The text was updated successfully, but these errors were encountered: