denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
98.01k stars 5.39k forks source link

Deno npm:node-firebird won't work #26328

Open awunnenb opened 1 month ago

awunnenb commented 1 month ago

Version: Deno 2.0.0

import * as Firebird from "npm:node-firebird";

let options = {};
options.host = "server.ip";
options.port = 3050;
options.database = "aDatabase";
options.user = "SYSDBA";
options.password = "password";

Firebird.attach(options, function (err, db) {
  console.log("in callback");
});

callbacks are never called!

with node.js or bun it works fine

marvinhagemeister commented 1 month ago

Can't reproduce on macOS. Tried both 2.0.0 and 2.0.1.

$ deno run -A main.ts
in callback
awunnenb commented 1 month ago

Please try a local IP such as 192.168.1.xxx instead of localhost. I have a Firebird database there but get no error and no attach. I also use MacOS and access via IP addresses does not work.

awunnenb commented 1 month ago

there ist another issue on version 1.4.x https://github.com/denoland/deno/issues/21419