[ 
https://issues.apache.org/jira/browse/CB-5017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13842895#comment-13842895
 ] 

Liyong Wang commented on CB-5017:
---------------------------------

I got the same error, with proxy configured.
Cordova CLI does not work for me either. 

The problem is plugman does not use proxy config at all. Looking at registry.js 
file from plugman, getPackageInfo() method simply use plain http module, no 
proxy is set here.
{noformat}
function getPackageInfo(args) {
    ... 
    http.get(settings.registry + '/' + name + '/' + version, function(res) {
         if(res.statusCode != 200) {
             d.reject(new Error('error: Could not fetch package information for 
'+name));
         } else {
             var info = '';
             res.on('data', function(chunk) {
                info += chunk;
             });
             res.on('end', function() {
                 d.resolve(JSON.parse(info));
             });
         }
    }).on('error', function(err) {
        d.reject(err);
    });
    return d.promise;
}
{noformat}



> There is no way to set a proxy for plugman
> ------------------------------------------
>
>                 Key: CB-5017
>                 URL: https://issues.apache.org/jira/browse/CB-5017
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugman
>    Affects Versions: 3.1.0
>            Reporter: Mike Kwan
>
> Plugman tries to hit http://registry.cordova.io and in some cases we want to 
> hit this through a proxy. At the moment there is no way to configure this 
> behaviour.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to