Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Commit

Permalink
Get should also throw on retry limit
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
Kas-tle authored Apr 30, 2023
1 parent 90acd5e commit 7c99d59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "enjinscraper",
"version": "1.7.3",
"version": "1.7.4",
"description": "Scrapes an Enjin site via the Enjin API",
"repository": "https://github.com/Kas-tle/EnjinScraper.git",
"author": "Joshua Castle <[email protected]",
Expand Down
3 changes: 1 addition & 2 deletions src/util/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ export async function getRequest(domain: string, url: string, headers: any, debu
}
}
statusMessage(MessageType.Error, `Configured retry limit exceeded. Please try again later. Exiting...`);
process.kill(process.pid, 'SIGINT');
return Promise.reject();
throw new Error('Must exit now!');
}

export async function throttledGetRequest(domain: string, url: string, headers: any, debugPath = '', overrideDebug = false, responseType = undefined): Promise<AxiosResponse> {
Expand Down

0 comments on commit 7c99d59

Please sign in to comment.