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

TLS / ECONNRESET with neondb and drizzle-kit #28245

Open
daweijs opened this issue Feb 22, 2025 · 0 comments
Open

TLS / ECONNRESET with neondb and drizzle-kit #28245

daweijs opened this issue Feb 22, 2025 · 0 comments

Comments

@daweijs
Copy link

daweijs commented Feb 22, 2025

Version: deno 2.2.1

deno.json

{
  "imports": {
    "drizzle-kit": "npm:drizzle-kit@^0.30.4",
    "drizzle-orm": "npm:drizzle-orm@^0.39.3",
    "postgres": "npm:postgres@^3.4.5"
  }
}

schema.ts

import { pgTable, serial, text, timestamp } from "drizzle-orm/pg-core";

export const users = pgTable("users", {
	id: serial("id").primaryKey(),
	name: text("name").notNull(),
	createdAt: timestamp("created_at").defaultNow(),
});

drizzle.config.ts

import { defineConfig } from "drizzle-kit";

export default defineConfig({
	schema: "./schema.ts",
	dialect: "postgresql",
	dbCredentials: {
		url: "NEON_URL_HERE",
	},
});

result :

deno -A --node-modules-dir npm:drizzle-kit push

No config path provided, using default 'drizzle.config.ts'
Reading config file '..\test_deno\drizzle.config.ts'
Using 'postgres' driver for database querying
[⡿] Pulling schema from database...
Error: Client network socket disconnected before secure TLS connection was established
    at connResetException (ext:deno_node/internal/errors.ts:1912:14)
    at TLSSocket.onConnectEnd (node:_tls_wrap:32:19)
    at TLSSocket.emit (ext:deno_node/_events.mjs:405:35)
    at endReadableNT (ext:deno_node/_stream.mjs:3210:16)
    at processTicksAndRejections (ext:deno_node/_next_tick.ts:36:15)
    at runNextTicks (ext:deno_node/_next_tick.ts:76:3)
    at eventLoopTick (ext:core/01_core.js:184:21) {
  code: "ECONNRESET",
  path: undefined,
  host: undefined,
  port: undefined,
  localAddress: undefined
}
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

1 participant