Settings
Timeout
Configure request timeout settings for optimal performance
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Configure request timeout settings for optimal performance
import GboxSDK from "gbox-sdk";
const gboxSDK = new GboxSDK({
apiKey: process.env["GBOX_API_KEY"],
timeout: 30 * 1000, // 30 seconds (default is 60 seconds)
});
import GboxSDK from "gbox-sdk";
const gboxSDK = new GboxSDK({
apiKey: process.env["GBOX_API_KEY"],
timeout: 2 * 60 * 1000, // 2 minutes for longer operations
});
// Short timeout for fast operations like listing
const boxes = await gboxSDK.listBoxes(
{},
{ timeout: 10 * 1000 } // 10 seconds
);
Was this page helpful?