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

Postgres connector makes the script unable to exit normally #372

Open
neighborhood-dog opened this issue Jan 2, 2023 · 1 comment
Open

Comments

@neighborhood-dog
Copy link

neighborhood-dog commented Jan 2, 2023

The following code triggers the error (deno run --allow-env main.ts):

import { PostgresConnector } from "https://deno.land/x/[email protected]/mod.ts";

new PostgresConnector({
  host: "localhost",
  username: "postgres",
  password: "postgres",
  database: "test",
});

Deno.exit(0); can be added at the end of the script as a workaround to force it to exit.

Everything running on Windows 11, PostgreSQL 15.1.0.

deno --version

deno 1.29.1 (release, x86_64-pc-windows-msvc)
v8 10.9.194.5
typescript 4.9.4
@zookatron
Copy link

This is deeper than that, it seems like it happens for any connector and doesn't even require instantiation, this also hangs for me:

import { MySQLConnector } from 'https://deno.land/x/[email protected]/mod.ts';
console.log(MySQLConnector);

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

2 participants