wordpress-mobile / wordpress-mobile/WordPress-Android

IllegalStateException: FetchSite is already in progress!

Open
#19,418 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Pri] Low [Type] Bug [Type] Crash Domains
Dominant language
Kotlin
Stars
3.2k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
69

Description

Sentry Issue: JETPACK-ANDROID-DEG

IllegalStateException: FetchSite is already in progress!
    at org.wordpress.android.ui.domains.usecases.FetchPlansUseCase.execute(FetchPlansUseCase.kt:36)
    at org.wordpress.android.ui.domains.DomainsDashboardViewModel$refresh$1$deferredPlansResult$1.invokeSuspend(DomainsDashboardViewModel.kt:82)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.CoroutineContextKt.withContinuationContext
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:90)
...
(5 additional frame(s) were not displayed)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with FetchPlansUseCase.kt:36 and trace the call from DomainsDashboardViewModel.kt:82, where refresh launches the deferred plans result. Reproduce or inspect the Sentry exception to determine why FetchSite is already in progress, then verify that the duplicate-progress failure no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.