wasp-lang / wasp

The fastest way to develop full-stack web apps with React & Node.js.
https://wasp-lang.dev
MIT License
13.74k stars 1.18k forks source link

Connection to the database via IPv6 fails #1621

Open infomiho opened 10 months ago

infomiho commented 10 months ago

Some users reported failures with pg-boss's connection to the database. On a closer look, it seems that it's a general database connection issue due to using IPv6 to connect.

Check this out for more context: https://ptb.discord.com/channels/686873244791210014/1179895919471247490

A workaround for the time being is to use 127.0.0.1 instead of localhost in the DATABASE_URL env variable.

Related issue: https://github.com/nodejs/node/issues/40537

infomiho commented 2 months ago

Option that might be useful for us here: --dns-result-order=ipv4first