Strange exception #142

ivantodorovich opened this Issue Apr 1, 2014 · 1 comment


None yet
2 participants

Hi, I'm trying to do this:

function initSQLEXPRESS(callback) {
    // Initialize SQLEXPRESS
    var tedious = require('tedious');
    var conn = new tedious.Connection({
      userName: ****,
      password: ****,
      server:   'localhost',
      options: {
        instanceName: 'SQLExpress',
        databaseName: ****
    conn.on('connect', callback)

initSQLEXPRESS(function(err, res) {
    if (err) console.error(err);

And I'm getting the following exception:

Uncaught node.js Error 

ReferenceError: message is not defined
    at eval (C:\Users\User\Documents\GitHub\map-locator\node_modules\tedious\lib\connection.js:503:58)
    at makeAttempt (C:\Users\User\Documents\GitHub\map-locator\node_modules\tedious\lib\instance-lookup.js:59:14)
    at timedOut [as _onTimeout] (C:\Users\User\Documents\GitHub\map-locator\node_modules\tedious\lib\instance-lookup.js:46:12)
    at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)

patriksimek added this to the v0.2.2 milestone Apr 1, 2014

patriksimek added the bug label Apr 1, 2014

patriksimek self-assigned this Apr 1, 2014


patriksimek commented Apr 1, 2014

Thank you for report, bug is fixed. All you need to do is update to latest version npm update tedious.

patriksimek closed this Apr 2, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment