MolSSI / QCFractal

A distributed compute and database platform for quantum chemistry.
https://molssi.github.io/QCFractal/
BSD 3-Clause "New" or "Revised" License
144 stars 47 forks source link

`ConnectionRefusedError` after using an idle client some time later #790

Closed dotsdl closed 10 months ago

dotsdl commented 10 months ago

Describe the bug

After leaving a PortalClient instance idle for approx. 24hrs, using list_datasets() yields:

ConnectionRefusedError: Unable to refresh JWT authorization token! This is a server issue!!

Creating a new client instance resolved the issue, but this is still unexpected behavior.

Is this a symptom of using two tokens (an "access" token and a "refresh" token) with separate expirations for auth? Or is it something else?

bennybp commented 10 months ago

No there was a bug in some of the JWT handling. Also reported in #784, fixed in PR #783.

I just increased the expiration time, which should keep that at bay for a bit until the next release (should be soon).

bennybp commented 10 months ago

Fixed and released in v0.52