Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-4643

Failure in OkHttp authenticator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 3.1.1
    • 3.1.0
    • Java-Android
    • Security Level: Public
    • None
    • JAK 109
    • 4

    Description

      In forum post https://www.couchbase.com/forums/t/crashes-in-couchbase-lite-3-1-0/36420, user meirrosendorff sees the following error:

       

      Fatal Exception: java.lang.IllegalStateException: Unbalanced enter/exit at okio.AsyncTimeout$Companion.scheduleTimeout(AsyncTimeout.kt:225)
      at okio.AsyncTimeout$Companion.access$scheduleTimeout(AsyncTimeout.kt:201)
      at okio.AsyncTimeout.enter(AsyncTimeout.kt:54)
      at okio.AsyncTimeout$source$1.read(AsyncTimeout.kt:331)
      at okio.RealBufferedSource.indexOf(RealBufferedSource.kt:427)
      at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.kt:320)
      at okhttp3.internal.http1.HeadersReader.readLine(HeadersReader.kt:29)
      at okhttp3.internal.http1.Http1ExchangeCodec.readResponseHeaders(Http1ExchangeCodec.kt:178)
      at okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:106)
      at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:79)
      at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
      at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)
      at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
      at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
      at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
      at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
      at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
      at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
      at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
      at com.couchbase.lite.internal.replicator.AbstractCBLWebSocket.lambda$setupBasicAuthenticator$1(AbstractCBLWebSocket.java:653)
      at com.couchbase.lite.internal.replicator.AbstractCBLWebSocket$$ExternalSyntheticLambda2.intercept(:2)
      at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
      at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
      at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
      at java.lang.Thread.run(Thread.java:764)
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              blake.meike Blake Meike
              blake.meike Blake Meike
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty