flutter-chopper-tutorial-course
flutter-chopper-tutorial-course copied to clipboard
NoSuchMethodError: The getter 'body' was called on null. Receiver
when i have this code into interceptor
array i get this error:
[ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: NoSuchMethodError: The getter 'body' was called on null. Receiver:
null Tried calling: body Object.noSuchMethod (dart:core-patch/object_patch.dart:50:5) ChopperClient._interceptResponse (package:chopper/src/base.dart:151:19)
code:
(Response response) async {
if (response.statusCode == 404) {
chopperLogger.severe('404 NOT FOUND');
}
}
I was trying to post data to my API as your tutorials suggested but i endup getting this error [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: NoSuchMethodError: The getter 'types' was called on null.
I'm getting the exact same error as @elirehema over here. Any thoughts on how to solve this?
I'm getting the exact same error as @elirehema over here. Any thoughts on how to solve this?
Se lasquemo.
i have same issue if you find any solution then provide us solution here