java.lang.IllegalStateException: Exception thrown on Scheduler.Worker thread. Add `onError` handling.

GitHub | y2k | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    java.lang.IllegalStateException: Exception thrown on Scheduler.Worker thread. Add `onError` handling.

    GitHub | 7 months ago | y2k
    java.lang.IllegalStateException: Exception thrown on Scheduler.Worker thread. Add `onError` handling.

    Root Cause Analysis

    1. java.io.IOException

      Unexpected code Response{protocol=http/1.1, code=500, message=Internal Server Error, url=https://rc.y2k.work/cache/fit?width=243&height=227&bgColor=ffffff&quality=30&isNorm=True}

      at y2k.joyreactor.common.http.DefaultHttpClient.executeRequest()
    2. y2k.joyreactor.common
      ObservableExtensionsKt$ioCompletable$1$1.call
      1. y2k.joyreactor.common.http.DefaultHttpClient.executeRequest(DefaultHttpClient.kt:79)
      2. y2k.joyreactor.common.http.DefaultHttpClient.executeRequest$default(DefaultHttpClient.kt:69)
      3. y2k.joyreactor.common.http.DefaultHttpClient.downloadToFile(DefaultHttpClient.kt:34)
      4. y2k.joyreactor.common.http.DefaultHttpClient$downloadToFile$1.invoke(DefaultHttpClient.kt:30)
      5. y2k.joyreactor.common.http.DefaultHttpClient$downloadToFile$1.invoke(DefaultHttpClient.kt:18)
      6. y2k.joyreactor.common.ObservableExtensionsKt$ioCompletable$1$1.call(ObservableExtensions.kt:54)
      6 frames
    3. rxjava
      ScheduledAction.run
      1. rx.internal.schedulers.CachedThreadScheduler$EventLoopWorker$1.call(CachedThreadScheduler.java:220)
      2. rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
      2 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:137)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:150)
      5. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:264)
      6. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
      7. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
      8. java.lang.Thread.run(Thread.java:856)
      8 frames