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

Bull board is not opening on other environments #224

Closed
edilson opened this issue Feb 8, 2021 · 8 comments
Closed

Bull board is not opening on other environments #224

edilson opened this issue Feb 8, 2021 · 8 comments

Comments

@edilson
Copy link

edilson commented Feb 8, 2021

I can open and see all the queues at the dev environment but when I'm trying to open it in a staging environment it does not load the app queues. Looking at the browser console I could see that it is trying to access the following route /admin/undefined/queues/? but it should be accessing this one /admin/queues/queues/?. What could possibly be the problem for not being able to see the jobs in another env? I thought it was the helmet middleware but I disabled it and still doesn't work.

@felixmosh
Copy link
Owner

Looks like you are passing custom render route.

Can you check what is the value inside your HTML of the <base href="value-here" /> tag?

@edilson
Copy link
Author

edilson commented Feb 9, 2021

@felixmosh I couldn't find the tag you asked for. I believe it's because I'm still using the 0.9.0 version. But still I don't see why switching from environments makes it not work correctly.

@felixmosh
Copy link
Owner

felixmosh commented Feb 9, 2021

Ha, do you have any errors in the console / network panel?
In versions < 1.0.0 there was an issue with helmet as well

@edilson
Copy link
Author

edilson commented Feb 9, 2021

[Error] Failed to load resource: the server responded with a status of 404 (Not Found).

Because it is trying to get the route I described in the issue. I don't understand because I disabled helmet and still wasn't working.

@felixmosh
Copy link
Owner

Can you share your mounting point (in express) of bull-board?

@edilson
Copy link
Author

edilson commented Feb 9, 2021

BullBoard.setQueues(Queue.queues.map(queue => queue.bull));
app.use('/admin/queues', BullBoard.UI);

@felixmosh
Copy link
Owner

This looks OK

Can you share an online example, I will able to debug it.

@edilson
Copy link
Author

edilson commented Feb 9, 2021

@felixmosh thanks for your help. I updated to version 0.10.0 and it worked.

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

2 participants