timgit / pg-boss

Queueing jobs in Postgres from Node.js like a boss
MIT License
2.13k stars 158 forks source link

Can't use connection string without user/pass #84

Closed alekbarszczewski closed 6 years ago

alekbarszczewski commented 6 years ago
const boss = new PgBoss('postgres://localhost/my_db')

throws error:

var auth = params.auth.split(':');   

TypeError: Cannot read property 'split' of null
at parseConnectionString (.../node_modules/pg-boss/lib/db.js:46:30)

(During local development I use Postgres databases without user/pass)

timgit commented 6 years ago

I have the user/pass validation removed in the upcoming 3.0 release.