Increase CARD API timeout from 15s to 30s
The /api/v1/teams endpoint returns 193 teams with nested objects and can take longer than 15s to respond under load. Token acquisition succeeds within 500ms but subsequent data calls were hitting the 15s timeout.
This commit is contained in:
@@ -63,7 +63,7 @@ function acquireToken(timeout) {
|
||||
'authorization': 'Basic ' + authString,
|
||||
'content-length': '0',
|
||||
},
|
||||
timeout: timeout || 15000,
|
||||
timeout: timeout || 30000,
|
||||
};
|
||||
|
||||
if (isHttps) {
|
||||
@@ -124,7 +124,7 @@ async function ensureToken(timeout) {
|
||||
// Generic request — supports GET and POST with Bearer auth + 401 retry
|
||||
// ---------------------------------------------------------------------------
|
||||
async function cardRequest(method, urlPath, body, options) {
|
||||
const timeout = (options && options.timeout) || 15000;
|
||||
const timeout = (options && options.timeout) || 30000;
|
||||
const skipAuth = (options && options.skipAuth) || false;
|
||||
|
||||
async function doRequest(bearerToken) {
|
||||
|
||||
Reference in New Issue
Block a user