question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request retry loading locale when failed

See original GitHub issue

I’m submitting a…

[ ] bug report
[X] feature request
[ ] support request

Features request

  • Retry loading locale when http request failed

Expected Behavior

  • When provider trying to request locale (JSON file) and failed with 404 or 500 status code. Then retry HTTP request for that

Specifications: Angular version, library version, environment, browser angular: 4.1.3 angular-l10n: 3.5.0 Ionic Framework: ionic-angular 3.6.0

I just use this module with Ionic framework.

Sorry for my not good in English.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
robisim74commented, Aug 17, 2017

Yes, using the custom provider you can set the logic you want (such as managing a 404).

0reactions
ichargecommented, Aug 17, 2017

@robisim74 Thank you. I’ll try this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python request loop, retry if status code not 200 - Stack Overflow
I believe you want to do something like this: for i in range(0, len(table)): var = table.iloc[i] url = 'http://example.request.com/var/' ...
Read more >
i18next::backendconnector failed to load json from the backend
I'm trying to load the json from the backend using i18nextXHRBackend. ... failed failed parsing /locales/en/special.json to json Java Spr...
Read more >
How to Solve the Chunk Load Error in JavaScript - Rollbar
If you are encountering this error as a user of an application, the most simple way to resolve it is to clear your...
Read more >
API - i18next documentation
The callback will be called after all translations were loaded or with an error when failed (in case of using a backend).
Read more >
Retry failed HTTP requests in Angular | by Kevin Kreuzer
If the source Observable, which is our HTTP request, fails, the retryWhen operator is called. Inside the callback, we get access to the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found