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

Add retries for ASF authentication errors #4

Open
scottyhq opened this issue May 24, 2024 · 0 comments
Open

Add retries for ASF authentication errors #4

scottyhq opened this issue May 24, 2024 · 0 comments

Comments

@scottyhq
Copy link
Contributor

It's common for the hyp3-isce2 step to error with requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url:. https://github.com/relativeorbit/fufiters/actions/runs/9214190095/job/25349834095

While you can just 'rerun failed jobs' from the GitHub UI, we could also add a try/except block in hyp3-isce2

    with get_asf_session() as session:
         ^^^^^^^^^^^^^^^^^
  File "/home/runner/work/fufiters/fufiters/src/hyp3_isce2/burst.py", line 316, in get_asf_session
    response.raise_for_status()
  File "/home/runner/micromamba/envs/hyp3-isce2/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: 

Or try using this 3rd party github action step that should automatically retry the failed command
https://github.com/nick-fields/retry

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

No branches or pull requests

1 participant