Skip to content

Use retries for JWT fetching#886

Merged
bennybp merged 2 commits intomainfrom
manager_disconnect
Jan 30, 2025
Merged

Use retries for JWT fetching#886
bennybp merged 2 commits intomainfrom
manager_disconnect

Conversation

@bennybp
Copy link
Copy Markdown
Contributor

@bennybp bennybp commented Jan 30, 2025

Description

We are having a persistent problem with managers being unable to periodically (but frequently) access our server. When the manager client attempts to refresh the JWT, there is a remote disconnect error:

('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

The true cause is still elusive. However, simply retrying on that error seems to be a temporary workaround while I figure out what is going on.

This PR implements retrying for JWT logins and refreshes, similar to other types of requests. In general this would be an ok thing going forward, since you never know when a network might have sporadic issues anywhere.

Status

  • Code base linted
  • Ready to go

@bennybp bennybp merged commit 4b18d2a into main Jan 30, 2025
@bennybp bennybp deleted the manager_disconnect branch January 30, 2025 19:10
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

Successfully merging this pull request may close these issues.

1 participant