ihsanbal / LoggingInterceptor

An OkHttp interceptor which has pretty logger for request and response. +Mock support
MIT License
1.33k stars 112 forks source link

OutOfMemoryError #40

Closed jgodinez closed 5 years ago

jgodinez commented 6 years ago

I have the next bug reported, maybe could you check the reference to improvement your great library

Regards!

Fatal Exception: java.lang.OutOfMemoryError at java.lang.String.(String.java:422) at java.lang.AbstractStringBuilder.toString(AbstractStringBuilder.java:642) at java.lang.StringBuilder.toString(StringBuilder.java:663) at org.json.JSONStringer.toString(JSONStringer.java:430) at org.json.JSONArray.toString(JSONArray.java:596) at com.ihsanbal.logging.Logger.getJsonString(Logger.java:167) at com.ihsanbal.logging.Logger.printJsonResponse(Logger.java:67) at com.ihsanbal.logging.LoggingInterceptor.intercept(LoggingInterceptor.java:95) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:135) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841)