sonatype-nexus-community / nexus-repository-composer

Composer support for the Nexus Repository Manager (work in progress!)
Eclipse Public License 1.0
211 stars 82 forks source link

Composer Proxy - Remote Auto Blocked #112

Open aqm1152 opened 2 years ago

aqm1152 commented 2 years ago

I am trying to use composer proxy with our local sonatype repo but I am having an issue trying to installer with composer.

The result while trying to install, I am getting a TransactionException that looks the following :

 [Composer\Downloader\TransportException]                                                                                                           
  The "https://<local-nexus-composer-registry>/repository/composer-proxy/packages.json" file could not be downloaded (HTTP/1.1 404 Remote Auto Blocked until  
   2022-05-31T16:58:29.586Z)          

I am using the nexus-repository-composer-0.0.22-bundle.kar install for composer on nexus.

My composer.json configuration is :

"repositories": [
        {
            "type": "composer",
            "url": "https://<local-nexus-composer-registry>/repository/composer-proxy/"
        },
        {
            "packagist.org": false
        }
    ]

I also have an auth.json with username password credentials as such :

{
    "http-basic": {
        "local-nexus-composer-registry": {
            "username": "username",
            "password": "password"
        }
    }
}

Has anyone ran into this same issue? thanks.