Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-egov committed Jun 18, 2024
1 parent 3b81e67 commit e6c7667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilities/project-factory/src/server/utils/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const httpRequest = async (
": error response :" +
(errorResponse ? parseInt(errorResponse?.status, 10) : error?.message))
logger.error(":: ERROR STACK :: " + error?.stack || error);
logger.warn(`Error occurred while making request to ${getServiceName(_url)}: returning error response ${JSON.stringify(errorResponse?.data || { Errors: [{ code: error.message, description: error.stack }] })}`);
logger.warn(`Error occurred while making request to ${getServiceName(_url)}: with error response ${JSON.stringify(errorResponse?.data || { Errors: [{ code: error.message, description: error.stack }] })}`);
if (retry) {
attempt++; // Increment the attempt count
if (attempt >= maxAttempts) {
Expand Down

0 comments on commit e6c7667

Please sign in to comment.