Fast-Android-Networking
Fast-Android-Networking copied to clipboard
Can't debug on upload, How to make debugging work on upload?
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.
For now you can change the Level.BODY to Level.Header, if that helps
thanks for your response and the great library, hope it will fix on next version.
Same issue happened here. Still no fixes?
@ixsans This is related to HttpLoggingInterceptor. Try the latest version of HttpLoggingInterceptor from OkHttp, if that works for you.