Skip to content

Proxy Configuration does not work #2

@ElmarKnipp

Description

@ElmarKnipp

I am using the latest verson 1.9.1 of ther toolkit. I have configured a proxy in my tcsh as follows:

setenv http_proxy proxy.mycompany.de:8080

Whenever a start the program, I get the following error:

/usr/lib/node_modules/nuxeo-cli/node_modules/global-tunnel-ng/lib/agents.js:17
  mixinProxying(this, opts.proxy);
                           ^

TypeError: Cannot read property 'proxy' of undefined
    at new OuterHttpAgent (/usr/lib/node_modules/nuxeo-cli/node_modules/global-tunnel-ng/lib/agents.js:17:28)
    at new ClientRequest (_http_client.js:126:13)
    at Object.request (http.js:46:10)
    at TunnelingAgent.request (/usr/lib/node_modules/nuxeo-cli/node_modules/global-tunnel-ng/index.js:336:40)
    at TunnelingAgent.createSocket (/usr/lib/node_modules/nuxeo-cli/node_modules/tunnel-agent/index.js:134:25)
    at TunnelingAgent.createSecureSocket [as createSocket] (/usr/lib/node_modules/nuxeo-cli/node_modules/tunnel-agent/index.js:199:41)
    at TunnelingAgent.createConnection (/usr/lib/node_modules/nuxeo-cli/node_modules/tunnel-agent/index.js:97:8)
    at TunnelingAgent.addRequest (/usr/lib/node_modules/nuxeo-cli/node_modules/tunnel-agent/index.js:91:8)
    at new ClientRequest (_http_client.js:302:16)
    at Object.request (https.js:310:10)

BTW: Why is a proxy configuration with protocol specification not made possible? The regular expression in node_modules/nuxeo-cli/lib/proxy.js seems to prohibit this: proxy.match(/^(?:([^@]+)@)?([^:]+)(?::(\d+))?$/);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions