How could process.nextTick throw "RangeError: Invalid array length"

Here is a stack trace for an error I started receiving in my Node.js application:

"RangeError: Invalid array length",
"    at onwrite (_stream_writable.js:265:15)",
"    at WritableState.onwrite (_stream_writable.js:96:5)",
"    at Socket._write (net.js:653:5)",
"    at doWrite (_stream_writable.js:225:10)",
"    at writeOrBuffer (_stream_writable.js:215:5)",
"    at Writable.write (_stream_writable.js:182:11)",
"    at Socket.write (net.js:615:40)",

(this is longjohn output)

Here is the offending line:

What could possibly cause this? Is it true that there's no way for my application source to have directly caused it because it's the call to process.nextTick that throws the error?


This was caused by our usage of longjohn. Issue filed at Fix submitted at

Need Your Help

Ruby on Rails request in background

ruby-on-rails parallel-processing resque rails-activejob

In my Ruby on Rails app, a user can grant me permission to tweet on their behalf, so they can send prefilled tweets from the application. This is the flow:

Need help with remove_action()

php wordpress wordpress-plugin wordpress-theming

I'm trying to remove the unsightly embedded <STYLE> tag the built-in Recent Comments widget puts in my <HEAD>, but I can't seem to get the syntax right. It originally calls