fix(basic.gblib): Allow MERGE keyword in storage #380. @othonlima
This commit is contained in:
parent
de5b0a7acd
commit
f31b96d541
1 changed files with 12 additions and 2 deletions
|
@ -1736,11 +1736,21 @@ export class SystemKeywords {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
if (result.status === 429 || result.status === 401) {
|
if (result.status === 401) {
|
||||||
GBLog.info(`Waiting 1min. before retrynig GET: ${url}.`);
|
GBLog.info(`Waiting 5 secs. before retrynig HTTP 401 GET: ${url}`);
|
||||||
|
await sleep(5 * 1000);
|
||||||
|
throw new Error(`BASIC: HTTP:${result.status} retry: ${result.statusText}.`);
|
||||||
|
}
|
||||||
|
if (result.status === 429) {
|
||||||
|
GBLog.info(`Waiting 1min. before retrying HTTP 429 GET: ${url}`);
|
||||||
await sleep(60 * 1000);
|
await sleep(60 * 1000);
|
||||||
throw new Error(`BASIC: HTTP:${result.status} retry: ${result.statusText}.`);
|
throw new Error(`BASIC: HTTP:${result.status} retry: ${result.statusText}.`);
|
||||||
}
|
}
|
||||||
|
if (result.status === 503) {
|
||||||
|
GBLog.info(`Waiting 1h before retrynig GET 503: ${url}`);
|
||||||
|
await sleep(60 * 60 * 1000);
|
||||||
|
throw new Error(`BASIC: HTTP:${result.status} retry: ${result.statusText}.`);
|
||||||
|
}
|
||||||
|
|
||||||
if (result.status === 2000) {
|
if (result.status === 2000) {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue