Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled 'error' event #55

Open
jtpereyda opened this issue Jan 15, 2019 · 0 comments
Open

Unhandled 'error' event #55

jtpereyda opened this issue Jan 15, 2019 · 0 comments

Comments

@jtpereyda
Copy link

jtpereyda commented Jan 15, 2019

mssql version: 0.6.2

I get an unhandled error when trying to connect.

mssql --server 10.11.1.31 --user sa --pass ****
Connecting to 10.11.1.31...events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: Unknown type: 0
    at Parser.parseTokens (/usr/local/lib/node_modules/sql-cli/node_modules/tedious/lib/token/stream-parser.js:99:30)
    at Parser._transform (/usr/local/lib/node_modules/sql-cli/node_modules/tedious/lib/token/stream-parser.js:72:14)
    at Parser.Transform._read (/usr/local/lib/node_modules/sql-cli/node_modules/readable-stream/lib/_stream_transform.js:184:10)
    at Parser.Transform._write (/usr/local/lib/node_modules/sql-cli/node_modules/readable-stream/lib/_stream_transform.js:172:83)
    at doWrite (/usr/local/lib/node_modules/sql-cli/node_modules/readable-stream/lib/_stream_writable.js:428:64)
    at writeOrBuffer (/usr/local/lib/node_modules/sql-cli/node_modules/readable-stream/lib/_stream_writable.js:417:5)
    at Parser.Writable.write (/usr/local/lib/node_modules/sql-cli/node_modules/readable-stream/lib/_stream_writable.js:334:11)
    at Parser.addBuffer (/usr/local/lib/node_modules/sql-cli/node_modules/tedious/lib/token/token-stream-parser.js:50:26)
    at Connection.sendDataToTokenStreamParser (/usr/local/lib/node_modules/sql-cli/node_modules/tedious/lib/connection.js:644:37)
    at Connection.data (/usr/local/lib/node_modules/sql-cli/node_modules/tedious/lib/connection.js:1070:21)

Edit: Not sure if it should matter, but my system is a 32-bit Debian Linux system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant