Issue I’m testing my repository code that use Chopper, and am now getting the below errors, that isn’t in my code: Null check operator used on a null value package:chopper/src/interceptor.dart 195:58 HttpLoggingInterceptor.onResponse package:chopper/src/base.dart 215:23 ChopperClient._interceptResponse package:chopper/src/base.dart 346:17 ChopperClient._processResponse package:chopper/src/base.dart 341:12
Continue readingTag: chopper
Getting the common "null check operator on a null value" when testing using Chopper client
Issue I’m testing my repository code that use Chopper, and am now getting the below errors, that isn’t in my code: Null check operator used on a null value package:chopper/src/interceptor.dart 195:58 HttpLoggingInterceptor.onResponse package:chopper/src/base.dart 215:23 ChopperClient._interceptResponse package:chopper/src/base.dart 346:17 ChopperClient._processResponse package:chopper/src/base.dart 341:12
Continue readingFlutter Web – Can't change GET request's referer in header
Issue I’m trying to call a GET request using chopper with a custom referer. But everytime it calls, it only uses the default referer. I added a custom header and it still works Solution You can not change referrer programmatically.
Continue readingFlutter Chopper 401 renew & retry interceptor
Issue I’m using Chopper in my flutter app and what I need to do is, when I get 401 response status code (unauthorized) from my API, I must call another endpoint that will refresh my token and save it into
Continue readingFlutter Chopper 401 renew & retry interceptor
Issue I’m using Chopper in my flutter app and what I need to do is, when I get 401 response status code (unauthorized) from my API, I must call another endpoint that will refresh my token and save it into
Continue readingFlutter Web – Can't change GET request's referer in header
Issue I’m trying to call a GET request using chopper with a custom referer. But everytime it calls, it only uses the default referer. I added a custom header and it still works Solution You can not change referrer programmatically.
Continue readingUsing Chopper networking library with flutter_bloc library in flutter
Issue I am using the Chopper library to invoke Rest APIs and flutter_bloc for my business logic. My Chopper class import ‘package:chopper/chopper.dart’; import ‘../model/statement_res.dart’; import ‘model_converter.dart’; part ‘statement_api_service.chopper.dart’; @ChopperApi() abstract class StatementApiService extends ChopperService { // 6 @Get( path: ‘getStatement’)
Continue reading