Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use retries for JWT fetching #886

Merged
merged 2 commits into from
Jan 30, 2025
Merged

Use retries for JWT fetching #886

merged 2 commits into from
Jan 30, 2025

Conversation

bennybp
Copy link
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
15 checks passed
@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