Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.util.UnknownFormatConversionException: Conversion = ';' #366

Open
gabrielle88 opened this issue Jun 12, 2019 · 1 comment
Open

java.util.UnknownFormatConversionException: Conversion = ';' #366

gabrielle88 opened this issue Jun 12, 2019 · 1 comment

Comments

@gabrielle88
Copy link

Hi!!
I am using Timber on my app, and I use my own HttpLoggingInterceptor to get the logs from OkHttp library that I use it.
I have a request that returns from server with https status code 404, and after that I get this error on logs :

java.util.UnknownFormatConversionException: Conversion = ';' at java.util.Formatter$FormatSpecifier.conversion(Formatter.java:2781) at java.util.Formatter$FormatSpecifier.<init>(Formatter.java:2811) at java.util.Formatter$FormatSpecifierParser.<init>(Formatter.java:2624) at java.util.Formatter.parse(Formatter.java:2557) at java.util.Formatter.format(Formatter.java:2504) at java.util.Formatter.format(Formatter.java:2458) at java.lang.String.format(String.java:2770) at timber.log.Timber$Tree.formatMessage(Timber.java:539) at timber.log.Timber$Tree.prepareLog(Timber.java:525) at timber.log.Timber$Tree.d(Timber.java:405) at timber.log.Timber$1.d(Timber.java:243) at timber.log.Timber.d(Timber.java:38) at com.myapp.AndroidLogger.d(AndroidLogger.kt:51) at com.myapp.LoggingInterceptor.log(LoggingInterceptor.kt:7) at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:277) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:221) at okhttp3.RealCall.execute(RealCall.java:81)

I think it tries to print the response and it is a html content and from there comes this error. Can it be fixed somehow?

@Sathawale27
Copy link

How did you call the Timber method? Did you pass any args with the message in Timber? It might be related to formatting your message with args in String.format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants