Skip to content

No hubs available - random issue #113

Open
@ilker-aktuna

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.

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