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.
actions/reduxActions.js
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?
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
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.
Fixed in #32
fixed by 27e3d14
Metadata Update from @lbrabec: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.