Skip to content

Instantly share code, notes, and snippets.

@sam-github
Created January 18, 2017 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sam-github/f81b6d3e19ab6595244905575e55e082 to your computer and use it in GitHub Desktop.
Save sam-github/f81b6d3e19ab6595244905575e55e082 to your computer and use it in GitHub Desktop.
lib/_http_client.js: throw new TypeError('Request path contains unescaped characters');
lib/_http_client.js: throw new TypeError('Method must be a string');
lib/_http_client.js: throw new TypeError('Method must be a valid HTTP token');
lib/_http_outgoing.js: throw new TypeError(
lib/_http_outgoing.js: throw new TypeError('The header content contains invalid characters');
lib/_http_outgoing.js: throw new TypeError(
lib/_http_outgoing.js: throw new TypeError('The header content contains invalid characters');
lib/_http_outgoing.js: throw new TypeError('"name" argument must be a string');
lib/_http_outgoing.js: throw new TypeError('"name" argument must be a string');
lib/_http_outgoing.js: throw new TypeError('First argument must be a string or Buffer');
lib/_http_outgoing.js: throw new TypeError(
lib/_http_outgoing.js: throw new TypeError('The trailer content contains invalid characters');
lib/_http_outgoing.js: throw new TypeError('First argument must be a string or Buffer');
lib/_stream_readable.js: er = new TypeError('Invalid non-string/buffer chunk');
lib/_stream_writable.js: er = new TypeError('May not write null values to stream');
lib/_stream_writable.js: er = new TypeError('Invalid non-string/buffer chunk');
lib/_stream_writable.js: throw new TypeError('Unknown encoding: ' + encoding);
lib/_tls_wrap.js: throw new TypeError('options must be an object');
lib/_tls_wrap.js: throw new TypeError('handshakeTimeout must be a number');
lib/assert.js: throw new TypeError('"block" argument must be a function');
lib/buffer.js: * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
lib/buffer.js: throw new TypeError('"value" argument must not be a number');
lib/buffer.js: err = new TypeError('"size" argument must be a number');
lib/buffer.js: throw new TypeError('"encoding" must be a valid string encoding');
lib/buffer.js: throw new TypeError(kFromErrorMsg);
lib/buffer.js: throw new TypeError('Arguments must be Buffers or Uint8Arrays');
lib/buffer.js: throw new TypeError(kConcatErrMsg);
lib/buffer.js: throw new TypeError(kConcatErrMsg);
lib/buffer.js: throw new TypeError('"string" must be a string, Buffer, or ArrayBuffer');
lib/buffer.js: throw new TypeError('Unknown encoding: ' + encoding);
lib/buffer.js: throw new TypeError('Argument must be a Buffer or Uint8Array');
lib/buffer.js: throw new TypeError('Argument must be a Buffer or Uint8Array');
lib/buffer.js: throw new TypeError('"val" argument must be string, number, Buffer ' +
lib/buffer.js: throw new TypeError('Unknown encoding: ' + encoding);
lib/buffer.js: throw new TypeError('encoding must be a string');
lib/buffer.js: throw new TypeError('Unknown encoding: ' + encoding);
lib/buffer.js: throw new TypeError('Unknown encoding: ' + encoding);
lib/buffer.js: throw new TypeError('"buffer" argument must be a Buffer or Uint8Array');
lib/buffer.js: throw new TypeError('"value" argument is out of bounds');
lib/child_process.js: throw new TypeError('Incorrect value of args option');
lib/child_process.js: throw new TypeError('Forked processes must have an IPC channel');
lib/child_process.js: throw new TypeError('Incorrect value of args option');
lib/child_process.js: throw new TypeError('"file" argument must be a non-empty string');
lib/child_process.js: throw new TypeError('Incorrect value of args option');
lib/child_process.js: throw new TypeError('"options" argument must be an object');
lib/child_process.js: throw new TypeError('"cwd" must be a string');
lib/child_process.js: throw new TypeError('"detached" must be a boolean');
lib/child_process.js: throw new TypeError('"uid" must be an integer');
lib/child_process.js: throw new TypeError('"gid" must be an integer');
lib/child_process.js: throw new TypeError('"shell" must be a boolean or string');
lib/child_process.js: throw new TypeError('"argv0" must be a string');
lib/child_process.js: throw new TypeError('"windowsVerbatimArguments" must be a boolean');
lib/child_process.js: throw new TypeError(util.format(
lib/child_process.js: throw new TypeError('"timeout" must be an unsigned integer');
lib/child_process.js: throw new TypeError('"maxBuffer" must be a positive number');
lib/child_process.js: throw new TypeError('"killSignal" must be a string or number');
lib/console.js: throw new TypeError('Console expects a writable stream instance');
lib/console.js: throw new TypeError('Console expects writable stream instances');
lib/crypto.js: throw new TypeError('First argument should be number, string or Buffer');
lib/crypto.js: throw new TypeError('"curve" argument should be a string');
lib/crypto.js: throw new TypeError('Bad format: ' + format);
lib/crypto.js: throw new TypeError('"id" argument should be a string');
lib/crypto.js: throw new TypeError('"flags" argument should be a number, if present');
lib/dgram.js: throw new TypeError('First argument must be a buffer or string');
lib/dgram.js: throw new TypeError('First argument must be a buffer or a string');
lib/dgram.js: throw new TypeError('Buffer list arguments must be buffers or strings');
lib/dgram.js: throw new TypeError('Argument must be a number');
lib/dgram.js: throw new TypeError('Argument must be a number');
lib/dns.js: throw new TypeError('Invalid arguments: ' +
lib/dns.js: throw new TypeError('Invalid arguments: callback must be passed');
lib/dns.js: throw new TypeError('Invalid argument: hints must use valid flags');
lib/dns.js: throw new TypeError('Invalid argument: family must be 4 or 6');
lib/dns.js: throw new TypeError('"host" argument needs to be a valid IP address');
lib/dns.js: throw new TypeError(`"port" should be >= 0 and < 65536, got "${port}"`);
lib/dns.js: throw new TypeError('"callback" argument must be a function');
lib/events.js: throw new TypeError('"n" argument must be a positive number');
lib/events.js: throw new TypeError('"listener" argument must be a function');
lib/events.js: throw new TypeError('"listener" argument must be a function');
lib/events.js: throw new TypeError('"listener" argument must be a function');
lib/events.js: throw new TypeError('"listener" argument must be a function');
lib/fs.js: throw new TypeError('"options" must be a string or an object, got ' +
lib/fs.js: throw new TypeError('"callback" argument must be a function');
lib/fs.js: throw new TypeError('"callback" argument must be a function');
lib/fs.js: throw new TypeError('filename prefix is required');
lib/fs.js: throw new TypeError('filename prefix is required');
lib/fs.js: throw new TypeError('"start" option must be a Number');
lib/fs.js: throw new TypeError('"end" option must be a Number');
lib/fs.js: throw new TypeError('"start" option must be a Number');
lib/internal/buffer.js: throw new TypeError('"source" argument must be a Buffer or Uint8Array');
lib/internal/child_process.js: throw new TypeError('"options" argument must be an object');
lib/internal/child_process.js: throw new TypeError('"message" argument cannot be undefined');
lib/internal/child_process.js: throw new TypeError('This handle type can\'t be sent');
lib/internal/child_process.js: default: throw new TypeError('Incorrect value of stdio option: ' + stdio);
lib/internal/child_process.js: throw new TypeError('Incorrect value of stdio option: ' +
lib/internal/child_process.js: throw new TypeError('Asynchronous forks do not support ' +
lib/internal/child_process.js: throw new TypeError('Incorrect value for stdio stream: ' +
lib/internal/process.js: throw new TypeError('value of user property of argument is invalid');
lib/internal/process.js: throw new TypeError('value of system property of argument is invalid');
lib/internal/process.js: throw new TypeError('process.hrtime() only accepts an Array tuple');
lib/internal/process.js: throw new TypeError('invalid pid');
lib/internal/process/next_tick.js: throw new TypeError('callback is not a function');
lib/internal/process/warning.js: throw new TypeError('\'warning\' must be an Error object or string.');
lib/internal/url.js: throw new TypeError('Invalid URL');
lib/internal/url.js: throw new TypeError('Value of `this` is not a URLSearchParams');
lib/internal/url.js: throw new TypeError(
lib/internal/url.js: throw new TypeError('Value of `this` is not a URLSearchParams');
lib/internal/url.js: throw new TypeError('The `name` argument needs to be specified');
lib/internal/url.js: throw new TypeError('Value of `this` is not a URLSearchParams');
lib/internal/url.js: throw new TypeError(
lib/internal/url.js: throw new TypeError('Value of `this` is not a URLSearchParams');
lib/internal/url.js: throw new TypeError('The `name` argument needs to be specified');
lib/internal/url.js: throw new TypeError('Value of `this` is not a URLSearchParams');
lib/internal/url.js: throw new TypeError('The `name` argument needs to be specified');
lib/internal/url.js: throw new TypeError('Value of `this` is not a URLSearchParams');
lib/internal/url.js: throw new TypeError('The `name` argument needs to be specified');
lib/internal/url.js: throw new TypeError('Value of `this` is not a URLSearchParams');
lib/internal/url.js: throw new TypeError('Value of `this` is not a URLSearchParams');
lib/internal/url.js: throw new TypeError('The `callback` argument needs to be specified');
lib/internal/url.js: throw new TypeError('Value of `this` is not a URLSearchParams');
lib/internal/url.js: throw new TypeError('Value of `this` is not a URLSearchParams');
lib/internal/url.js: throw new TypeError('Value of `this` is not a URLSearchParams');
lib/internal/url.js: throw new TypeError('Value of `this` is not a URLSearchParamsIterator');
lib/net.js: throw new TypeError('Unsupported fd type: ' + type);
lib/net.js: throw new TypeError(
lib/net.js: self._destroy(new TypeError('Invalid addressType: ' + addressType));
lib/net.js: throw new TypeError('"localAddress" option must be a valid IP: ' +
lib/net.js: throw new TypeError('"localPort" option should be a number: ' + localPort);
lib/net.js: throw new TypeError('"port" option should be a number or string: ' +
lib/net.js: throw new TypeError('"lookup" option should be a function');
lib/net.js: throw new TypeError('options must be an object');
lib/path.js: throw new TypeError('Path must be a string. Received ' + inspect(path));
lib/path.js: throw new TypeError('"ext" argument must be a string');
lib/path.js: throw new TypeError(
lib/path.js: throw new TypeError('"ext" argument must be a string');
lib/path.js: throw new TypeError(
lib/readline.js: throw new TypeError('Argument "completer" must be a function');
lib/readline.js: throw new TypeError('Argument "historySize" must be a positive number');
lib/readline.js: throw new TypeError('"stringToWrite" argument must be a string');
lib/repl.js: 'ReferenceError', 'SyntaxError', 'TypeError', 'URIError', 'Math', 'JSON'
lib/timers.js: throw new TypeError('"msecs" argument must be a number');
lib/timers.js: throw new TypeError('"callback" argument must be a function');
lib/timers.js: throw new TypeError('"callback" argument must be a function');
lib/timers.js: throw new TypeError('"callback" argument must be a function');
lib/url.js: throw new TypeError('Parameter "url" must be a string, not ' + typeof url);
lib/url.js: throw new TypeError('Parameter "urlObj" must be an object, not ' +
lib/util.js: throw new TypeError('"options" must be an object');
lib/util.js: * @throws {TypeError} Will error if either constructor is null, or if
lib/util.js: throw new TypeError('The constructor to "inherits" must not be ' +
lib/util.js: throw new TypeError('The super constructor to "inherits" must not ' +
lib/util.js: throw new TypeError('The super constructor to "inherits" must ' +
lib/zlib.js: throw new TypeError('Not a string or buffer');
lib/zlib.js: throw new TypeError('Invalid strategy: ' + strategy);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment