org.sonatype.nexus.proxy.RemoteStorageException: The method execution returned result code 407 (expected 200). [repositoryId="central", requestPath="/.index/nexus-maven-repository-index.properties", remoteUrl="http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.properties"]

Sonatype JIRA | Emmanuel Vasseur | 4 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Hi, In the Default HTTP Proxy Settings, when I configure the proxy with an authentication account having a password containing special character like '&', there is a HTTP 407 error code when I try to access to proxy repositories : 2013-09-04 01:00:14 WARN [pool-1-thread-6] - org.sonatype.nexus.index.DefaultIndexerManager - Cannot fetch remote index for repository "Central" [id=central] due to IO problem. org.sonatype.nexus.proxy.RemoteStorageException: The method execution returned result code 407 (expected 200). [repositoryId="central", requestPath="/.index/nexus-maven-repository-index.properties", remoteUrl="http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.properties"] at org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage.retrieveItem(HttpClientRemoteStorage.java:232) ~[nexus-core-2.6.0-05.jar:2.6.0-05] at org.sonatype.nexus.index.DefaultIndexerManager$11.retrieve(DefaultIndexerManager.java:1348) ~[nexus-indexer-lucene-plugin-2.6.0-05.jar:2.6.0-05] at org.apache.maven.index.updater.DefaultIndexUpdater.downloadIndexProperties(DefaultIndexUpdater.java:465) ~[indexer-core-5.1.2-bf3d48b.jar:5.1.2-bf3d48b] This work fine when I configure the proxy with an authentication account having a password without special characters. This error also occurs when I configure a remote repository with an authentication account having a password containing special characters like '&' (Remote Repository Access in the proxy repository configuration). Regards, Emmanuel

    Sonatype JIRA | 4 years ago | Emmanuel Vasseur
    org.sonatype.nexus.proxy.RemoteStorageException: The method execution returned result code 407 (expected 200). [repositoryId="central", requestPath="/.index/nexus-maven-repository-index.properties", remoteUrl="http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.properties"]

    Root Cause Analysis

    1. org.sonatype.nexus.proxy.RemoteStorageException

      The method execution returned result code 407 (expected 200). [repositoryId="central", requestPath="/.index/nexus-maven-repository-index.properties", remoteUrl="http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.properties"]

      at org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage.retrieveItem()
    2. ${project.groupId}:${project.artifactId}
      HttpClientRemoteStorage.retrieveItem
      1. org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage.retrieveItem(HttpClientRemoteStorage.java:232)[nexus-core-2.6.0-05.jar:2.6.0-05]
      1 frame
    3. Sonatype Nexus Indexer
      DefaultIndexerManager$11.retrieve
      1. org.sonatype.nexus.index.DefaultIndexerManager$11.retrieve(DefaultIndexerManager.java:1348)[nexus-indexer-lucene-plugin-2.6.0-05.jar:2.6.0-05]
      1 frame
    4. Maven :: Indexer Core
      DefaultIndexUpdater.downloadIndexProperties
      1. org.apache.maven.index.updater.DefaultIndexUpdater.downloadIndexProperties(DefaultIndexUpdater.java:465)[indexer-core-5.1.2-bf3d48b.jar:5.1.2-bf3d48b]
      1 frame