Fast-Android-Networking icon indicating copy to clipboard operation
Fast-Android-Networking copied to clipboard

Can't debug on upload, How to make debugging work on upload?

Open indraAsLesmana opened this issue 6 years ago • 4 comments

I always disable this code, when test uploading : OkHttpClient okHttpClient = new OkHttpClient() .newBuilder() .addNetworkInterceptor(new ChuckInterceptor(this)) .build(); AndroidNetworking.enableLogging(HttpLoggingInterceptor.Level.BODY); AndroidNetworking.initialize(getApplicationContext(), okHttpClient);

Upload work only if enableLogging disable, with simple initialize like this: AndroidNetworking.initialize(getApplicationContext());

How to make debugging work on upload?

thanks.

indraAsLesmana avatar May 01 '18 08:05 indraAsLesmana

For now you can change the Level.BODY to Level.Header, if that helps

amitshekhariitbhu avatar May 02 '18 08:05 amitshekhariitbhu

thanks for your response and the great library, hope it will fix on next version.

indraAsLesmana avatar May 04 '18 01:05 indraAsLesmana

Same issue happened here. Still no fixes?

ixsans avatar May 18 '20 23:05 ixsans

@ixsans This is related to HttpLoggingInterceptor. Try the latest version of HttpLoggingInterceptor from OkHttp, if that works for you.

amitshekhariitbhu avatar May 19 '20 03:05 amitshekhariitbhu