Skip to content

Hub token can expire and not get auto-renewed even though cloud is still valid #12

@jinnatar

Description

@jinnatar

Hub token can expire and not get auto-renewed even though cloud is still valid.
hub.ping() will fail:

hub.ping()
WARNING:root:API error, 401: Unauthorized - http://10.0.10.147:8893/cc/1.8/hub/tz - Authentication failed.
False

.. but cloud.ping() succeed:

cloud.ping()
True

Easily fixed if you know what to do:

cloud.authenticate()
WARNING:root:API error, 401: Unauthorized - http://10.0.10.147:8893/cc/1.8/hub/tz - Authentication failed.
True
hub.ping()
True

So this needs to get detected in hub.ping() and handled gracefully by renewing the hub token.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions