Hmm. Its the installed package from homebrew but it may be an older version of homebrew / NPM. Good catch, ill update and try again. From your view does anything else look inherently wrong?
Thanks for the fresh eyes! On Feb 27, 2014 3:34 PM, "// ravi" <ravi-li...@g8o.net> wrote: > On Feb 27, 2014, at 1:19 PM, Josh Longbrake <j...@studiobrainchild.com> > wrote: > > Sure here it is: > > TypeError: Cannot read property 'tunnel' of undefined > at new exports.Client > (/Users/jlongbrake/Desktop/sitename/node_modules/node-rest-client/lib/node-rest-client.js:14:42) > at /Users/jlongbrake/Desktop/sitename/controller/mdmController.js:10:22 > at callbacks > (/Users/jlongbrake/Desktop/sitename/node_modules/express/lib/router/index.js:164:37) > at param > (/Users/jlongbrake/Desktop/sitename/node_modules/express/lib/router/index.js:138:11) > at pass > (/Users/jlongbrake/Desktop/sitename/node_modules/express/lib/router/index.js:145:5) > at Router._dispatch > (/Users/jlongbrake/Desktop/sitename/node_modules/express/lib/router/index.js:173:5) > at Object.router > (/Users/jlongbrake/Desktop/sitename/node_modules/express/lib/router/index.js:33:10) > at next > (/Users/jlongbrake/Desktop/sitename/node_modules/express/node_modules/connect/lib/proto.js:193:15) > at Object.allowCrossDomain [as handle] > (/Users/jlongbrake/Desktop/sitename/server.js:21:9) > at next > (/Users/jlongbrake/Desktop/sitename/node_modules/express/node_modules/connect/lib/proto.js:193:15) > > > The trouble is with the module. I notice the offending line of code is > different in the NPM installed module in comparison to the correct/bug-free > version on GitHub. > > The buggy line in the NPM installed node module: > > self.useProxyTunnel = > self.options.proxy.tunnel===undefined?true:self.options.proxy.tunnel, > > The line on GitHub ( > https://github.com/aacerox/node-rest-client/blob/master/lib/node-rest-client.js > ): > > > self.useProxyTunnel = (!self.useProxy || > self.options.proxy.tunnel===undefined)?false:self.options.proxy.tunnel, > > --ravi > > > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to nodejs@googlegroups.com > To unsubscribe from this group, send email to > nodejs+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- > You received this message because you are subscribed to a topic in the > Google Groups "nodejs" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/nodejs/g4ch8Z9c4cg/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > nodejs+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.