#7 Make communication with backend more robust
Closed: Fixed 2 years ago by lbrabec. Opened 3 years ago by lbrabec.

Errors while fetching data from backend are caught and logged to console, but the app never retries.

Change the code in actions/reduxActions.js so if the fetch fails the app will try to fetch data again after a configurable amount of time. Indicate problems with fetch in UI by small icon such as spinner.


Hi @lbrabec,
I'm working on this.
But before that, Can we discuss the cases when retries won't be needed?
For example, Retrying in 404s, 401s, 500s, 503, etc, or any other Status Code?

Hi @manishakanyal

I'm working on this.
Awesome! I'll assign this issue to you.

But before that, Can we discuss the cases when retries won't be needed?
For example, Retrying in 404s, 401s, 500s, 503, etc, or any other Status Code?

My idea was just to simply try again on any error. Do you have something in mind why it won't be a good approach?

Metadata Update from @lbrabec:
- Issue assigned to manishakanyal

3 years ago

I believe, errors like permission errors, 404s, server unavailability, etc are not too quick go-away. So, retrying in those cases might not be helpful.

Metadata Update from @lbrabec:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata