syntax error is node-soap (debug) script when NODE_DEBUG is set

144 views
Skip to first unread message

Reza Razavipour

unread,
Nov 14, 2013, 2:10:27 PM11/14/13
to nod...@googlegroups.com
Just learned how to use the NODE_DEBUG env settings. Now I get a syntax error in 

...../node_modules/soap/node_modules/request/lib/debug.js

module.exports =
function debug () {
  if (/\brequest\b/.test(process.env.NODE_DEBUG))
    console.error('REQUEST %s', util.format.apply(util, arguments))
}

ReferenceError: util is not defined


Any ideas what the issue might be? Does not look like this code can ever work if the NODE_DEBUG is set correctly.


Thoughts?

Reza Razavipour

unread,
Nov 14, 2013, 2:32:54 PM11/14/13
to nod...@googlegroups.com
I just tried the latest request package and it HAS the same syntax error.

Reza Razavipour

unread,
Nov 14, 2013, 5:31:43 PM11/14/13
to nod...@googlegroups.com
it turns out to be a bug, that was fixed but never committed.

Mikeal Rogers

unread,
Nov 14, 2013, 5:33:43 PM11/14/13
to nod...@googlegroups.com
that was committed, it's in master. are you sure it's in the version you're running?

--
--
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 nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@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+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reza Razavipour

unread,
Nov 14, 2013, 5:38:06 PM11/14/13
to nod...@googlegroups.com
it was NOT in the version I am running, I added it...
I was getting the syntax error since it had the problem

Regards,
Reza


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/7qg21-mxDTU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nodejs+un...@googlegroups.com.

Nathan Rajlich

unread,
Nov 15, 2013, 1:26:31 PM11/15/13
to nodejs
Sure, but it's likely that the "soap" module depends on an outdated version on the "request" module.
Reply all
Reply to author
Forward
0 new messages