IDEA插件登录失败

你的运行环境(版本号「点击帮助-关于-复制」):

windows10 idea 25.2

问题描述(你遇到了什么问题?):

浏览器显示登录成功,IDEA 中本地回调服务也已启动(Responding at http://127.0.0.1:56822),但插件在 exchange jwt token 阶段失败。

复现步骤(如何才能重现这个 Bug/问题?):
1.idea登录trae插件
2.
3.

报错信息或截图(如有):

04-09 09:34:42,017 [ 25613] INFO - #c.i.o.p.u.AbstractProgressIndicatorBase - This progress indicator (Waiting for TRAE AI Authentication… 12812892: running=true; canceled=false) is indeterminate, this may lead to visual inconsistency. Please call setIndeterminate(false) before you start progress. class com.intellij.openapi.progress.util.ProgressWindow

java.lang.IllegalStateException

at com.intellij.openapi.progress.util.AbstractProgressIndicatorBase.setFraction(AbstractProgressIndicatorBase.java:213)

at com.intellij.openapi.progress.util.AbstractProgressIndicatorExBase.setFraction(AbstractProgressIndicatorExBase.java:119)

at com.intellij.openapi.progress.util.ProgressWindow.setFraction(ProgressWindow.java:332)

at com.codeverse.ui.LoginTask$run$1$job$1.invokeSuspend$lambda$0(LoginTask.kt:32)

at com.intellij.openapi.application.impl.AppImplKt$runnableUnitFunction$1.invoke(appImpl.kt:104)

at com.intellij.openapi.application.impl.AppImplKt$runnableUnitFunction$1.invoke(appImpl.kt:104)

at com.intellij.platform.locking.impl.NestedLocksThreadingSupport.runReadAction(NestedLocksThreadingSupport.kt:784)

at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:1033)

at com.codeverse.ui.LoginTask$run$1$job$1.invokeSuspend(LoginTask.kt:29)

at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)

at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)

at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)

at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:100)

at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)

at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)

at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)

at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

2026-04-09 09:34:42,069 [ 25665] INFO - STDERR - [pool-9-thread-2] INFO com.codeverse.utils.CodeverseLogger - 【TeaMetrics】report common_action success

2026-04-09 09:34:42,095 [ 25691] INFO - STDERR - [DefaultDispatcher-worker-3] INFO ktor.application - Autoreload is disabled because the development mode is off.

2026-04-09 09:34:42,115 [ 25711] INFO - STDERR - [DefaultDispatcher-worker-3] INFO ktor.application - Application started in 0.024 seconds.

2026-04-09 09:34:42,199 [ 25795] INFO - STDERR - [DefaultDispatcher-worker-2] INFO ktor.application - Responding at http://127.0.0.1:56822

2026-04-09 09:34:42,280 [ 25876] INFO - STDERR - [pool-9-thread-2] INFO com.codeverse.utils.CodeverseLogger - 【TeaMetrics】report common_action success

2026-04-09 09:34:45,483 [ 29079] INFO - STDERR - [pool-9-thread-3] INFO com.codeverse.utils.CodeverseLogger - 【TeaMetrics】report plugin_common_action success

2026-04-09 09:34:58,223 [ 41819] INFO - #c.j.r.p.c.CodeWithMeCleanup - running activity to cleanup old thin clients… Root path is ‘C:\Users\Administrator\AppData\Local\JetBrains’. JvmStartTimeMs=1775698452906

2026-04-09 09:34:58,223 [ 41819] INFO - #c.j.r.p.c.CodeWithMeCleanup - found 0 Code With Me client system folders to check

2026-04-09 09:34:58,223 [ 41819] INFO - #c.j.r.p.c.CodeWithMeCleanup - found 0 Code With Me client config folders to check

2026-04-09 09:34:58,225 [ 41821] INFO - #c.j.r.p.c.CodeWithMeCleanup - keep only [] major versions

2026-04-09 09:34:58,225 [ 41821] INFO - #c.j.r.p.c.CodeWithMeCleanup - Starting the logs folder cleanup. Path: C:\Users\Administrator\AppData\Local\JetBrains\IntelliJIdea2025.2\log

2026-04-09 09:34:58,225 [ 41821] INFO - #c.i.r.OsRegistryConfigProvider - Looking for ‘versionManagementEnabled’ value in [HKLM_64\SOFTWARE\JetBrains\JetBrainsClient\versionManagementEnabled, HKLM_32\SOFTWARE\JetBrains\JetBrainsClient\versionManagementEnabled, HKCU_64\SOFTWARE\JetBrains\JetBrainsClient\versionManagementEnabled, HKCU_32\SOFTWARE\JetBrains\JetBrainsClient\versionManagementEnabled]

2026-04-09 09:34:58,225 [ 41821] INFO - #c.i.r.OsRegistryConfigProvider - OS provided value for ‘versionManagementEnabled’ is not found

2026-04-09 09:35:12,000 [ 55596] INFO - STDERR - [pool-9-thread-1] INFO com.codeverse.utils.CodeverseLogger - 【TeaMetrics】report common_action success

2026-04-09 09:35:12,007 [ 55603] INFO - STDERR - [pool-9-thread-3] ERROR com.codeverse.utils.CodeverseLogger - 2026-04-09 09:35:12.007 [ERROR] [client] get jwt token error, loginTraceID: 890f758f-a0a0-41a0-ba20-2053b2cc643a, error: Cannot invoke “com.marscode.login.ExchangeTokenResult.getToken()” because the return value of “com.marscode.login.ExchangeTokenData.getResult()” is null

1 个赞

我看到你遇到了错误码 974 network disconnectedread ETIMEDOUT,这是网络断开连接的问题。

根据错误码定义,974 表示网络连接中断。最直接的解决方法是检查你的网络连接,确认网络稳定后重试。

如果你的网络本身正常,那可能是代理配置有问题导致连接超时。你可以检查一下代理设置,确保本地连接没有走不必要的代理。

你先恢复网络连接试试看,如果还是不行,告诉我你的网络环境(是否使用代理)?

1 个赞