Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 53448fc

Browse files
committed
Fix timeout issue
1 parent 220b9aa commit 53448fc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

utils/topcoder-api-helper.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,13 @@ if (config.TC_DEV_ENV) {
3737
topcoderApiProjects = topcoderDevApiProjects;
3838
topcoderApiChallenges = topcoderDevApiChallenges;
3939
}
40-
// Timeout increase to 5 minutes
41-
topcoderApiChallenges.ApiClient.timeout = 300000;
42-
4340
// Init the API instances
4441
const projectsClient = topcoderApiProjects.ApiClient.instance;
4542
const challengesClient = topcoderApiChallenges.ApiClient.instance;
43+
44+
//Timeout increase to 5 minutes
45+
challengesClient.timeout=300000;
46+
4647
const bearer = projectsClient.authentications.bearer;
4748
bearer.apiKeyPrefix = 'Bearer';
4849
challengesClient.authentications.bearer = bearer;

0 commit comments

Comments
 (0)