Skip to content

Add retries for ASF authentication errors #4

@scottyhq

Description

@scottyhq

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions