Upsource IntelliJ plugin: http://upsource:8081/~version

Trying to set up the plugin and can't seem to connect to the server - keep getting "http://upsource:8081/~version" returned invalid HTTP response: 403. Please check the URL you specified. I tried the same URL in the browser and it worked fine.

What might be a problem?

4 comments

Request to http://nj09isp1085:8081/~version in the browser returns

{

  • api:
     
    {
    • 1: "786179f4d8c64f921136f8e699be85a82bbef9e1"
    },
  • server: "2017.1.1781",
  • vcsRevision: "#76a31e1964c6fdc72aad34808096a7a6fbe66fab",
  • isExperimental: false,
  • buildStatusApi: 1,
  • hubId: "0-0-0-0-0",
  • upsourceId: "3064b66c-77a9-435c-9369-a5789d1d4dbb"

}

 

Error in IntelliJ log reads:

2017-03-04 19:44:19,595 [1165437] DEBUG - urce.idea.UpsourceConfigurable -
java.lang.Exception: "http://nj09isp1085:8081/~version" returned invalid HTTP response: 403.
Please check the URL you specified.
at com.jetbrains.upsource.idea.client.UpsourceClientsManager.getJsonResponse(UpsourceClientsManager.java:523)
at com.jetbrains.upsource.idea.client.UpsourceClientsManager.computeUpsourceClientVersion(UpsourceClientsManager.java:491)
at com.jetbrains.upsource.idea.client.UpsourceClientsManager.getClientFactory(UpsourceClientsManager.java:237)
at com.jetbrains.upsource.idea.client.UpsourceClientsManager.access$200(UpsourceClientsManager.java:51)
at com.jetbrains.upsource.idea.client.UpsourceClientsManager$1.run(UpsourceClientsManager.java:132)
at com.jetbrains.upsource.idea.util.Util.lambda$runUnderProgress$3(Util.java:329)
at com.intellij.openapi.progress.impl.CoreProgressManager$6.run(CoreProgressManager.java:265)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:710)
at com.intellij.openapi.progress.impl.CoreProgressManager$11.run(CoreProgressManager.java:423)
at com.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:179)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:568)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:519)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:164)
at com.intellij.openapi.application.impl.ApplicationImpl.a(ApplicationImpl.java:572)
at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:309)
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:745)

 

0

What IDE/plugin versions are you using?

0

This happens to me, as well. IntelliJ IDEA 2018.2 with Upsource Integration 2018.1.567.6.

0

Ok for anyone in the future that stumbles on this, for me, my URL was from CloudFlare. I had to disable the Browser Integrity Check there. It evidently rejects requests based on user agent, and IntelliJ IDEA's user agent is on the blacklist.

0

Please sign in to leave a comment.