Closed hss01248 closed 1 year ago
Describe the bug report error when reponse body is empty
E/flutter (30457): [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: Converting object to an encodable object failed: Instance of 'ApiResponse' E/flutter (30457): #0 _JsonStringifier.writeObject (dart:convert/json.dart:794:7) E/flutter (30457): #1 _JsonStringifier.writeList (dart:convert/json.dart:845:9) E/flutter (30457): #2 _JsonStringifier.writeJsonValue (dart:convert/json.dart:824:7) E/flutter (30457): #3 _JsonStringifier.writeObject (dart:convert/json.dart:785:9) E/flutter (30457): #4 _JsonStringStringifier.printOn (dart:convert/json.dart:983:17) E/flutter (30457): #5 _JsonStringStringifier.stringify (dart:convert/json.dart:968:5) E/flutter (30457): #6 JsonEncoder.convert (dart:convert/json.dart:345:30) E/flutter (30457): #7 JsonCodec.encode (dart:convert/json.dart:231:45) E/flutter (30457): #8 jsonEncode (dart:convert/json.dart:114:10) E/flutter (30457): #9 SharedPreferencesManager.addApiResponse (package:chucker_flutter/src/helpers/shared_preferences_manager.dart:43:7) E/flutter (30457): E/flutter (30457): #10 ChuckerDioInterceptor._saveResponse (package:chucker_flutter/src/interceptors/dio_interceptor.dart:61:5) E/flutter (30457): E/flutter (30457): #11 ChuckerDioInterceptor.onResponse (package:chucker_flutter/src/interceptors/dio_interceptor.dart:38:5) E/flutter (30457):
Describe the bug report error when reponse body is empty
E/flutter (30457): [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: Converting object to an encodable object failed: Instance of 'ApiResponse' E/flutter (30457): #0 _JsonStringifier.writeObject (dart:convert/json.dart:794:7) E/flutter (30457): #1 _JsonStringifier.writeList (dart:convert/json.dart:845:9) E/flutter (30457): #2 _JsonStringifier.writeJsonValue (dart:convert/json.dart:824:7) E/flutter (30457): #3 _JsonStringifier.writeObject (dart:convert/json.dart:785:9) E/flutter (30457): #4 _JsonStringStringifier.printOn (dart:convert/json.dart:983:17) E/flutter (30457): #5 _JsonStringStringifier.stringify (dart:convert/json.dart:968:5) E/flutter (30457): #6 JsonEncoder.convert (dart:convert/json.dart:345:30) E/flutter (30457): #7 JsonCodec.encode (dart:convert/json.dart:231:45) E/flutter (30457): #8 jsonEncode (dart:convert/json.dart:114:10) E/flutter (30457): #9 SharedPreferencesManager.addApiResponse (package:chucker_flutter/src/helpers/shared_preferences_manager.dart:43:7) E/flutter (30457):
E/flutter (30457): #10 ChuckerDioInterceptor._saveResponse (package:chucker_flutter/src/interceptors/dio_interceptor.dart:61:5)
E/flutter (30457):
E/flutter (30457): #11 ChuckerDioInterceptor.onResponse (package:chucker_flutter/src/interceptors/dio_interceptor.dart:38:5)
E/flutter (30457):