freefeed-react-client icon indicating copy to clipboard operation
freefeed-react-client copied to clipboard

Retry config.json loading in case of connectivity problems

Open indeyets opened this issue 4 years ago • 4 comments

Config.json can fail because of temporary connectivity issues. It would be beneficial to implement retry policy here.

I suggest to do the following:

  1. Attempt to load. In case of exception (Network Error) wait for 1 second
  2. Retry … (wait for 2 seconds)
  3. Retry … (Replace "Loading…" with "Some network problems. Still loading…". wait for 5 seconds)
  4. Retry … (wait for 10 seconds)
  5. Retry … Fallback to current error

indeyets avatar Oct 22 '21 10:10 indeyets

Should we try bundling config.json into client bundle?

n1313 avatar Oct 22 '21 16:10 n1313

I think we should not. It is a way to have reusable packages and to ad-hoc reconfiguration. It may be incomplete currently, but still occasionally useful.

indeyets avatar Oct 22 '21 17:10 indeyets

How does ad-hoc reconfiguration work currently?

n1313 avatar Oct 22 '21 18:10 n1313

@n1313 I talk about manual editing of this file on server to change cookie name or API path without running ansible

indeyets avatar Oct 23 '21 06:10 indeyets