cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Liyong Wang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-5017) There is no way to set a proxy for plugman
Date Mon, 09 Dec 2013 04:04:08 GMT

    [ 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)

Mime
View raw message