denoland / deno

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

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

Open awunnenb opened 3 weeks ago

awunnenb commented 3 weeks 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 3 weeks ago

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

$ deno run -A main.ts
in callback
awunnenb commented 3 weeks 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 3 weeks ago

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