1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Retry a request for a number of times in Angular app

Discussão em 'Angular' iniciado por Elmehdi, Junho 12, 2025.

  1. Elmehdi

    Elmehdi Guest

    I have this situation where I need to make a get request. I do know how to use Angular's http client, but I need to make the request retry automatically if it fails, for a number of times before giving up and throwing an error, and also I need to put a delay between each retry.

    For example, I need my request, if it fails, to retry for a total of 5 times, and between each retry have 10 seconds delay.

    Is there an easy and clear way to do something like that?

    Continue reading...

Compartilhe esta Página