TimoWilhelm / local-neon-http-proxy

Connect to a local PostgreSQL database using the neon http proxy
https://github.com/TimoWilhelm/local-neon-http-proxy/pkgs/container/local-neon-http-proxy
Creative Commons Zero v1.0 Universal
34 stars 5 forks source link

Error Running Drizzle-kit Migrations Through Proxy #6

Open tsatsujnr139 opened 6 days ago

tsatsujnr139 commented 6 days ago

I have no idea what has changed because this used to work flawlessly but now I get the error below when using this with drizzle to run my migrations. (pnpm drizzle-kit migrate). Running queries using drizzle orm is not affected. This is issue is only faced when running migrations

I'm using drizzle-orm 0.33.0 & drizzle-kit 0.24.0.

Any help would be much appreaciated.

CleanShot 2024-10-12 at 15 26 43@2x

TimoWilhelm commented 4 days ago

Are you using the container images pubished on the GitHub feed or cloning the repo locally and which version of @neondatabase/serverless are you using?

Can you share the code you use to construct the neon and drizzle clients for running the migration?

I see that there is a WebSocket URL in the error log. It should only connect using http urls.