Intellij版本:2018.3(183.4284.148)
我正在尝试在Enterprise Github中使用功能https://blog.jetbrains.com/idea/2018/10/intellij-idea-2018-3-eap-github-pull-requests-and-more/。
当我打开“拉取请求”工具窗口时,它会加载拉取请求,但是当我单击其中的任何一个时,都会看到诸如以下的错误
除了可能与此有关的想法日志外,想法日志中没有太多内容(不确定是否确实有用)
2018-12-14 15:56:18,582 [1655214] INFO - lij.diagnostic.DebugLogManager - Set DEBUG for the following categories: #org.jetbrains.plugins.github.api.GithubApiRequestExecutor
2018-12-14 15:56:28,710 [1665342] DEBUG - b.api.GithubApiRequestExecutor - Request: https://MY_COMPANY_URL/api/v3/repos/MY_ORG/MY_REPO get information for repository MY_ORG/MY_REPO : Connecting
2018-12-14 15:56:29,507 [1666139] DEBUG - b.api.GithubApiRequestExecutor - Request: https://MY_COMPANY_URL/api/v3/repos/MY_ORG/MY_REPO GET : Connected
2018-12-14 15:56:29,509 [1666141] DEBUG - b.api.GithubApiRequestExecutor - Request: https://MY_COMPANY_URL/api/v3/repos/MY_ORG/MY_REPO GET : Result extracted
2018-12-14 15:56:29,519 [1666151] DEBUG - b.api.GithubApiRequestExecutor - Request: https://MY_COMPANY_URL/api/v3/search/issues?q=type%3Apr%20repo%3AMY_ORG%2FMY_REPO%20state%3Aopen search issues in repository : Connecting
2018-12-14 15:56:30,218 [1666850] DEBUG - b.api.GithubApiRequestExecutor - Request: https://MY_COMPANY_URL/api/v3/search/issues?q=type%3Apr%20repo%3AMY_ORG%2FMY_REPO%20state%3Aopen GET : Connected
2018-12-14 15:56:30,458 [1667090] DEBUG - b.api.GithubApiRequestExecutor - Request: https://MY_COMPANY_URL/api/v3/search/issues?q=type%3Apr%20repo%3AMY_ORG%2FMY_REPO%20state%3Aopen GET : Result extracted
2018-12-14 15:56:30,460 [1667092] DEBUG - b.api.GithubApiRequestExecutor - Request: https://MY_COMPANY_URL/avatars/u/9264? get profile avatar : Connecting
2018-12-14 15:56:30,461 [1667093] DEBUG - b.api.GithubApiRequestExecutor - Request: https://MY_COMPANY_URL/avatars/u/7541? get profile avatar : Connecting
2018-12-14 15:56:31,659 [1668291] DEBUG - b.api.GithubApiRequestExecutor - Request: https://MY_COMPANY_URL/login?return_to=https%3A%2F%2FMY_COMPANY_URL%2Favatars%2Fu%2F7541%3F GET : Connected
2018-12-14 15:56:31,660 [1668292] INFO - .CachingGithubUserAvatarLoader - Error loading image from https://MY_COMPANY_URL/avatars/u/7541?
java.lang.IllegalStateException: ImageIO.read(stream) must not be null
at org.jetbrains.plugins.github.api.GithubApiContentHelper.loadImage(GithubApiContentHelper.kt:64)
at org.jetbrains.plugins.github.api.GithubApiRequests$CurrentUser$getAvatar$1$extractResult$1.convert(GithubApiRequests.kt:29)
at org.jetbrains.plugins.github.api.GithubApiRequests$CurrentUser$getAvatar$1$extractResult$1.convert(GithubApiRequests.kt:26)
at org.jetbrains.plugins.github.api.GithubApiRequestExecutor$Base$createResponse$1.handleBody(GithubApiRequestExecutor.kt:214)
at org.jetbrains.plugins.github.api.GithubApiRequests$CurrentUser$getAvatar$1.extractResult(GithubApiRequests.kt:28)
at org.jetbrains.plugins.github.api.GithubApiRequests$CurrentUser$getAvatar$1.extractResult(GithubApiRequests.kt:26)
at org.jetbrains.plugins.github.api.GithubApiRequestExecutor$Base$execute$1.process(GithubApiRequestExecutor.kt:122)
at com.intellij.util.io.HttpRequests.doProcess(HttpRequests.java:523)
at com.intellij.util.io.HttpRequests.process(HttpRequests.java:499)
at com.intellij.util.io.HttpRequests.access$100(HttpRequests.java:59)
at com.intellij.util.io.HttpRequests$RequestBuilderImpl.connect(HttpRequests.java:352)
at org.jetbrains.plugins.github.api.GithubApiRequestExecutor$Base.execute(GithubApiRequestExecutor.kt:111)
at org.jetbrains.plugins.github.api.GithubApiRequestExecutor$WithTokenAuth.execute(GithubApiRequestExecutor.kt:72)
at org.jetbrains.plugins.github.util.CachingGithubUserAvatarLoader.loadAndDownscale(CachingGithubUserAvatarLoader.kt:58)
at org.jetbrains.plugins.github.util.CachingGithubUserAvatarLoader.access$loadAndDownscale(CachingGithubUserAvatarLoader.kt:22)
at org.jetbrains.plugins.github.util.CachingGithubUserAvatarLoader$requestAvatar$1$1$1.compute(CachingGithubUserAvatarLoader.kt:46)
at org.jetbrains.plugins.github.util.CachingGithubUserAvatarLoader$requestAvatar$1$1$1.compute(CachingGithubUserAvatarLoader.kt:22)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$3(CoreProgressManager.java:180)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:582)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:87)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:180)
at org.jetbrains.plugins.github.util.CachingGithubUserAvatarLoader$requestAvatar$1$1.get(CachingGithubUserAvatarLoader.kt:46)
at org.jetbrains.plugins.github.util.CachingGithubUserAvatarLoader$requestAvatar$1$1.get(CachingGithubUserAvatarLoader.kt:22)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
2018-12-14 15:56:31,676 [1668308] DEBUG - b.api.GithubApiRequestExecutor - Request: https://MY_COMPANY_URL/login?return_to=https%3A%2F%2FMY_COMPANY_URL%2Favatars%2Fu%2F9264%3F GET : Connected
2018-12-14 15:56:31,677 [1668309] INFO - .CachingGithubUserAvatarLoader - Error loading image from https://MY_COMPANY_URL/avatars/u/9264?
java.lang.IllegalStateException: ImageIO.read(stream) must not be null
at org.jetbrains.plugins.github.api.GithubApiContentHelper.loadImage(GithubApiContentHelper.kt:64)
at org.jetbrains.plugins.github.api.GithubApiRequests$CurrentUser$getAvatar$1$extractResult$1.convert(GithubApiRequests.kt:29)
at org.jetbrains.plugins.github.api.GithubApiRequests$CurrentUser$getAvatar$1$extractResult$1.convert(GithubApiRequests.kt:26)
at org.jetbrains.plugins.github.api.GithubApiRequestExecutor$Base$createResponse$1.handleBody(GithubApiRequestExecutor.kt:214)
at org.jetbrains.plugins.github.api.GithubApiRequests$CurrentUser$getAvatar$1.extractResult(GithubApiRequests.kt:28)
at org.jetbrains.plugins.github.api.GithubApiRequests$CurrentUser$getAvatar$1.extractResult(GithubApiRequests.kt:26)
at org.jetbrains.plugins.github.api.GithubApiRequestExecutor$Base$execute$1.process(GithubApiRequestExecutor.kt:122)
at com.intellij.util.io.HttpRequests.doProcess(HttpRequests.java:523)
at com.intellij.util.io.HttpRequests.process(HttpRequests.java:499)
at com.intellij.util.io.HttpRequests.access$100(HttpRequests.java:59)
at com.intellij.util.io.HttpRequests$RequestBuilderImpl.connect(HttpRequests.java:352)
at org.jetbrains.plugins.github.api.GithubApiRequestExecutor$Base.execute(GithubApiRequestExecutor.kt:111)
at org.jetbrains.plugins.github.api.GithubApiRequestExecutor$WithTokenAuth.execute(GithubApiRequestExecutor.kt:72)
at org.jetbrains.plugins.github.util.CachingGithubUserAvatarLoader.loadAndDownscale(CachingGithubUserAvatarLoader.kt:58)
at org.jetbrains.plugins.github.util.CachingGithubUserAvatarLoader.access$loadAndDownscale(CachingGithubUserAvatarLoader.kt:22)
at org.jetbrains.plugins.github.util.CachingGithubUserAvatarLoader$requestAvatar$1$1$1.compute(CachingGithubUserAvatarLoader.kt:46)
at org.jetbrains.plugins.github.util.CachingGithubUserAvatarLoader$requestAvatar$1$1$1.compute(CachingGithubUserAvatarLoader.kt:22)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$3(CoreProgressManager.java:180)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:582)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:87)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:180)
at org.jetbrains.plugins.github.util.CachingGithubUserAvatarLoader$requestAvatar$1$1.get(CachingGithubUserAvatarLoader.kt:46)
at org.jetbrains.plugins.github.util.CachingGithubUserAvatarLoader$requestAvatar$1$1.get(CachingGithubUserAvatarLoader.kt:22)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
2018-12-14 15:56:32,848 [1669480] DEBUG - b.api.GithubApiRequestExecutor - Request: https://MY_COMPANY_URL/api/v3/repos/MY_ORG/MY_REPO/pulls/3863 get pull request : Connecting
2018-12-14 15:56:33,488 [1670120] DEBUG - b.api.GithubApiRequestExecutor - Request: https://MY_COMPANY_URL/api/v3/repos/MY_ORG/MY_REPO/pulls/3863 GET : Connected
2018-12-14 15:56:33,571 [1670203] DEBUG - b.api.GithubApiRequestExecutor - Can't get pull request
org.jetbrains.plugins.github.exceptions.GithubJsonException: Can't get pull request
Couldn't parse GitHub response
at org.jetbrains.plugins.github.api.GithubApiContentHelper.readJson(GithubApiContentHelper.kt:46)
at org.jetbrains.plugins.github.api.GithubApiRequest$Companion$parseJsonResponse$1.convert(GithubApiRequest.kt:165)
at org.jetbrains.plugins.github.api.GithubApiRequest$Companion$parseJsonResponse$1.convert(GithubApiRequest.kt:163)
at org.jetbrains.plugins.github.api.GithubApiRequestExecutor$Base$createResponse$1.readBody(GithubApiRequestExecutor.kt:210)
at org.jetbrains.plugins.github.api.GithubApiRequest$Companion.parseJsonResponse(GithubApiRequest.kt:165)
at org.jetbrains.plugins.github.api.GithubApiRequest$Companion.access$parseJsonResponse(GithubApiRequest.kt:163)
at org.jetbrains.plugins.github.api.GithubApiRequest$Get$Json.extractResult(GithubApiRequest.kt:61)
at org.jetbrains.plugins.github.api.GithubApiRequestExecutor$Base$execute$1.process(GithubApiRequestExecutor.kt:122)
at com.intellij.util.io.HttpRequests.doProcess(HttpRequests.java:523)
at com.intellij.util.io.HttpRequests.process(HttpRequests.java:499)
at com.intellij.util.io.HttpRequests.access$100(HttpRequests.java:59)
at com.intellij.util.io.HttpRequests$RequestBuilderImpl.connect(HttpRequests.java:352)
at org.jetbrains.plugins.github.api.GithubApiRequestExecutor$Base.execute(GithubApiRequestExecutor.kt:111)
at org.jetbrains.plugins.github.api.GithubApiRequestExecutor$WithTokenAuth.execute(GithubApiRequestExecutor.kt:72)
at org.jetbrains.plugins.github.pullrequest.data.GithubPullRequestsDataLoader$DataTask.run(GithubPullRequestsDataLoader.kt:90)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:727)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:582)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:87)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151)
at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:403)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.jetbrains.io.mandatory.JsonMandatoryException: Field 'labels' is mandatory, but missing in response
at org.jetbrains.io.mandatory.NullCheckingFactory$1.read(NullCheckingFactory.java:57)
at com.google.gson.Gson.fromJson(Gson.java:927)
at com.google.gson.Gson.fromJson(Gson.java:892)
at org.jetbrains.plugins.github.api.GithubApiContentHelper.readJson(GithubApiContentHelper.kt:43)
... 27 more
有人可以帮忙吗?
答案 0 :(得分:2)
我无法评论yole的回答(因果报应还不够),也无法在youtrack上指出您的个人资料,但我需要更多日志来确定问题的根本原因。
请为以下类别启用调试日志(帮助-调试日志设置...):
#org.jetbrains.plugins.github.api.GithubApiRequestExecutor
然后,请重现问题并共享在youtrack问题中压缩的整个日志文件夹。 请参阅https://intellij-support.jetbrains.com/hc/en-us/articles/207241085来找到日志。
答案 1 :(得分:1)
这是IntelliJ IDEA中的错误。我已经reported it到我们的问题跟踪器了。
答案 2 :(得分:0)
实际问题似乎是Field 'labels' is mandatory, but missing in response
。该字段仅在GitHub Enterprise 2.13中实现,并且较早的版本未将其返回。
该问题已在开发人员版本中修复,并将很快回溯到2018.3-https://youtrack.jetbrains.com/issue/IDEA-200881
作为旁注,GitHub Enterprise 2.12已停产https://enterprise.github.com/releases/series/2.12,很可能将在您的组织中对其进行更新,并且PR即使在当前的IDE版本中也可以使用