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

"auth0 logs tail" exits when certain server errors are encountered. It should retry instead. #420

Closed
joshw opened this issue May 4, 2022 · 1 comment
Labels
feature request A feature has been asked for or suggested by the community

Comments

@joshw
Copy link

joshw commented May 4, 2022

Description

If I (intentionally) leave auth0 logs tail running, it inevitably exits after encountering a server error at some point.

It should recover from such errors by retrying its query. Exponential back-off is fine, if needed.

Reproduction

% auth0 logs tail

....
                           Successful Refresh Token exchange                         3 seconds ago        N/A                     AdHoc
 ▸    An unexpected error occurred while getting logs: 502 Bad Gateway: Logs Service server responded with an internal error (potentially load-shedding)

Environment

Please provide the following:

  • Version of this library used:
auth0 version 0.11.7 f9bcaf1b0d5c6c380022842b9707dfb8620b4890
  • Version of the platform or framework used, if applicable:
    n/a

  • Other relevant versions (language, server software, OS, browser):

Darwin 20.6.0 Darwin Kernel Version 20.6.0: Wed Jan 12 22:22:42 PST 2022; root:xnu-7195.141.19~2/RELEASE_X86_64 x86_64
  • Other modules/plugins/libraries that might be involved:
    n/a
@sergiught sergiught added the enhancement An enhancement or improvement to the SDK that could not be otherwise categorized as a new feature label May 5, 2022
@sergiught sergiught added feature request A feature has been asked for or suggested by the community and removed enhancement An enhancement or improvement to the SDK that could not be otherwise categorized as a new feature labels Oct 10, 2022
@willvedd
Copy link
Contributor

More intentional retry logic for Management API requests was added in v1.1.0. Notably for this issue, a fixed number of retries will occur for 502s, so I'm considering this issue satisfied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A feature has been asked for or suggested by the community
Projects
None yet
Development

No branches or pull requests

3 participants