Skip to content

No hubs available - random issue #113

Description

@ilker-aktuna

Hi,

Sometimes , "randomly" , the API produces the message "No hubs available"
when this happens nothing works until I restart the Harmony hub.

How can we solve this issue ?

I see the following function on app.js
var hasHarmonyHubClient = function(req, res, next) {
if (Object.keys(harmonyHubClients).length > 0) {
next()
}else{
res.status(500).json({message: "No hubs available."})
}
}
app.use(hasHarmonyHubClient)

what does this do actually ?

is there a way to statically connect to a hub IP and not try to discover it ?

thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions