edgafner / dorkag

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

[BUG]: Cannot Open Task "Expecting end of string" [System.State] VssPropertyValidationException #130

Closed amyskippy closed 1 month ago

amyskippy commented 1 month ago

Describe the bug Opening tasks via the task management "Open Task" window does not work, and the error "Cannot connect to https://dev.azure.com" is shown in the notifications area.

The full exception in the idea.log file is:

2024-10-04 10:11:18,286 [ 382131]   WARN - #c.i.t.i.TaskManagerImpl - Cannot connect to AZDWorkItemRepository(URL='https://dev.azure.com')
com.intellij.collaboration.api.HttpStatusErrorException: HTTP Request Request POST https://dev.azure.com/Company-Name/Project%20Name/_apis/wit/wiql?api-version=7.2-preview.2 failed with status code 400 and response body: {"$id":"1","innerException":null,"message":" Expecting end of string. The error is caused by «[System.State]».","typeName":"Microsoft.VisualStudio.Services.Common.VssPropertyValidationException, Microsoft.VisualStudio.Services.Common","typeKey":"VssPropertyValidationException","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.a(SourceFile:95)
    at com.gafner.plugin.azd.api.r$a.invoke(SourceFile:94)
    at com.gafner.plugin.azd.api.s$a.a(SourceFile:177)
    at com.gafner.plugin.azd.api.s$a.invoke(SourceFile:176)
    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$b.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)

To Reproduce Steps to reproduce the behavior:

  1. Create the task management server with PAT token
  2. Click on 'Tasks > Open Task'
  3. Enter the task id of a task that already exists

Expected behavior It should show the list of tasks with a matching number or name

Screenshots N/A

Desktop (please complete the following information):

JetBrains IDE (please complete the following information):

Azure Devops organization details:

Additional context The link PR to AZD WorkItem right click menu is working as intended.

amyskippy commented 1 month ago

This is the same error as https://github.com/edgafner/dorkag/issues/80#issuecomment-2393929688

josuedavidzero443 commented 1 month ago

hello there @Jonatha1983, any update about this issue? thank you in advance.

Jonatha1983 commented 1 month ago

@josuedavidzero443 yes a fix was uploaded- will be available once JetBrains approve

Jonatha1983 commented 1 month ago

@josuedavidzero443 @amyskippy new version is publicly available if you can please test it and let me know if it is working now

amyskippy commented 1 month ago

@Jonatha1983 It, seems to be working now! This exception has gone and I'm able to load the list of tasks via the open task menu 🎉