edgafner / dorkag

Issue Tracker repository for all Dorkag plugins
Other
5 stars 0 forks source link

[BUG]: Failed to load data when trying to filter on Author viewing Pull Requests #167

Open andersklepaker opened 1 day ago

andersklepaker commented 1 day ago

Describe the bug When viewing Pull Request I try to filter on Author. The dropdown shows a spinner and after some time the Failed to load data shows up.

image

The following exception is shown in the IDE Internal Errors:

Unhandled exception in [ComponentManager(ProjectImpl@145196020), com.intellij.codeWithMe.ClientIdContextElementPrecursor@7b126af9, CoroutineName(AZD Pull Request Review Discussions), Dispatchers.Default]

com.intellij.collaboration.api.HttpStatusErrorException: HTTP Request Request GET https://vssps.dev.azure.com/<OrgUnit>/_apis/graph/storagekeys/imp.NmQ4YzdmZDU******Dk5MDA4OS0zMzY2?api-version=7.2-preview.1 failed with status code 404 and response body: {"$id":"1","innerException":null,"message":"VS403369: The storage key for descriptor 'imp.NmQ4YzdmZDU******Dk5MDA4OS0zMzY2' could not be found.","typeName":"Microsoft.VisualStudio.Services.Graph.StorageKeyNotFoundException, Microsoft.VisualStudio.Services.WebApi","typeKey":"StorageKeyNotFoundException","errorCode":0,"eventId":3000}
    at com.gafner.plugin.azd.api.r.a(SourceFile:46)
    at com.gafner.plugin.azd.api.r.a(SourceFile:76)
    at com.gafner.plugin.azd.api.r.a(SourceFile:95)
    at com.gafner.plugin.azd.api.s.a(SourceFile:177)
    at com.gafner.plugin.azd.api.s.b(SourceFile:176)
    at java.base/java.util.concurrent.CompletableFuture.uniApplyNow(CompletableFuture.java:684)
    at java.base/java.util.concurrent.CompletableFuture.uniApplyStage(CompletableFuture.java:662)
    at java.base/java.util.concurrent.CompletableFuture.thenApply(CompletableFuture.java:2200)
    at java.base/java.util.concurrent.CompletableFuture$MinimalStage.thenApply(CompletableFuture.java:2948)
    at java.net.http/jdk.internal.net.http.ResponseSubscribers$MappingSubscriber.getBody(ResponseSubscribers.java:843)
    at com.gafner.plugin.azd.api.w$a$a.invokeSuspend(SourceFile:138)
    at com.gafner.plugin.azd.api.w$a$a.a(SourceFile)
    at com.gafner.plugin.azd.api.w$a$a.invoke(SourceFile)
    at com.gafner.plugin.azd.api.p.sendAndAwaitCancellable(SourceFile:99)
    at com.gafner.plugin.azd.api.p$a.invokeSuspend(SourceFile)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
    at kotlinx.coroutines.internal.SoftLimitedDispatcher$Worker.run(SoftLimitedDispatcher.kt:125)
    at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)
    Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [ComponentManager(ProjectImpl@145196020), com.intellij.codeWithMe.ClientIdContextElementPrecursor@7b126af9, CoroutineName(com.gafner.plugin.azd.pullrequest.ui.a), StandaloneCoroutine{Cancelled}@feac05f, Dispatchers.Default]
    Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [ComponentManager(ProjectImpl@145196020), com.intellij.codeWithMe.ClientIdContextElementPrecursor@7b126af9, CoroutineName(AZD Pull Request Review Discussions), StandaloneCoroutine{Cancelled}@1e3449b9, Dispatchers.Default]

I've verified that the current object exists:

        {
            "subjectKind": "user",
            "domain": "<Domain>",
            "principalName": "<Name>",
            "mailAddress": "",
            "origin": "vsts",
            "originId": "31ca4945-****-****-****-4abf05af2d49",
            "displayName": "TFS Build Service Account",
            "_links": {
                "self": {
                    "href": "https://vssps.dev.azure.com/<OrgUnit>/_apis/Graph/Users/imp.NmQ4YzdmZDU******Dk5MDA4OS0zMzY2"
                },
                "memberships": {
                    "href": "https://vssps.dev.azure.com/<OrgUnit>/_apis/Graph/Memberships/imp.NmQ4YzdmZDU******Dk5MDA4OS0zMzY2"
                },
                "membershipState": {
                    "href": "https://vssps.dev.azure.com/<OrgUnit>/_apis/Graph/MembershipStates/imp.NmQ4YzdmZDU******Dk5MDA4OS0zMzY2"
                },
                "storageKey": {
                    "href": "https://vssps.dev.azure.com/<OrgUnit>/_apis/Graph/StorageKeys/imp.NmQ4YzdmZDU******Dk5MDA4OS0zMzY2"
                },
                "avatar": {
                    "href": "https://dev.azure.com/<OrgUnit>/_apis/GraphProfile/MemberAvatars/imp.NmQ4YzdmZDU******Dk5MDA4OS0zMzY2"
                }
            },
            "url": "https://vssps.dev.azure.com/<OrgUnit>/_apis/Graph/Users/imp.NmQ4YzdmZDU******Dk5MDA4OS0zMzY2",
            "descriptor": "imp.NmQ4YzdmZDU******Dk5MDA4OS0zMzY2"
        },

Expected behavior Expected list of users from the organization.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

JetBrains IDE (please complete the following information):

Azure Devops organization details:

Additional context Add any other context about the problem here.

Jonatha1983 commented 1 day ago

Hi @andersklepaker

Thanks for the details. I will debug it and will release a fix As soon as possible

andersklepaker commented 1 day ago

Much appreciated @Jonatha1983 - your plugin is a daily driver!