Skip to content

fix regression in calling nodejitsu apis from behing a proxy#1

Merged
Marak merged 1 commit intonodejitsu:masterfrom
tjanczuk:master
Nov 10, 2011
Merged

fix regression in calling nodejitsu apis from behing a proxy#1
Marak merged 1 commit intonodejitsu:masterfrom
tjanczuk:master

Conversation

@tjanczuk
Copy link
Contributor

It appears one cannot call nodejitsu APIs from behind a proxy.

I installed jitsu toolset via npm install jitsu -g. After reading nodejitsu/jitsu#106 I configured my proxy server with a call to npm config set proxy http://<myproxyserver>:<myproxyserverport>. Despite that, jitsu signup was unable to connect to the nodejitsu host.

I believe the issue is with line https://github.com/nodejitsu/nodejitsu-api/blob/master/node.js/lib/client/client.js#L48 which should be

proxy = this.options.get('proxy');

instead of current

proxy = this.proxy;

(I verified this change fixes the problem).

The original pull request for issue nodejitsu/jitsu#106 that was merged in fixed the problem correctly, but the fix was subsequently overwritten by f96f735.

Marak added a commit that referenced this pull request Nov 10, 2011
[fix] regression in calling nodejitsu apis from behing a proxy
@Marak Marak merged commit 42aca45 into nodejitsu:master Nov 10, 2011
@Marak
Copy link
Contributor

Marak commented Nov 10, 2011

Merged! Looks like we missed one, sorry about that! We'll be pushing out a new jitsu version today ( among with a few other changes ).

Thank you very much!

Marak added a commit that referenced this pull request Nov 10, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants