hgourvest / node-firebird

Pure javascript and asynchronous Firebird client for Node.js.
Mozilla Public License 2.0
258 stars 130 forks source link

Error: Incompatible wire encryption levels requested on client and server at doCallback #317

Open khalidMhd opened 1 year ago

khalidMhd commented 1 year ago

I am facing these two error Error: Incompatible wire encryption levels requested on client and server at doCallback Error2: Incompatible wire encryption levels requested on client and server

+++++++++++++ code review ++++++++++++++

const firebird = require('node-firebird');

const options = { host: '127.0.0.1', port: 3050, database: 'C:/Users/khalid.d/Documents/MYDB.fdb', user: 'SYSDBA', password: 'root', lowercase_keys: false, pageSize: 4096, role: null, // charset: 'WIN1253', // encrypt: 'AES256', // algorithm: 'AES256', };

exports.executeQuery = async (query, params = []) => { return new Promise((resolve, reject) => { firebird.attach(options, (err, db) => { if (err) { console.error('Error connecting to the Firebird database:', err); reject(err); return; } console.log('Connected to the Firebird database.');

db.query(query, params, (err, result) => { if (err) { console.error('Error executing query:', err); reject(err); } else { console.log('Query executed successfully.'); resolve(result); }

db.detach();

}); }); }); };

maratth commented 10 months ago

Duplicate #318