Skip to content

Commit

Permalink
Merge pull request #109 from opencomponents/stop-retrying-429
Browse files Browse the repository at this point in the history
Stop retrying on 429
  • Loading branch information
ricardo-devis-agullo committed Jan 28, 2024
2 parents 682b2f3 + 9ded6cd commit 38627d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oc-client-browser",
"version": "1.7.6",
"version": "1.7.7",
"description": "OC browser client",
"main": "index.js",
"types": "index.d.ts",
Expand Down
4 changes: 3 additions & 1 deletion src/oc-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,9 @@ var oc = oc || {};
});
}
},
error: function () {
error: function (error) {
var status = error && error.status;
if (status === 429) retries[href] = 0;
logger.error(MESSAGES_ERRORS_RETRIEVING);
retry(
href,
Expand Down

0 comments on commit 38627d1

Please sign in to comment.