ShaneK / Matador

Front-end web interface for Bull Job Manager
MIT License
98 stars 51 forks source link

URL parsing maybe broken #43

Open pulkitsinghal opened 7 years ago

pulkitsinghal commented 7 years ago

I do not think that Matador can handle URL parsing when the input is as follows:

var app = require('bull-ui/app')({
  redis: {
    url: 'redis://:password@host:6379'
  }
});

It automatically falls back on 127.0.0.1:6379 after failing to parse the URL. I realized this after I tried to create a job from the /newjob page.

Here are my dependencies:

"dependencies": {
    "bull-ui": "1.2.3"
},

There is obviously a workaround:

var app = require('bull-ui/app')({
  redis: {
    host: 'pulkit-dev-3.shoppinpal.com',
    port: '6379',
    password: 'r3dis'
  }
});

But it thought it worth mentioning the breaking behaviour above.