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

net.isIP is not a function #516

Closed
goldjay opened this issue Aug 21, 2017 · 2 comments
Closed

net.isIP is not a function #516

goldjay opened this issue Aug 21, 2017 · 2 comments

Comments

@goldjay
Copy link

goldjay commented Aug 21, 2017

Trying to connect a locally-running application to a remote ms sql database using the following standard code.
The error is coming from connector.js line 31. Are they any more dependencies I would need to install?

var sql = require('mssql');

var config = {
  user: '*******',
  password: '******',
  server: '****',
  database: '**',
  port: 1433
};

// connect to your database

sql.connect(config).then(() => {
return sql.queryselect * from TestTable
}).then(result => {
console.log(result);
}).catch(err => {
// ... error checks
console.log("Connection Error");
console.log(err);
})

sql.on('error', err => {
// ... error handler
console.log(err);
})
sql.close();

@Andy-2018
Copy link

Andy-2018 commented Jun 18, 2018

I got this error too with Cypress v3.0.1 & mssql 4.1.0.

Is there any workaround for this issue?

@zhex900
Copy link

zhex900 commented Aug 24, 2018

I am having the same issue

@dhensby dhensby closed this as completed Mar 8, 2019
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

4 participants